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

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

Issue 15912004: Add private API to notify end of initialization. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressing comments Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/input_method_api.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "chrome/browser/extensions/api/profile_keyed_api_factory.h" 10 #include "chrome/browser/extensions/api/profile_keyed_api_factory.h"
(...skipping 13 matching lines...) Expand all
24 24
25 protected: 25 protected:
26 virtual ~GetInputMethodFunction(); 26 virtual ~GetInputMethodFunction();
27 27
28 virtual bool RunImpl() OVERRIDE; 28 virtual bool RunImpl() OVERRIDE;
29 29
30 private: 30 private:
31 DECLARE_EXTENSION_FUNCTION("inputMethodPrivate.get", INPUTMETHODPRIVATE_GET) 31 DECLARE_EXTENSION_FUNCTION("inputMethodPrivate.get", INPUTMETHODPRIVATE_GET)
32 }; 32 };
33 33
34 // Notify the initialization is done to input method engine.
35 // TODO(nona): remove this function.
36 class StartImeFunction : public SyncExtensionFunction {
37 public:
38 StartImeFunction();
39
40 protected:
41 virtual ~StartImeFunction();
42
43 virtual bool RunImpl() OVERRIDE;
44
45 private:
46 DECLARE_EXTENSION_FUNCTION("inputMethodPrivate.startIme",
47 INPUTMETHODPRIVATE_STARTIME)
48 };
49
34 class InputMethodAPI : public ProfileKeyedAPI, 50 class InputMethodAPI : public ProfileKeyedAPI,
35 public extensions::EventRouter::Observer { 51 public extensions::EventRouter::Observer {
36 public: 52 public:
37 explicit InputMethodAPI(Profile* profile); 53 explicit InputMethodAPI(Profile* profile);
38 virtual ~InputMethodAPI(); 54 virtual ~InputMethodAPI();
39 55
40 // Returns input method name for the given XKB (X keyboard extensions in X 56 // Returns input method name for the given XKB (X keyboard extensions in X
41 // Window System) id. 57 // Window System) id.
42 static std::string GetInputMethodForXkb(const std::string& xkb_id); 58 static std::string GetInputMethodForXkb(const std::string& xkb_id);
43 59
(...skipping 21 matching lines...) Expand all
65 // Created lazily upon OnListenerAdded. 81 // Created lazily upon OnListenerAdded.
66 scoped_ptr<chromeos::ExtensionInputMethodEventRouter> 82 scoped_ptr<chromeos::ExtensionInputMethodEventRouter>
67 input_method_event_router_; 83 input_method_event_router_;
68 84
69 DISALLOW_COPY_AND_ASSIGN(InputMethodAPI); 85 DISALLOW_COPY_AND_ASSIGN(InputMethodAPI);
70 }; 86 };
71 87
72 } // namespace extensions 88 } // namespace extensions
73 89
74 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_INPUT_METHOD_API_H_ 90 #endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_INPUT_METHOD_API_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/input_method_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698