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

Side by Side Diff: content/browser/frame_host/render_widget_host_view_guest.cc

Issue 257963003: Remove scroll_offset argument from MovePluginWindow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "base/bind_helpers.h" 5 #include "base/bind_helpers.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/message_loop/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "content/browser/browser_plugin/browser_plugin_guest.h" 9 #include "content/browser/browser_plugin/browser_plugin_guest.h"
10 #include "content/browser/frame_host/render_widget_host_view_guest.h" 10 #include "content/browser/frame_host/render_widget_host_view_guest.h"
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 if (!guest_) 274 if (!guest_)
275 return gfx::NativeViewAccessible(); 275 return gfx::NativeViewAccessible();
276 276
277 RenderWidgetHostView* rwhv = guest_->GetEmbedderRenderWidgetHostView(); 277 RenderWidgetHostView* rwhv = guest_->GetEmbedderRenderWidgetHostView();
278 if (!rwhv) 278 if (!rwhv)
279 return gfx::NativeViewAccessible(); 279 return gfx::NativeViewAccessible();
280 return rwhv->GetNativeViewAccessible(); 280 return rwhv->GetNativeViewAccessible();
281 } 281 }
282 282
283 void RenderWidgetHostViewGuest::MovePluginWindows( 283 void RenderWidgetHostViewGuest::MovePluginWindows(
284 const gfx::Vector2d& scroll_offset,
285 const std::vector<WebPluginGeometry>& moves) { 284 const std::vector<WebPluginGeometry>& moves) {
286 platform_view_->MovePluginWindows(scroll_offset, moves); 285 platform_view_->MovePluginWindows(moves);
287 } 286 }
288 287
289 void RenderWidgetHostViewGuest::UpdateCursor(const WebCursor& cursor) { 288 void RenderWidgetHostViewGuest::UpdateCursor(const WebCursor& cursor) {
290 platform_view_->UpdateCursor(cursor); 289 platform_view_->UpdateCursor(cursor);
291 } 290 }
292 291
293 void RenderWidgetHostViewGuest::SetIsLoading(bool is_loading) { 292 void RenderWidgetHostViewGuest::SetIsLoading(bool is_loading) {
294 platform_view_->SetIsLoading(is_loading); 293 platform_view_->SetIsLoading(is_loading);
295 } 294 }
296 295
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
585 ++g_it) { 584 ++g_it) {
586 ForwardGestureEventToRenderer(*g_it); 585 ForwardGestureEventToRenderer(*g_it);
587 } 586 }
588 } 587 }
589 588
590 SkBitmap::Config RenderWidgetHostViewGuest::PreferredReadbackFormat() { 589 SkBitmap::Config RenderWidgetHostViewGuest::PreferredReadbackFormat() {
591 return SkBitmap::kARGB_8888_Config; 590 return SkBitmap::kARGB_8888_Config;
592 } 591 }
593 592
594 } // namespace content 593 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698