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

Unified Diff: chrome/browser/extensions/api/input_ime/input_ime_api.h

Issue 10735074: Moving input_ime to api/ . (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Indentation Created 8 years, 5 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 | « no previous file | chrome/browser/extensions/api/input_ime/input_ime_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/input_ime/input_ime_api.h
diff --git a/chrome/browser/extensions/extension_input_ime_api.h b/chrome/browser/extensions/api/input_ime/input_ime_api.h
similarity index 89%
rename from chrome/browser/extensions/extension_input_ime_api.h
rename to chrome/browser/extensions/api/input_ime/input_ime_api.h
index b88b0760232fafe0c607a9ea6d853ae616e70d38..2ef58dacd84bab53ff60242fb9e2d7c172daa1b5 100644
--- a/chrome/browser/extensions/extension_input_ime_api.h
+++ b/chrome/browser/extensions/api/input_ime/input_ime_api.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_INPUT_IME_API_H_
-#define CHROME_BROWSER_EXTENSIONS_EXTENSION_INPUT_IME_API_H_
+#ifndef CHROME_BROWSER_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_H_
+#define CHROME_BROWSER_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_H_
#include "chrome/browser/extensions/extension_function.h"
@@ -23,9 +23,11 @@ class InputMethodEngine;
class ImeObserver;
}
-class ExtensionInputImeEventRouter {
+namespace extensions {
+
+class InputImeEventRouter {
public:
- static ExtensionInputImeEventRouter* GetInstance();
+ static InputImeEventRouter* GetInstance();
void Init();
bool RegisterIme(Profile* profile,
@@ -46,12 +48,12 @@ class ExtensionInputImeEventRouter {
chromeos::input_method::KeyEventHandle* key_data);
private:
- friend struct DefaultSingletonTraits<ExtensionInputImeEventRouter>;
+ friend struct DefaultSingletonTraits<InputImeEventRouter>;
typedef std::map<std::string, std::pair<std::string,
chromeos::input_method::KeyEventHandle*> > RequestMap;
- ExtensionInputImeEventRouter();
- ~ExtensionInputImeEventRouter();
+ InputImeEventRouter();
+ ~InputImeEventRouter();
std::map<std::string, std::map<std::string, chromeos::InputMethodEngine*> >
engines_;
@@ -61,7 +63,7 @@ class ExtensionInputImeEventRouter {
unsigned int next_request_id_;
RequestMap request_map_;
- DISALLOW_COPY_AND_ASSIGN(ExtensionInputImeEventRouter);
+ DISALLOW_COPY_AND_ASSIGN(InputImeEventRouter);
};
class SetCompositionFunction : public SyncExtensionFunction {
@@ -168,4 +170,6 @@ class InputEventHandled : public AsyncExtensionFunction {
virtual bool RunImpl() OVERRIDE;
};
-#endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INPUT_IME_API_H_
+} // namespace extensions
+
+#endif // CHROME_BROWSER_EXTENSIONS_API_INPUT_IME_INPUT_IME_API_H_
« no previous file with comments | « no previous file | chrome/browser/extensions/api/input_ime/input_ime_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698