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

Unified Diff: ash/ime_control_delegate.h

Issue 2925683002: Revert of chromeos: Remove some IME methods from ash::SystemTrayDelegate (Closed)
Patch Set: Created 3 years, 6 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/ime/ime_switch_type.h ('k') | ash/system/ime_menu/ime_list_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/ime_control_delegate.h
diff --git a/ash/ime_control_delegate.h b/ash/ime_control_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..5dbc52c0a70b4e5bb5989cf9fb199da288838728
--- /dev/null
+++ b/ash/ime_control_delegate.h
@@ -0,0 +1,40 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ASH_IME_CONTROL_DELEGATE_H_
+#define ASH_IME_CONTROL_DELEGATE_H_
+
+namespace ui {
+class Accelerator;
+} // namespace ui
+
+namespace ash {
+
+// Delegate for controlling IME (input method editor).
+class ImeControlDelegate {
+ public:
+ virtual ~ImeControlDelegate() {}
+
+ // Returns whether a user can cycle through IMEs. Returns false if only one
+ // IME is enabled.
+ virtual bool CanCycleIme() = 0;
+
+ // Changes the IME to what is listed next.
+ virtual void HandleNextIme() = 0;
+
+ // Changes the IME to previously selected one. If there is no previously
+ // selected IMEs, chooses the next listed IME.
+ virtual void HandlePreviousIme() = 0;
+
+ // Returns true if the IME can be switched to the IME associated with
+ // |accelerator|.
+ virtual bool CanSwitchIme(const ui::Accelerator& accelerator) = 0;
+
+ // Switches to the IME associated with |accelerator|.
+ virtual void HandleSwitchIme(const ui::Accelerator& accelerator) = 0;
+};
+
+} // namespace ash
+
+#endif // ASH_IME_CONTROL_DELEGATE_H_
« no previous file with comments | « ash/ime/ime_switch_type.h ('k') | ash/system/ime_menu/ime_list_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698