diff options
author | rpaquay@chromium.org <rpaquay@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-18 23:00:33 +0000 |
---|---|---|
committer | rpaquay@chromium.org <rpaquay@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-18 23:00:33 +0000 |
commit | 07ad9628854db580899ba0187f4bb51bf10e9572 (patch) | |
tree | d63f14fc6b2fbe3349d1dd6128e5d1c744d4a943 /chrome/browser/extensions/api/input_ime | |
parent | 67255b68fc6d15dd5ede9e851de71533bf1aac69 (diff) | |
download | chromium_src-07ad9628854db580899ba0187f4bb51bf10e9572.zip chromium_src-07ad9628854db580899ba0187f4bb51bf10e9572.tar.gz chromium_src-07ad9628854db580899ba0187f4bb51bf10e9572.tar.bz2 |
Record histogram of extension API usage
We create one histogram per function name and record each call.
BUG=37963
TBR=sky@chromium.org (for mechanical changes in a bunch of chrome/ subdirs)
Review URL: https://chromiumcodereview.appspot.com/11577015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@177787 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/api/input_ime')
-rw-r--r-- | chrome/browser/extensions/api/input_ime/input_ime_api.h | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/chrome/browser/extensions/api/input_ime/input_ime_api.h b/chrome/browser/extensions/api/input_ime/input_ime_api.h index 4cf7662..8a358e7 100644 --- a/chrome/browser/extensions/api/input_ime/input_ime_api.h +++ b/chrome/browser/extensions/api/input_ime/input_ime_api.h @@ -71,7 +71,8 @@ class InputImeEventRouter { class SetCompositionFunction : public SyncExtensionFunction { public: - DECLARE_EXTENSION_FUNCTION_NAME("input.ime.setComposition"); + DECLARE_EXTENSION_FUNCTION("input.ime.setComposition", + INPUT_IME_SETCOMPOSITION) protected: virtual ~SetCompositionFunction() {} @@ -82,7 +83,8 @@ class SetCompositionFunction : public SyncExtensionFunction { class ClearCompositionFunction : public SyncExtensionFunction { public: - DECLARE_EXTENSION_FUNCTION_NAME("input.ime.clearComposition"); + DECLARE_EXTENSION_FUNCTION("input.ime.clearComposition", + INPUT_IME_CLEARCOMPOSITION) protected: virtual ~ClearCompositionFunction() {} @@ -93,7 +95,7 @@ class ClearCompositionFunction : public SyncExtensionFunction { class CommitTextFunction : public SyncExtensionFunction { public: - DECLARE_EXTENSION_FUNCTION_NAME("input.ime.commitText"); + DECLARE_EXTENSION_FUNCTION("input.ime.commitText", INPUT_IME_COMMITTEXT) protected: virtual ~CommitTextFunction() {} @@ -104,7 +106,8 @@ class CommitTextFunction : public SyncExtensionFunction { class SetCandidateWindowPropertiesFunction : public SyncExtensionFunction { public: - DECLARE_EXTENSION_FUNCTION_NAME("input.ime.setCandidateWindowProperties"); + DECLARE_EXTENSION_FUNCTION("input.ime.setCandidateWindowProperties", + INPUT_IME_SETCANDIDATEWINDOWPROPERTIES) protected: virtual ~SetCandidateWindowPropertiesFunction() {} @@ -115,7 +118,7 @@ class SetCandidateWindowPropertiesFunction : public SyncExtensionFunction { class SetCandidatesFunction : public SyncExtensionFunction { public: - DECLARE_EXTENSION_FUNCTION_NAME("input.ime.setCandidates"); + DECLARE_EXTENSION_FUNCTION("input.ime.setCandidates", INPUT_IME_SETCANDIDATES) protected: virtual ~SetCandidatesFunction() {} @@ -131,7 +134,8 @@ class SetCandidatesFunction : public SyncExtensionFunction { class SetCursorPositionFunction : public SyncExtensionFunction { public: - DECLARE_EXTENSION_FUNCTION_NAME("input.ime.setCursorPosition"); + DECLARE_EXTENSION_FUNCTION("input.ime.setCursorPosition", + INPUT_IME_SETCURSORPOSITION) protected: virtual ~SetCursorPositionFunction() {} @@ -142,7 +146,7 @@ class SetCursorPositionFunction : public SyncExtensionFunction { class SetMenuItemsFunction : public SyncExtensionFunction { public: - DECLARE_EXTENSION_FUNCTION_NAME("input.ime.setMenuItems"); + DECLARE_EXTENSION_FUNCTION("input.ime.setMenuItems", INPUT_IME_SETMENUITEMS) protected: virtual ~SetMenuItemsFunction() {} @@ -153,7 +157,8 @@ class SetMenuItemsFunction : public SyncExtensionFunction { class UpdateMenuItemsFunction : public SyncExtensionFunction { public: - DECLARE_EXTENSION_FUNCTION_NAME("input.ime.updateMenuItems"); + DECLARE_EXTENSION_FUNCTION("input.ime.updateMenuItems", + INPUT_IME_UPDATEMENUITEMS) protected: virtual ~UpdateMenuItemsFunction() {} @@ -164,7 +169,8 @@ class UpdateMenuItemsFunction : public SyncExtensionFunction { class KeyEventHandled : public AsyncExtensionFunction { public: - DECLARE_EXTENSION_FUNCTION_NAME("input.ime.keyEventHandled"); + DECLARE_EXTENSION_FUNCTION("input.ime.keyEventHandled", + INPUT_IME_KEYEVENTHANDLED) protected: virtual ~KeyEventHandled() {} |