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

Unified Diff: ash/test/test_system_tray_delegate.h

Issue 1996563002: Add ImeMenuTray element. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix patch failure. Created 4 years, 5 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 | « ash/common/system/tray/tray_constants.cc ('k') | ash/test/test_system_tray_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/test/test_system_tray_delegate.h
diff --git a/ash/test/test_system_tray_delegate.h b/ash/test/test_system_tray_delegate.h
index 69ec1d5aa304210d36c50a9672b1d0474af32109..bf75e3ea28c481a1fa55b125d3daa1c0ea6db290 100644
--- a/ash/test/test_system_tray_delegate.h
+++ b/ash/test/test_system_tray_delegate.h
@@ -6,6 +6,7 @@
#define ASH_TEST_TEST_SYSTEM_TRAY_DELEGATE_H_
#include "ash/common/system/tray/default_system_tray_delegate.h"
+#include "ash/common/system/tray/system_tray_delegate.h"
#include "base/macros.h"
#include "base/time/time.h"
@@ -47,6 +48,9 @@ class TestSystemTrayDelegate : public DefaultSystemTrayDelegate {
// Clears the session length limit.
void ClearSessionLengthLimit();
+ // Sets the IME info.
+ void SetCurrentIME(const IMEInfo& info);
+
// Overridden from SystemTrayDelegate:
LoginStatus GetUserLoginStatus() const override;
bool IsUserSupervised() const override;
@@ -59,12 +63,14 @@ class TestSystemTrayDelegate : public DefaultSystemTrayDelegate {
SystemTray* tray) override;
std::unique_ptr<SystemTrayItem> CreateRotationLockTrayItem(
SystemTray* tray) override;
+ void GetCurrentIME(IMEInfo* info) override;
private:
bool should_show_display_notification_;
LoginStatus login_status_;
base::TimeDelta session_length_limit_;
bool session_length_limit_set_;
+ IMEInfo current_ime_;
DISALLOW_COPY_AND_ASSIGN(TestSystemTrayDelegate);
};
« no previous file with comments | « ash/common/system/tray/tray_constants.cc ('k') | ash/test/test_system_tray_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698