| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef ASH_SYSTEM_IME_MENU_IME_MENU_TRAY_H_ | 5 #ifndef ASH_SYSTEM_IME_MENU_IME_MENU_TRAY_H_ |
| 6 #define ASH_SYSTEM_IME_MENU_IME_MENU_TRAY_H_ | 6 #define ASH_SYSTEM_IME_MENU_IME_MENU_TRAY_H_ |
| 7 | 7 |
| 8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
| 9 #include "ash/public/interfaces/ime_info.mojom.h" | 9 #include "ash/public/interfaces/ime_info.mojom.h" |
| 10 #include "ash/system/ime/ime_observer.h" | 10 #include "ash/system/ime/ime_observer.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 // Returns true if the IME menu bubble has been shown. | 45 // Returns true if the IME menu bubble has been shown. |
| 46 bool IsImeMenuBubbleShown(); | 46 bool IsImeMenuBubbleShown(); |
| 47 | 47 |
| 48 // Shows the virtual keyboard with the given keyset: emoji, handwriting or | 48 // Shows the virtual keyboard with the given keyset: emoji, handwriting or |
| 49 // voice. | 49 // voice. |
| 50 void ShowKeyboardWithKeyset(const std::string& keyset); | 50 void ShowKeyboardWithKeyset(const std::string& keyset); |
| 51 | 51 |
| 52 // Returns true if the menu should show emoji, handwriting and voice buttons | 52 // Returns true if the menu should show emoji, handwriting and voice buttons |
| 53 // on the bottom. Otherwise, the menu will show a 'Customize...' bottom row | 53 // on the bottom. Otherwise, the menu will show a 'Customize...' bottom row |
| 54 // for non-MD UI, and a Settings button in the title row for MD. | 54 // for non-MD UI, and a Settings button in the title row for MD. |
| 55 bool ShouldShowEmojiHandwritingVoiceButtons() const; | 55 bool ShouldShowBottomButtons(); |
| 56 | 56 |
| 57 // Returns whether the virtual keyboard toggle should be shown in shown in the | 57 // Returns whether the virtual keyboard toggle should be shown in shown in the |
| 58 // opt-in IME menu. | 58 // opt-in IME menu. |
| 59 bool ShouldShowKeyboardToggle() const; | 59 bool ShouldShowKeyboardToggle() const; |
| 60 | 60 |
| 61 // TrayBackgroundView: | 61 // TrayBackgroundView: |
| 62 base::string16 GetAccessibleNameForTray() override; | 62 base::string16 GetAccessibleNameForTray() override; |
| 63 void HideBubbleWithView(const views::TrayBubbleView* bubble_view) override; | 63 void HideBubbleWithView(const views::TrayBubbleView* bubble_view) override; |
| 64 void ClickedOutsideBubble() override; | 64 void ClickedOutsideBubble() override; |
| 65 bool PerformAction(const ui::Event& event) override; | 65 bool PerformAction(const ui::Event& event) override; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 | 105 |
| 106 // Bubble for default and detailed views. | 106 // Bubble for default and detailed views. |
| 107 std::unique_ptr<TrayBubbleWrapper> bubble_; | 107 std::unique_ptr<TrayBubbleWrapper> bubble_; |
| 108 ImeListView* ime_list_view_; | 108 ImeListView* ime_list_view_; |
| 109 | 109 |
| 110 views::Label* label_; | 110 views::Label* label_; |
| 111 bool show_keyboard_; | 111 bool show_keyboard_; |
| 112 bool force_show_keyboard_; | 112 bool force_show_keyboard_; |
| 113 bool keyboard_suppressed_; | 113 bool keyboard_suppressed_; |
| 114 bool show_bubble_after_keyboard_hidden_; | 114 bool show_bubble_after_keyboard_hidden_; |
| 115 bool emoji_enabled_; |
| 116 bool handwriting_enabled_; |
| 117 bool voice_enabled_; |
| 115 | 118 |
| 116 base::WeakPtrFactory<ImeMenuTray> weak_ptr_factory_; | 119 base::WeakPtrFactory<ImeMenuTray> weak_ptr_factory_; |
| 117 | 120 |
| 118 DISALLOW_COPY_AND_ASSIGN(ImeMenuTray); | 121 DISALLOW_COPY_AND_ASSIGN(ImeMenuTray); |
| 119 }; | 122 }; |
| 120 | 123 |
| 121 } // namespace ash | 124 } // namespace ash |
| 122 | 125 |
| 123 #endif // ASH_SYSTEM_IME_MENU_IME_MENU_TRAY_H_ | 126 #endif // ASH_SYSTEM_IME_MENU_IME_MENU_TRAY_H_ |
| OLD | NEW |