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

Side by Side Diff: chrome/browser/chromeos/extensions/ime_menu_event_router.h

Issue 1523593002: Add an option in language settings for activating the IME menu. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_IME_MENU_EVENT_ROUTER_H_
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_IME_MENU_EVENT_ROUTER_H_
7
8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h"
10 #include "ui/base/ime/chromeos/input_method_manager.h"
11
12 namespace content {
13 class BrowserContext;
14 }
15
16 namespace chromeos {
17
18 // Event router class for the IME Menu activated/deactivate events.
19 class ExtensionImeMenuEventRouter
20 : public input_method::InputMethodManager::ImeMenuObserver {
21 public:
22 explicit ExtensionImeMenuEventRouter(content::BrowserContext* context);
23 ~ExtensionImeMenuEventRouter() override;
24
25 // Implements input_method::InputMethodManager::ImeMenuObserver:
26 void ImeMenuActivated(input_method::InputMethodManager* manager) override;
27 void ImeMenuDeactivated(input_method::InputMethodManager* manager) override;
28
29 private:
30 content::BrowserContext* context_;
31
32 DISALLOW_COPY_AND_ASSIGN(ExtensionImeMenuEventRouter);
33 };
34
35 } // namespace chromeos
36 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_IME_MENU_EVENT_ROUTER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698