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

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

Issue 10255007: Clamp events before they are sent to EventExecutors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix typo. Created 8 years, 7 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 // TODO(ajwong): We need to come up with a better description of the 5 // TODO(ajwong): We need to come up with a better description of the
6 // responsibilities for each thread. 6 // responsibilities for each thread.
7 7
8 #ifndef REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ 8 #ifndef REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_
9 #define REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ 9 #define REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_
10 10
(...skipping 29 matching lines...) Expand all
40 namespace pp { 40 namespace pp {
41 class InputEvent; 41 class InputEvent;
42 class Module; 42 class Module;
43 } // namespace pp 43 } // namespace pp
44 44
45 namespace remoting { 45 namespace remoting {
46 46
47 namespace protocol { 47 namespace protocol {
48 class ConnectionToHost; 48 class ConnectionToHost;
49 class InputEventTracker; 49 class InputEventTracker;
50 class MouseInputFilter;
50 } // namespace protocol 51 } // namespace protocol
51 52
52 class ChromotingClient; 53 class ChromotingClient;
53 class ChromotingScriptableObject; 54 class ChromotingScriptableObject;
54 class ChromotingStats; 55 class ChromotingStats;
55 class ClientContext; 56 class ClientContext;
56 class FrameConsumerProxy; 57 class FrameConsumerProxy;
57 class MouseInputFilter;
58 class PepperInputHandler; 58 class PepperInputHandler;
59 class PepperView; 59 class PepperView;
60 class PepperXmppProxy; 60 class PepperXmppProxy;
61 class RectangleUpdateDecoder; 61 class RectangleUpdateDecoder;
62 62
63 struct ClientConfig; 63 struct ClientConfig;
64 64
65 class ChromotingInstance : 65 class ChromotingInstance :
66 public protocol::ClipboardStub, 66 public protocol::ClipboardStub,
67 public pp::InstancePrivate, 67 public pp::InstancePrivate,
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 191
192 bool initialized_; 192 bool initialized_;
193 193
194 PepperPluginThreadDelegate plugin_thread_delegate_; 194 PepperPluginThreadDelegate plugin_thread_delegate_;
195 scoped_refptr<PluginMessageLoopProxy> plugin_message_loop_; 195 scoped_refptr<PluginMessageLoopProxy> plugin_message_loop_;
196 ClientContext context_; 196 ClientContext context_;
197 scoped_ptr<protocol::ConnectionToHost> host_connection_; 197 scoped_ptr<protocol::ConnectionToHost> host_connection_;
198 scoped_ptr<PepperView> view_; 198 scoped_ptr<PepperView> view_;
199 199
200 scoped_refptr<RectangleUpdateDecoder> rectangle_decoder_; 200 scoped_refptr<RectangleUpdateDecoder> rectangle_decoder_;
201 scoped_ptr<MouseInputFilter> mouse_input_filter_; 201 scoped_ptr<protocol::MouseInputFilter> mouse_input_filter_;
202 scoped_ptr<protocol::InputEventTracker> input_tracker_; 202 scoped_ptr<protocol::InputEventTracker> input_tracker_;
203 KeyEventMapper key_mapper_; 203 KeyEventMapper key_mapper_;
204 scoped_ptr<PepperInputHandler> input_handler_; 204 scoped_ptr<PepperInputHandler> input_handler_;
205 scoped_ptr<ChromotingClient> client_; 205 scoped_ptr<ChromotingClient> client_;
206 206
207 // XmppProxy is a refcounted interface used to perform thread-switching and 207 // XmppProxy is a refcounted interface used to perform thread-switching and
208 // detaching between objects whose lifetimes are controlled by pepper, and 208 // detaching between objects whose lifetimes are controlled by pepper, and
209 // jingle_glue objects. This is used when if we start a sandboxed jingle 209 // jingle_glue objects. This is used when if we start a sandboxed jingle
210 // connection. 210 // connection.
211 scoped_refptr<PepperXmppProxy> xmpp_proxy_; 211 scoped_refptr<PepperXmppProxy> xmpp_proxy_;
212 212
213 // JavaScript interface to control this instance. 213 // JavaScript interface to control this instance.
214 // This wraps a ChromotingScriptableObject in a pp::Var. 214 // This wraps a ChromotingScriptableObject in a pp::Var.
215 pp::Var instance_object_; 215 pp::Var instance_object_;
216 216
217 scoped_ptr<ScopedThreadProxy> thread_proxy_; 217 scoped_ptr<ScopedThreadProxy> thread_proxy_;
218 218
219 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance); 219 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance);
220 }; 220 };
221 221
222 } // namespace remoting 222 } // namespace remoting
223 223
224 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ 224 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_
OLDNEW
« no previous file with comments | « remoting/client/mouse_input_filter_unittest.cc ('k') | remoting/client/plugin/chromoting_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698