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

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

Issue 10785041: Make Chromoting client plugin always render at device DPI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase & fix typos. Created 8 years, 5 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
« no previous file with comments | « no previous file | remoting/client/plugin/chromoting_instance.cc » ('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) 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 static const int kApiMinScriptableVersion = 5; 91 static const int kApiMinScriptableVersion = 5;
92 92
93 // Helper method to parse authentication_methods parameter. 93 // Helper method to parse authentication_methods parameter.
94 static bool ParseAuthMethods(const std::string& auth_methods, 94 static bool ParseAuthMethods(const std::string& auth_methods,
95 ClientConfig* config); 95 ClientConfig* config);
96 96
97 explicit ChromotingInstance(PP_Instance instance); 97 explicit ChromotingInstance(PP_Instance instance);
98 virtual ~ChromotingInstance(); 98 virtual ~ChromotingInstance();
99 99
100 // pp::Instance interface. 100 // pp::Instance interface.
101 virtual void DidChangeView(const pp::Rect& position, 101 virtual void DidChangeView(const pp::View& view) OVERRIDE;
102 const pp::Rect& clip) OVERRIDE;
103 virtual bool Init(uint32_t argc, const char* argn[], 102 virtual bool Init(uint32_t argc, const char* argn[],
104 const char* argv[]) OVERRIDE; 103 const char* argv[]) OVERRIDE;
105 virtual void HandleMessage(const pp::Var& message) OVERRIDE; 104 virtual void HandleMessage(const pp::Var& message) OVERRIDE;
106 virtual bool HandleInputEvent(const pp::InputEvent& event) OVERRIDE; 105 virtual bool HandleInputEvent(const pp::InputEvent& event) OVERRIDE;
107 106
108 // ClientUserInterface interface. 107 // ClientUserInterface interface.
109 virtual void OnConnectionState(protocol::ConnectionToHost::State state, 108 virtual void OnConnectionState(protocol::ConnectionToHost::State state,
110 protocol::ErrorCode error) OVERRIDE; 109 protocol::ErrorCode error) OVERRIDE;
111 virtual void OnConnectionReady(bool ready) OVERRIDE; 110 virtual void OnConnectionReady(bool ready) OVERRIDE;
112 virtual protocol::ClipboardStub* GetClipboardStub() OVERRIDE; 111 virtual protocol::ClipboardStub* GetClipboardStub() OVERRIDE;
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 scoped_refptr<PepperXmppProxy> xmpp_proxy_; 209 scoped_refptr<PepperXmppProxy> xmpp_proxy_;
211 210
212 base::WeakPtrFactory<ChromotingInstance> weak_factory_; 211 base::WeakPtrFactory<ChromotingInstance> weak_factory_;
213 212
214 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance); 213 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance);
215 }; 214 };
216 215
217 } // namespace remoting 216 } // namespace remoting
218 217
219 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ 218 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_
OLDNEW
« no previous file with comments | « no previous file | remoting/client/plugin/chromoting_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698