emoji_panel_helper.h 1.2 KB

123456789101112131415161718192021222324252627282930313233343536
  1. // Copyright 2018 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef UI_BASE_EMOJI_EMOJI_PANEL_HELPER_H_
  5. #define UI_BASE_EMOJI_EMOJI_PANEL_HELPER_H_
  6. #include "base/callback.h"
  7. #include "base/component_export.h"
  8. #include "build/chromeos_buildflags.h"
  9. namespace ui {
  10. // Returns whether showing the Emoji Panel is supported on this version of
  11. // the operating system.
  12. COMPONENT_EXPORT(UI_BASE) bool IsEmojiPanelSupported();
  13. // Invokes the commands to show the Emoji Panel.
  14. COMPONENT_EXPORT(UI_BASE) void ShowEmojiPanel();
  15. #if BUILDFLAG(IS_CHROMEOS_ASH)
  16. // Invokes the commands to show the Emoji Panel in tablet mode (ChromeOS only).
  17. COMPONENT_EXPORT(UI_BASE) void ShowTabletModeEmojiPanel();
  18. // Sets a callback to show the emoji panel (ChromeOS only).
  19. COMPONENT_EXPORT(UI_BASE)
  20. void SetShowEmojiKeyboardCallback(base::RepeatingClosure callback);
  21. // Sets a callback to show the emoji panel in tablet mode (ChromeOS only).
  22. COMPONENT_EXPORT(UI_BASE)
  23. void SetTabletModeShowEmojiKeyboardCallback(base::RepeatingClosure callback);
  24. #endif
  25. } // namespace ui
  26. #endif // UI_BASE_EMOJI_EMOJI_PANEL_HELPER_H_