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

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

Issue 12220092: Rename ClientDimensions to ClientResolution and add pixel-size and DPI fields. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 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 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 // Message handlers for messages that come from JavaScript. Called 123 // Message handlers for messages that come from JavaScript. Called
124 // from HandleMessage(). 124 // from HandleMessage().
125 void Connect(const ClientConfig& config); 125 void Connect(const ClientConfig& config);
126 void Disconnect(); 126 void Disconnect();
127 void OnIncomingIq(const std::string& iq); 127 void OnIncomingIq(const std::string& iq);
128 void ReleaseAllKeys(); 128 void ReleaseAllKeys();
129 void InjectKeyEvent(const protocol::KeyEvent& event); 129 void InjectKeyEvent(const protocol::KeyEvent& event);
130 void RemapKey(uint32 in_usb_keycode, uint32 out_usb_keycode); 130 void RemapKey(uint32 in_usb_keycode, uint32 out_usb_keycode);
131 void TrapKey(uint32 usb_keycode, bool trap); 131 void TrapKey(uint32 usb_keycode, bool trap);
132 void SendClipboardItem(const std::string& mime_type, const std::string& item); 132 void SendClipboardItem(const std::string& mime_type, const std::string& item);
133 void NotifyClientDimensions(int width, int height); 133 void NotifyClientResolution(int width, int height, int x_dpi, int y_dpi);
134 void PauseVideo(bool pause); 134 void PauseVideo(bool pause);
135 void PauseAudio(bool pause); 135 void PauseAudio(bool pause);
136 136
137 // Return statistics record by ChromotingClient. 137 // Return statistics record by ChromotingClient.
138 // If no connection is currently active then NULL will be returned. 138 // If no connection is currently active then NULL will be returned.
139 ChromotingStats* GetStats(); 139 ChromotingStats* GetStats();
140 140
141 // Registers a global log message handler that redirects the log output to 141 // Registers a global log message handler that redirects the log output to
142 // our plugin instance. 142 // our plugin instance.
143 // This is called by the plugin's PPP_InitializeModule. 143 // This is called by the plugin's PPP_InitializeModule.
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
211 scoped_refptr<PepperXmppProxy> xmpp_proxy_; 211 scoped_refptr<PepperXmppProxy> xmpp_proxy_;
212 212
213 base::WeakPtrFactory<ChromotingInstance> weak_factory_; 213 base::WeakPtrFactory<ChromotingInstance> weak_factory_;
214 214
215 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance); 215 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance);
216 }; 216 };
217 217
218 } // namespace remoting 218 } // namespace remoting
219 219
220 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ 220 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/client/plugin/chromoting_instance.cc » ('j') | remoting/client/plugin/chromoting_instance.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698