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

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: 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
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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 static const int kApiMinScriptableVersion = 5; 109 static const int kApiMinScriptableVersion = 5;
110 110
111 // Helper method to parse authentication_methods parameter. 111 // Helper method to parse authentication_methods parameter.
112 static bool ParseAuthMethods(const std::string& auth_methods, 112 static bool ParseAuthMethods(const std::string& auth_methods,
113 ClientConfig* config); 113 ClientConfig* config);
114 114
115 explicit ChromotingInstance(PP_Instance instance); 115 explicit ChromotingInstance(PP_Instance instance);
116 virtual ~ChromotingInstance(); 116 virtual ~ChromotingInstance();
117 117
118 // pp::Instance interface. 118 // pp::Instance interface.
119 virtual void DidChangeView(const pp::Rect& position, 119 virtual void DidChangeView(const pp::View& view) OVERRIDE;
120 const pp::Rect& clip) OVERRIDE;
121 virtual bool Init(uint32_t argc, const char* argn[], 120 virtual bool Init(uint32_t argc, const char* argn[],
122 const char* argv[]) OVERRIDE; 121 const char* argv[]) OVERRIDE;
123 virtual void HandleMessage(const pp::Var& message) OVERRIDE; 122 virtual void HandleMessage(const pp::Var& message) OVERRIDE;
124 virtual bool HandleInputEvent(const pp::InputEvent& event) OVERRIDE; 123 virtual bool HandleInputEvent(const pp::InputEvent& event) OVERRIDE;
125 124
126 // ClipboardStub implementation. 125 // ClipboardStub implementation.
127 virtual void InjectClipboardEvent(const protocol::ClipboardEvent& event) 126 virtual void InjectClipboardEvent(const protocol::ClipboardEvent& event)
128 OVERRIDE; 127 OVERRIDE;
129 128
130 // CursorShapeStub implementation. 129 // CursorShapeStub implementation.
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 scoped_refptr<PepperXmppProxy> xmpp_proxy_; 221 scoped_refptr<PepperXmppProxy> xmpp_proxy_;
223 222
224 base::WeakPtrFactory<ChromotingInstance> weak_factory_; 223 base::WeakPtrFactory<ChromotingInstance> weak_factory_;
225 224
226 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance); 225 DISALLOW_COPY_AND_ASSIGN(ChromotingInstance);
227 }; 226 };
228 227
229 } // namespace remoting 228 } // namespace remoting
230 229
231 #endif // REMOTING_CLIENT_PLUGIN_CHROMOTING_INSTANCE_H_ 230 #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