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

Unified Diff: remoting/client/plugin/chromoting_instance.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/client/plugin/chromoting_instance.h ('k') | remoting/client/plugin/pepper_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/client/plugin/chromoting_instance.cc
diff --git a/remoting/client/plugin/chromoting_instance.cc b/remoting/client/plugin/chromoting_instance.cc
index 71ccd2a74633dacbc02aa7caa23ff27fd42f053f..fc7b46fa6c1014b658e882e33b38e57d4eeef23c 100644
--- a/remoting/client/plugin/chromoting_instance.cc
+++ b/remoting/client/plugin/chromoting_instance.cc
@@ -341,18 +341,13 @@ void ChromotingInstance::HandleMessage(const pp::Var& message) {
}
}
-void ChromotingInstance::DidChangeView(const pp::Rect& position,
- const pp::Rect& clip) {
+void ChromotingInstance::DidChangeView(const pp::View& view) {
DCHECK(plugin_message_loop_->BelongsToCurrentThread());
- SkISize new_size = SkISize::Make(position.width(), position.height());
- SkIRect new_clip =
- SkIRect::MakeXYWH(clip.x(), clip.y(), clip.width(), clip.height());
-
- view_->SetView(new_size, new_clip);
+ view_->SetView(view);
if (mouse_input_filter_.get()) {
- mouse_input_filter_->set_input_size(view_->get_view_size());
+ mouse_input_filter_->set_input_size(view_->get_view_size_dips());
}
}
@@ -484,7 +479,7 @@ void ChromotingInstance::Connect(const ClientConfig& config) {
// Construct the input pipeline
mouse_input_filter_.reset(
new protocol::MouseInputFilter(host_connection_->input_stub()));
- mouse_input_filter_->set_input_size(view_->get_view_size());
+ mouse_input_filter_->set_input_size(view_->get_view_size_dips());
input_tracker_.reset(
new protocol::InputEventTracker(mouse_input_filter_.get()));
« no previous file with comments | « remoting/client/plugin/chromoting_instance.h ('k') | remoting/client/plugin/pepper_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698