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

Unified Diff: chrome/browser/chromeos/extensions/input_method_api.h

Issue 973213003: Adds extension events for custom dictionary load/change. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: rebase Created 5 years, 10 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
Index: chrome/browser/chromeos/extensions/input_method_api.h
diff --git a/chrome/browser/chromeos/extensions/input_method_api.h b/chrome/browser/chromeos/extensions/input_method_api.h
index aed0217dcd6ad451368a450e8630779e68ecb410..509c1150e0a089dde5c99ff5fc663e8e75a4c72f 100644
--- a/chrome/browser/chromeos/extensions/input_method_api.h
+++ b/chrome/browser/chromeos/extensions/input_method_api.h
@@ -12,6 +12,7 @@
#include "extensions/browser/extension_function.h"
namespace chromeos {
+class ExtensionDictionaryEventRouter;
class ExtensionInputMethodEventRouter;
}
@@ -116,6 +117,8 @@ class AddWordToDictionaryFunction : public UIThreadExtensionFunction {
class InputMethodAPI : public BrowserContextKeyedAPI,
public extensions::EventRouter::Observer {
public:
+ static const char kOnDictionaryChanged[];
+ static const char kOnDictionaryLoaded[];
static const char kOnInputMethodChanged[];
explicit InputMethodAPI(content::BrowserContext* context);
@@ -148,6 +151,8 @@ class InputMethodAPI : public BrowserContextKeyedAPI,
// Created lazily upon OnListenerAdded.
scoped_ptr<chromeos::ExtensionInputMethodEventRouter>
input_method_event_router_;
+ scoped_ptr<chromeos::ExtensionDictionaryEventRouter>
+ dictionary_event_router_;
DISALLOW_COPY_AND_ASSIGN(InputMethodAPI);
};

Powered by Google App Engine
This is Rietveld 408576698