Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(363)

Side by Side Diff: ash/system/ime_menu/ime_menu_tray.h

Issue 2831233003: Remove ShouldBlockShelfAutoHide(). (Closed)
Patch Set: rename and rebase Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | ash/system/ime_menu/ime_menu_tray.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/system/ime/ime_observer.h" 9 #include "ash/system/ime/ime_observer.h"
10 #include "ash/system/tray/ime_info.h" 10 #include "ash/system/tray/ime_info.h"
(...skipping 30 matching lines...) Expand all
41 // Hides the IME menu bubble and lowlights the button. 41 // Hides the IME menu bubble and lowlights the button.
42 void HideImeMenuBubble(); 42 void HideImeMenuBubble();
43 43
44 // Returns true if the IME menu bubble has been shown. 44 // Returns true if the IME menu bubble has been shown.
45 bool IsImeMenuBubbleShown(); 45 bool IsImeMenuBubbleShown();
46 46
47 // Shows the virtual keyboard with the given keyset: emoji, handwriting or 47 // Shows the virtual keyboard with the given keyset: emoji, handwriting or
48 // voice. 48 // voice.
49 void ShowKeyboardWithKeyset(const std::string& keyset); 49 void ShowKeyboardWithKeyset(const std::string& keyset);
50 50
51 // Returns true if it should block the auto hide behavior of the shelf.
52 bool ShouldBlockShelfAutoHide() const;
53
54 // Returns true if the menu should show emoji, handwriting and voice buttons 51 // Returns true if the menu should show emoji, handwriting and voice buttons
55 // on the bottom. Otherwise, the menu will show a 'Customize...' bottom row 52 // on the bottom. Otherwise, the menu will show a 'Customize...' bottom row
56 // for non-MD UI, and a Settings button in the title row for MD. 53 // for non-MD UI, and a Settings button in the title row for MD.
57 bool ShouldShowEmojiHandwritingVoiceButtons() const; 54 bool ShouldShowEmojiHandwritingVoiceButtons() const;
58 55
59 // Returns whether the virtual keyboard toggle should be shown in shown in the 56 // Returns whether the virtual keyboard toggle should be shown in shown in the
60 // opt-in IME menu. 57 // opt-in IME menu.
61 bool ShouldShowKeyboardToggle() const; 58 bool ShouldShowKeyboardToggle() const;
62 59
63 // TrayBackgroundView: 60 // TrayBackgroundView:
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 void UpdateTrayLabel(); 97 void UpdateTrayLabel();
101 98
102 // Bubble for default and detailed views. 99 // Bubble for default and detailed views.
103 std::unique_ptr<TrayBubbleWrapper> bubble_; 100 std::unique_ptr<TrayBubbleWrapper> bubble_;
104 ImeListView* ime_list_view_; 101 ImeListView* ime_list_view_;
105 102
106 views::Label* label_; 103 views::Label* label_;
107 IMEInfo current_ime_; 104 IMEInfo current_ime_;
108 bool show_keyboard_; 105 bool show_keyboard_;
109 bool force_show_keyboard_; 106 bool force_show_keyboard_;
110 bool should_block_shelf_auto_hide_;
111 bool keyboard_suppressed_; 107 bool keyboard_suppressed_;
112 bool show_bubble_after_keyboard_hidden_; 108 bool show_bubble_after_keyboard_hidden_;
113 109
114 DISALLOW_COPY_AND_ASSIGN(ImeMenuTray); 110 DISALLOW_COPY_AND_ASSIGN(ImeMenuTray);
115 }; 111 };
116 112
117 } // namespace ash 113 } // namespace ash
118 114
119 #endif // ASH_SYSTEM_IME_MENU_IME_MENU_TRAY_H_ 115 #endif // ASH_SYSTEM_IME_MENU_IME_MENU_TRAY_H_
OLDNEW
« no previous file with comments | « no previous file | ash/system/ime_menu/ime_menu_tray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698