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

Unified Diff: ash/common/system/chromeos/ime_menu/ime_menu_tray.h

Issue 2420393002: Block shelf auto hidden when opt-in IME menu is shown. (Closed)
Patch Set: Block shelf auto hide. Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ash/common/system/chromeos/ime_menu/ime_menu_tray.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/chromeos/ime_menu/ime_menu_tray.h
diff --git a/ash/common/system/chromeos/ime_menu/ime_menu_tray.h b/ash/common/system/chromeos/ime_menu/ime_menu_tray.h
index 414fc96fa23a04f80f29563dd10fac27d206eb3b..6ba4692dc50731cea117bb01d69160c8c368ab68 100644
--- a/ash/common/system/chromeos/ime_menu/ime_menu_tray.h
+++ b/ash/common/system/chromeos/ime_menu/ime_menu_tray.h
@@ -46,6 +46,9 @@ class ASH_EXPORT ImeMenuTray : public TrayBackgroundView,
// voice.
void ShowKeyboardWithKeyset(const std::string& keyset);
+ // Returns true if it should block the auto hide behavior of the shelf.
+ bool ShouldBlockShelfAutoHide() const;
+
// TrayBackgroundView:
void SetShelfAlignment(ShelfAlignment alignment) override;
base::string16 GetAccessibleNameForTray() override;
@@ -91,6 +94,7 @@ class ASH_EXPORT ImeMenuTray : public TrayBackgroundView,
IMEInfo current_ime_;
bool show_keyboard_;
bool force_show_keyboard_;
+ bool should_block_shelf_auto_hide_;
DISALLOW_COPY_AND_ASSIGN(ImeMenuTray);
};
« no previous file with comments | « no previous file | ash/common/system/chromeos/ime_menu/ime_menu_tray.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698