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

Side by Side Diff: chrome/browser/extensions/extension_input_ime_api.h

Issue 10071035: RefCounted types should not have public destructors, chrome/browser/extensions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Compile fix Created 8 years, 8 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_EXTENSIONS_EXTENSION_INPUT_IME_API_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_INPUT_IME_API_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INPUT_IME_API_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_INPUT_IME_API_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/extensions/extension_function.h" 9 #include "chrome/browser/extensions/extension_function.h"
10 10
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 observers_; 60 observers_;
61 61
62 unsigned int next_request_id_; 62 unsigned int next_request_id_;
63 RequestMap request_map_; 63 RequestMap request_map_;
64 64
65 DISALLOW_COPY_AND_ASSIGN(ExtensionInputImeEventRouter); 65 DISALLOW_COPY_AND_ASSIGN(ExtensionInputImeEventRouter);
66 }; 66 };
67 67
68 class SetCompositionFunction : public SyncExtensionFunction { 68 class SetCompositionFunction : public SyncExtensionFunction {
69 public: 69 public:
70 DECLARE_EXTENSION_FUNCTION_NAME("input.ime.setComposition");
71
72 protected:
70 virtual ~SetCompositionFunction() {} 73 virtual ~SetCompositionFunction() {}
74
75 // ExtensionFunction:
71 virtual bool RunImpl() OVERRIDE; 76 virtual bool RunImpl() OVERRIDE;
72 DECLARE_EXTENSION_FUNCTION_NAME("input.ime.setComposition");
73 }; 77 };
74 78
75 class ClearCompositionFunction : public SyncExtensionFunction { 79 class ClearCompositionFunction : public SyncExtensionFunction {
76 public: 80 public:
81 DECLARE_EXTENSION_FUNCTION_NAME("input.ime.clearComposition");
82
83 protected:
77 virtual ~ClearCompositionFunction() {} 84 virtual ~ClearCompositionFunction() {}
85
86 // ExtensionFunction:
78 virtual bool RunImpl() OVERRIDE; 87 virtual bool RunImpl() OVERRIDE;
79 DECLARE_EXTENSION_FUNCTION_NAME("input.ime.clearComposition");
80 }; 88 };
81 89
82 class CommitTextFunction : public SyncExtensionFunction { 90 class CommitTextFunction : public SyncExtensionFunction {
83 public: 91 public:
92 DECLARE_EXTENSION_FUNCTION_NAME("input.ime.commitText");
93
94 protected:
84 virtual ~CommitTextFunction() {} 95 virtual ~CommitTextFunction() {}
96
97 // ExtensionFunction:
85 virtual bool RunImpl() OVERRIDE; 98 virtual bool RunImpl() OVERRIDE;
86 DECLARE_EXTENSION_FUNCTION_NAME("input.ime.commitText");
87 }; 99 };
88 100
89 class SetCandidateWindowPropertiesFunction : public SyncExtensionFunction { 101 class SetCandidateWindowPropertiesFunction : public SyncExtensionFunction {
90 public: 102 public:
103 DECLARE_EXTENSION_FUNCTION_NAME("input.ime.setCandidateWindowProperties");
104
105 protected:
91 virtual ~SetCandidateWindowPropertiesFunction() {} 106 virtual ~SetCandidateWindowPropertiesFunction() {}
107
108 // ExtensionFunction:
92 virtual bool RunImpl() OVERRIDE; 109 virtual bool RunImpl() OVERRIDE;
93 DECLARE_EXTENSION_FUNCTION_NAME("input.ime.setCandidateWindowProperties");
94 }; 110 };
95 111
96 class SetCandidatesFunction : public SyncExtensionFunction { 112 class SetCandidatesFunction : public SyncExtensionFunction {
97 public: 113 public:
114 DECLARE_EXTENSION_FUNCTION_NAME("input.ime.setCandidates");
115
116 protected:
98 virtual ~SetCandidatesFunction() {} 117 virtual ~SetCandidatesFunction() {}
118
119 // ExtensionFunction:
99 virtual bool RunImpl() OVERRIDE; 120 virtual bool RunImpl() OVERRIDE;
100 DECLARE_EXTENSION_FUNCTION_NAME("input.ime.setCandidates"); 121
101 private: 122 private:
102 bool ReadCandidates( 123 bool ReadCandidates(
103 ListValue* candidates, 124 ListValue* candidates,
104 std::vector<chromeos::InputMethodEngine::Candidate>* output); 125 std::vector<chromeos::InputMethodEngine::Candidate>* output);
105 }; 126 };
106 127
107 class SetCursorPositionFunction : public SyncExtensionFunction { 128 class SetCursorPositionFunction : public SyncExtensionFunction {
108 public: 129 public:
130 DECLARE_EXTENSION_FUNCTION_NAME("input.ime.setCursorPosition");
131
132 protected:
109 virtual ~SetCursorPositionFunction() {} 133 virtual ~SetCursorPositionFunction() {}
134
135 // ExtensionFunction:
110 virtual bool RunImpl() OVERRIDE; 136 virtual bool RunImpl() OVERRIDE;
111 DECLARE_EXTENSION_FUNCTION_NAME("input.ime.setCursorPosition");
112 }; 137 };
113 138
114 class SetMenuItemsFunction : public SyncExtensionFunction { 139 class SetMenuItemsFunction : public SyncExtensionFunction {
115 public: 140 public:
141 DECLARE_EXTENSION_FUNCTION_NAME("input.ime.setMenuItems");
142
143 protected:
116 virtual ~SetMenuItemsFunction() {} 144 virtual ~SetMenuItemsFunction() {}
145
146 // ExtensionFunction:
117 virtual bool RunImpl() OVERRIDE; 147 virtual bool RunImpl() OVERRIDE;
118 DECLARE_EXTENSION_FUNCTION_NAME("input.ime.setMenuItems");
119 }; 148 };
120 149
121 class UpdateMenuItemsFunction : public SyncExtensionFunction { 150 class UpdateMenuItemsFunction : public SyncExtensionFunction {
122 public: 151 public:
152 DECLARE_EXTENSION_FUNCTION_NAME("input.ime.updateMenuItems");
153
154 protected:
123 virtual ~UpdateMenuItemsFunction() {} 155 virtual ~UpdateMenuItemsFunction() {}
156
157 // ExtensionFunction:
124 virtual bool RunImpl() OVERRIDE; 158 virtual bool RunImpl() OVERRIDE;
125 DECLARE_EXTENSION_FUNCTION_NAME("input.ime.updateMenuItems");
126 }; 159 };
127 160
128 class InputEventHandled : public AsyncExtensionFunction { 161 class InputEventHandled : public AsyncExtensionFunction {
129 public: 162 public:
163 DECLARE_EXTENSION_FUNCTION_NAME("input.ime.eventHandled");
164
165 protected:
130 virtual ~InputEventHandled() {} 166 virtual ~InputEventHandled() {}
167
168 // ExtensionFunction:
131 virtual bool RunImpl() OVERRIDE; 169 virtual bool RunImpl() OVERRIDE;
132 DECLARE_EXTENSION_FUNCTION_NAME("input.ime.eventHandled");
133 }; 170 };
134 171
135 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INPUT_IME_API_H_ 172 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_INPUT_IME_API_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_input_api.h ('k') | chrome/browser/extensions/extension_input_ime_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698