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

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

Issue 676593004: Adds experimental flag --enable-experimental-ime-features. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revised per comment. Created 6 years, 2 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
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_INPUT_METHOD_API_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_INPUT_METHOD_API_H_
6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_INPUT_METHOD_API_H_ 6 #define CHROME_BROWSER_CHROMEOS_EXTENSIONS_INPUT_METHOD_API_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "extensions/browser/browser_context_keyed_api_factory.h" 10 #include "extensions/browser/browser_context_keyed_api_factory.h"
11 #include "extensions/browser/event_router.h" 11 #include "extensions/browser/event_router.h"
12 #include "extensions/browser/extension_function.h" 12 #include "extensions/browser/extension_function.h"
13 13
14 namespace chromeos { 14 namespace chromeos {
15 class ExtensionInputMethodEventRouter; 15 class ExtensionInputMethodEventRouter;
16 } 16 }
17 17
18 namespace extensions { 18 namespace extensions {
19 19
20 // Implements the inputMethodPrivate.getConfig method.
21 class GetConfigFunction : public UIThreadExtensionFunction {
Yuki 2014/10/23 07:05:43 I'm worrying about the class name. It's extension
Shu Chen 2014/10/23 07:19:05 Done.
22 public:
23 GetConfigFunction() {}
24
25 protected:
26 virtual ~GetConfigFunction() {}
27
28 virtual ResponseAction Run() override;
29
30 private:
31 DECLARE_EXTENSION_FUNCTION("inputMethodPrivate.getConfig",
32 INPUTMETHODPRIVATE_GETCONFIG)
33 };
Yuki 2014/10/23 07:05:43 Better to have DISALLOW_COPY_AND_ASSIGN just in ca
Shu Chen 2014/10/23 07:19:05 Done.
34
20 // Implements the inputMethodPrivate.getCurrentInputMethod method. 35 // Implements the inputMethodPrivate.getCurrentInputMethod method.
21 class GetCurrentInputMethodFunction : public UIThreadExtensionFunction { 36 class GetCurrentInputMethodFunction : public UIThreadExtensionFunction {
22 public: 37 public:
23 GetCurrentInputMethodFunction() {} 38 GetCurrentInputMethodFunction() {}
24 39
25 protected: 40 protected:
26 virtual ~GetCurrentInputMethodFunction() {} 41 virtual ~GetCurrentInputMethodFunction() {}
27 42
28 virtual ResponseAction Run() override; 43 virtual ResponseAction Run() override;
29 44
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 // Created lazily upon OnListenerAdded. 113 // Created lazily upon OnListenerAdded.
99 scoped_ptr<chromeos::ExtensionInputMethodEventRouter> 114 scoped_ptr<chromeos::ExtensionInputMethodEventRouter>
100 input_method_event_router_; 115 input_method_event_router_;
101 116
102 DISALLOW_COPY_AND_ASSIGN(InputMethodAPI); 117 DISALLOW_COPY_AND_ASSIGN(InputMethodAPI);
103 }; 118 };
104 119
105 } // namespace extensions 120 } // namespace extensions
106 121
107 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_INPUT_METHOD_API_H_ 122 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_INPUT_METHOD_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698