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

Unified Diff: ash/common/system/ime/tray_ime_chromeos.h

Issue 2652793003: Add login screen locale and input method device policies (Closed)
Patch Set: Rebase. Created 3 years, 10 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
Index: ash/common/system/ime/tray_ime_chromeos.h
diff --git a/ash/common/system/ime/tray_ime_chromeos.h b/ash/common/system/ime/tray_ime_chromeos.h
index b04942dc181ceadfe8bff1208da9df92b31b3c9d..bce373e51c11d796ccbe9e91d6afb7b78813e4a3 100644
--- a/ash/common/system/ime/tray_ime_chromeos.h
+++ b/ash/common/system/ime/tray_ime_chromeos.h
@@ -8,6 +8,7 @@
#include <stddef.h>
#include "ash/common/system/accessibility_observer.h"
+#include "ash/common/system/chromeos/ime_menu/ime_list_view.h"
#include "ash/common/system/chromeos/virtual_keyboard/virtual_keyboard_observer.h"
#include "ash/common/system/ime/ime_observer.h"
#include "ash/common/system/tray/ime_info.h"
@@ -65,9 +66,18 @@ class ASH_EXPORT TrayIME : public SystemTrayItem,
void OnIMERefresh() override;
void OnIMEMenuActivationChanged(bool is_active) override;
+ // Returns true input methods are managed by policy.
+ bool IsIMEManaged();
+
// Whether the default view should be shown.
bool ShouldDefaultViewBeVisible();
+ // Decides if a tray icon should be shown.
+ bool ShouldShowImeTrayItem(size_t ime_count);
+ // Mandates behavior for the single IME case for the detailed IME list
+ // sub-view.
+ ImeListView::SingleImeBehavior GetSingleImeBehavior();
+
TrayItemView* tray_label_;
tray::IMEDefaultView* default_;
tray::IMEDetailedView* detailed_;
@@ -77,6 +87,10 @@ class ASH_EXPORT TrayIME : public SystemTrayItem,
IMEInfoList ime_list_;
IMEInfo current_ime_;
IMEPropertyInfoList property_list_;
+ // If non-empty, a controlled-setting icon should be displayed with a tooltip
+ // text defined by this string.
+ base::string16 ime_managed_message_;
+
// Whether the IME label and tray items should be visible.
bool is_visible_;

Powered by Google App Engine
This is Rietveld 408576698