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

Unified Diff: chrome/browser/ui/ash/ime_controller_chromeos.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 | « chrome/browser/ui/ash/ash_init.cc ('k') | chrome/browser/ui/ash/ime_controller_chromeos.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/ime_controller_chromeos.h
diff --git a/chrome/browser/ui/ash/ime_controller_chromeos.h b/chrome/browser/ui/ash/ime_controller_chromeos.h
new file mode 100644
index 0000000000000000000000000000000000000000..339e1f2844076e9b8b938ce9d586848f45c11e0c
--- /dev/null
+++ b/chrome/browser/ui/ash/ime_controller_chromeos.h
@@ -0,0 +1,30 @@
+// 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 CHROME_BROWSER_UI_ASH_IME_CONTROLLER_CHROMEOS_H_
+#define CHROME_BROWSER_UI_ASH_IME_CONTROLLER_CHROMEOS_H_
+
+#include "ash/ime_control_delegate.h"
+#include "base/compiler_specific.h"
+#include "base/macros.h"
+
+// A class which controls ime when an IME shortcut key such as Control+space is
+// pressed.
+class ImeController : public ash::ImeControlDelegate {
+ public:
+ ImeController() {}
+ ~ImeController() override {}
+
+ // Overridden from ash::ImeControlDelegate:
+ bool CanCycleIme() override;
+ void HandleNextIme() override;
+ void HandlePreviousIme() override;
+ bool CanSwitchIme(const ui::Accelerator& accelerator) override;
+ void HandleSwitchIme(const ui::Accelerator& accelerator) override;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(ImeController);
+};
+
+#endif // CHROME_BROWSER_UI_ASH_IME_CONTROLLER_CHROMEOS_H_
« no previous file with comments | « chrome/browser/ui/ash/ash_init.cc ('k') | chrome/browser/ui/ash/ime_controller_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698