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

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

Issue 325933003: Scroll offset pinning and content size notifications were only used for the Mac overlay navigation … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 347 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 const base::Callback<void(bool, const SkBitmap&)>& callback, 358 const base::Callback<void(bool, const SkBitmap&)>& callback,
359 const SkBitmap::Config config) { 359 const SkBitmap::Config config) {
360 CHECK(guest_); 360 CHECK(guest_);
361 guest_->CopyFromCompositingSurface(src_subrect, dst_size, callback); 361 guest_->CopyFromCompositingSurface(src_subrect, dst_size, callback);
362 } 362 }
363 363
364 void RenderWidgetHostViewGuest::SetBackgroundOpaque(bool opaque) { 364 void RenderWidgetHostViewGuest::SetBackgroundOpaque(bool opaque) {
365 platform_view_->SetBackgroundOpaque(opaque); 365 platform_view_->SetBackgroundOpaque(opaque);
366 } 366 }
367 367
368 void RenderWidgetHostViewGuest::SetScrollOffsetPinning(
369 bool is_pinned_to_left, bool is_pinned_to_right) {
370 platform_view_->SetScrollOffsetPinning(
371 is_pinned_to_left, is_pinned_to_right);
372 }
373
374 bool RenderWidgetHostViewGuest::LockMouse() { 368 bool RenderWidgetHostViewGuest::LockMouse() {
375 return platform_view_->LockMouse(); 369 return platform_view_->LockMouse();
376 } 370 }
377 371
378 void RenderWidgetHostViewGuest::UnlockMouse() { 372 void RenderWidgetHostViewGuest::UnlockMouse() {
379 return platform_view_->UnlockMouse(); 373 return platform_view_->UnlockMouse();
380 } 374 }
381 375
382 void RenderWidgetHostViewGuest::GetScreenInfo(blink::WebScreenInfo* results) { 376 void RenderWidgetHostViewGuest::GetScreenInfo(blink::WebScreenInfo* results) {
383 if (!guest_) 377 if (!guest_)
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
556 return SkBitmap::kARGB_8888_Config; 550 return SkBitmap::kARGB_8888_Config;
557 } 551 }
558 552
559 RenderWidgetHostViewBase* 553 RenderWidgetHostViewBase*
560 RenderWidgetHostViewGuest::GetGuestRenderWidgetHostView() const { 554 RenderWidgetHostViewGuest::GetGuestRenderWidgetHostView() const {
561 return static_cast<RenderWidgetHostViewBase*>( 555 return static_cast<RenderWidgetHostViewBase*>(
562 guest_->GetEmbedderRenderWidgetHostView()); 556 guest_->GetEmbedderRenderWidgetHostView());
563 } 557 }
564 558
565 } // namespace content 559 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/frame_host/render_widget_host_view_guest.h ('k') | content/browser/renderer_host/render_view_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698