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

Side by Side Diff: content/browser/browser_plugin/browser_plugin_guest.cc

Issue 525523003: Remove two unnecessary params in ViewHostMsg_UpdateRect_Params (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Android build Created 6 years, 3 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
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 #include "content/browser/browser_plugin/browser_plugin_guest.h" 5 #include "content/browser/browser_plugin/browser_plugin_guest.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "base/pickle.h" 10 #include "base/pickle.h"
(...skipping 816 matching lines...) Expand 10 before | Expand all | Expand 10 after
827 827
828 void BrowserPluginGuest::OnTakeFocus(bool reverse) { 828 void BrowserPluginGuest::OnTakeFocus(bool reverse) {
829 SendMessageToEmbedder( 829 SendMessageToEmbedder(
830 new BrowserPluginMsg_AdvanceFocus(browser_plugin_instance_id(), reverse)); 830 new BrowserPluginMsg_AdvanceFocus(browser_plugin_instance_id(), reverse));
831 } 831 }
832 832
833 void BrowserPluginGuest::OnUpdateRect( 833 void BrowserPluginGuest::OnUpdateRect(
834 const ViewHostMsg_UpdateRect_Params& params) { 834 const ViewHostMsg_UpdateRect_Params& params) {
835 BrowserPluginMsg_UpdateRect_Params relay_params; 835 BrowserPluginMsg_UpdateRect_Params relay_params;
836 relay_params.view_size = params.view_size; 836 relay_params.view_size = params.view_size;
837 relay_params.scale_factor = params.scale_factor;
838 relay_params.is_resize_ack = ViewHostMsg_UpdateRect_Flags::is_resize_ack( 837 relay_params.is_resize_ack = ViewHostMsg_UpdateRect_Flags::is_resize_ack(
839 params.flags); 838 params.flags);
840 839
841 if (last_seen_view_size_ != params.view_size) { 840 if (last_seen_view_size_ != params.view_size) {
842 delegate_->GuestSizeChanged(last_seen_view_size_, params.view_size); 841 delegate_->GuestSizeChanged(last_seen_view_size_, params.view_size);
843 last_seen_view_size_ = params.view_size; 842 last_seen_view_size_ = params.view_size;
844 } 843 }
845 844
846 SendMessageToEmbedder( 845 SendMessageToEmbedder(
847 new BrowserPluginMsg_UpdateRect(browser_plugin_instance_id(), 846 new BrowserPluginMsg_UpdateRect(browser_plugin_instance_id(),
(...skipping 20 matching lines...) Expand all
868 void BrowserPluginGuest::OnImeCompositionRangeChanged( 867 void BrowserPluginGuest::OnImeCompositionRangeChanged(
869 const gfx::Range& range, 868 const gfx::Range& range,
870 const std::vector<gfx::Rect>& character_bounds) { 869 const std::vector<gfx::Rect>& character_bounds) {
871 static_cast<RenderWidgetHostViewBase*>( 870 static_cast<RenderWidgetHostViewBase*>(
872 web_contents()->GetRenderWidgetHostView())->ImeCompositionRangeChanged( 871 web_contents()->GetRenderWidgetHostView())->ImeCompositionRangeChanged(
873 range, character_bounds); 872 range, character_bounds);
874 } 873 }
875 #endif 874 #endif
876 875
877 } // namespace content 876 } // namespace content
OLDNEW
« no previous file with comments | « chrome/browser/thumbnails/thumbnailing_context.cc ('k') | content/browser/frame_host/render_widget_host_view_child_frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698