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

Side by Side Diff: remoting/client/plugin/chromoting_scriptable_object.h

Issue 8601011: Add OVERRIDE to remoting/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 | « remoting/base/decompressor_zlib.h ('k') | remoting/client/plugin/pepper_input_handler.h » ('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 // This implements the JavaScript class entrypoint for the plugin instance. 5 // This implements the JavaScript class entrypoint for the plugin instance.
6 // The Javascript API is defined as follows. 6 // The Javascript API is defined as follows.
7 // 7 //
8 // interface ChromotingScriptableObject { 8 // interface ChromotingScriptableObject {
9 // 9 //
10 // // Chromoting session API version (for this plugin). 10 // // Chromoting session API version (for this plugin).
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 }; 138 };
139 139
140 ChromotingScriptableObject( 140 ChromotingScriptableObject(
141 ChromotingInstance* instance, 141 ChromotingInstance* instance,
142 base::MessageLoopProxy* plugin_message_loop); 142 base::MessageLoopProxy* plugin_message_loop);
143 virtual ~ChromotingScriptableObject(); 143 virtual ~ChromotingScriptableObject();
144 144
145 virtual void Init(); 145 virtual void Init();
146 146
147 // Override the ScriptableObject functions. 147 // Override the ScriptableObject functions.
148 virtual bool HasProperty(const pp::Var& name, pp::Var* exception); 148 virtual bool HasProperty(const pp::Var& name, pp::Var* exception) OVERRIDE;
149 virtual bool HasMethod(const pp::Var& name, pp::Var* exception); 149 virtual bool HasMethod(const pp::Var& name, pp::Var* exception) OVERRIDE;
150 virtual pp::Var GetProperty(const pp::Var& name, pp::Var* exception); 150 virtual pp::Var GetProperty(const pp::Var& name, pp::Var* exception) OVERRIDE;
151 virtual void GetAllPropertyNames(std::vector<pp::Var>* properties, 151 virtual void GetAllPropertyNames(std::vector<pp::Var>* properties,
152 pp::Var* exception); 152 pp::Var* exception) OVERRIDE;
153 virtual void SetProperty(const pp::Var& name, 153 virtual void SetProperty(const pp::Var& name,
154 const pp::Var& value, 154 const pp::Var& value,
155 pp::Var* exception); 155 pp::Var* exception) OVERRIDE;
156 virtual pp::Var Call(const pp::Var& method_name, 156 virtual pp::Var Call(const pp::Var& method_name,
157 const std::vector<pp::Var>& args, 157 const std::vector<pp::Var>& args,
158 pp::Var* exception); 158 pp::Var* exception) OVERRIDE;
159 159
160 void SetConnectionStatus(ConnectionStatus status, ConnectionError error); 160 void SetConnectionStatus(ConnectionStatus status, ConnectionError error);
161 void LogDebugInfo(const std::string& info); 161 void LogDebugInfo(const std::string& info);
162 void SetDesktopSize(int width, int height); 162 void SetDesktopSize(int width, int height);
163 163
164 // Attaches the XmppProxy used for issuing and receivng IQ stanzas for 164 // Attaches the XmppProxy used for issuing and receivng IQ stanzas for
165 // initializing a jingle connection from within the sandbox. 165 // initializing a jingle connection from within the sandbox.
166 void AttachXmppProxy(PepperXmppProxy* xmpp_proxy); 166 void AttachXmppProxy(PepperXmppProxy* xmpp_proxy);
167 167
168 // Sends an IQ stanza, serialized as an xml string, into Javascript for 168 // Sends an IQ stanza, serialized as an xml string, into Javascript for
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 230
231 scoped_refptr<base::MessageLoopProxy> plugin_message_loop_; 231 scoped_refptr<base::MessageLoopProxy> plugin_message_loop_;
232 ScopedRunnableMethodFactory<ChromotingScriptableObject> task_factory_; 232 ScopedRunnableMethodFactory<ChromotingScriptableObject> task_factory_;
233 233
234 DISALLOW_COPY_AND_ASSIGN(ChromotingScriptableObject); 234 DISALLOW_COPY_AND_ASSIGN(ChromotingScriptableObject);
235 }; 235 };
236 236
237 } // namespace remoting 237 } // namespace remoting
238 238
239 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_SCRIPTABLE_OBJECT_H_ 239 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_SCRIPTABLE_OBJECT_H_
OLDNEW
« no previous file with comments | « remoting/base/decompressor_zlib.h ('k') | remoting/client/plugin/pepper_input_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698