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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_base.cc

Issue 17971002: Make RenderWidgetHostViewAura::CopyFromCompositingSurface readback layer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tabcapture-aura: Move calls to RWHImpl Created 7 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 #include "content/browser/renderer_host/render_widget_host_view_base.h" 5 #include "content/browser/renderer_host/render_widget_host_view_base.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "content/browser/accessibility/browser_accessibility_manager.h" 8 #include "content/browser/accessibility/browser_accessibility_manager.h"
9 #include "content/browser/renderer_host/basic_mouse_wheel_smooth_scroll_gesture. h" 9 #include "content/browser/renderer_host/basic_mouse_wheel_smooth_scroll_gesture. h"
10 #include "content/browser/renderer_host/render_process_host_impl.h" 10 #include "content/browser/renderer_host/render_process_host_impl.h"
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 } 349 }
350 350
351 #endif // OS_WIN 351 #endif // OS_WIN
352 352
353 RenderWidgetHostViewBase::RenderWidgetHostViewBase() 353 RenderWidgetHostViewBase::RenderWidgetHostViewBase()
354 : popup_type_(WebKit::WebPopupTypeNone), 354 : popup_type_(WebKit::WebPopupTypeNone),
355 mouse_locked_(false), 355 mouse_locked_(false),
356 showing_context_menu_(false), 356 showing_context_menu_(false),
357 selection_text_offset_(0), 357 selection_text_offset_(0),
358 selection_range_(ui::Range::InvalidRange()), 358 selection_range_(ui::Range::InvalidRange()),
359 current_device_scale_factor_(0) { 359 current_device_scale_factor_(0),
360 renderer_frame_number_(0) {
360 } 361 }
361 362
362 RenderWidgetHostViewBase::~RenderWidgetHostViewBase() { 363 RenderWidgetHostViewBase::~RenderWidgetHostViewBase() {
363 DCHECK(!mouse_locked_); 364 DCHECK(!mouse_locked_);
364 } 365 }
365 366
366 bool RenderWidgetHostViewBase::OnMessageReceived(const IPC::Message& msg){ 367 bool RenderWidgetHostViewBase::OnMessageReceived(const IPC::Message& msg){
367 return false; 368 return false;
368 } 369 }
369 370
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
514 RenderProcessHostImpl* render_process_host = 515 RenderProcessHostImpl* render_process_host =
515 static_cast<RenderProcessHostImpl*>(impl->GetProcess()); 516 static_cast<RenderProcessHostImpl*>(impl->GetProcess());
516 render_process_host->EndFrameSubscription(impl->GetRoutingID()); 517 render_process_host->EndFrameSubscription(impl->GetRoutingID());
517 } 518 }
518 519
519 void RenderWidgetHostViewBase::OnOverscrolled( 520 void RenderWidgetHostViewBase::OnOverscrolled(
520 gfx::Vector2dF accumulated_overscroll, 521 gfx::Vector2dF accumulated_overscroll,
521 gfx::Vector2dF current_fling_velocity) { 522 gfx::Vector2dF current_fling_velocity) {
522 } 523 }
523 524
525 uint32 RenderWidgetHostViewBase::RendererFrameNumber() {
526 return renderer_frame_number_;
527 }
528
529 void RenderWidgetHostViewBase::DidReceiveRendererFrame() {
530 ++renderer_frame_number_;
531 }
532
524 } // namespace content 533 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698