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

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

Issue 26664002: SyntheticGestureTarget implementation for injecting synthetic input events (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add virtual to dtor Created 7 years, 1 month 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/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/gpu/gpu_data_manager_impl.h" 9 #include "content/browser/gpu/gpu_data_manager_impl.h"
10 #include "content/browser/renderer_host/basic_mouse_wheel_smooth_scroll_gesture. h" 10 #include "content/browser/renderer_host/basic_mouse_wheel_smooth_scroll_gesture. h"
11 #include "content/browser/renderer_host/input/synthetic_gesture_target_base.h"
11 #include "content/browser/renderer_host/render_process_host_impl.h" 12 #include "content/browser/renderer_host/render_process_host_impl.h"
12 #include "content/browser/renderer_host/render_widget_host_impl.h" 13 #include "content/browser/renderer_host/render_widget_host_impl.h"
13 #include "content/port/browser/render_widget_host_view_frame_subscriber.h" 14 #include "content/port/browser/render_widget_host_view_frame_subscriber.h"
14 #include "content/port/browser/synthetic_gesture.h" 15 #include "content/port/browser/synthetic_gesture.h"
15 #include "third_party/WebKit/public/web/WebScreenInfo.h" 16 #include "third_party/WebKit/public/web/WebScreenInfo.h"
16 #include "ui/gfx/display.h" 17 #include "ui/gfx/display.h"
17 #include "ui/gfx/screen.h" 18 #include "ui/gfx/screen.h"
18 #include "ui/gfx/size_conversions.h" 19 #include "ui/gfx/size_conversions.h"
19 #include "ui/gfx/size_f.h" 20 #include "ui/gfx/size_f.h"
20 21
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 int anchor_y) { 522 int anchor_y) {
522 // There is no generic implementation for pinch gestures. 523 // There is no generic implementation for pinch gestures.
523 NOTIMPLEMENTED(); 524 NOTIMPLEMENTED();
524 return NULL; 525 return NULL;
525 } 526 }
526 527
527 void RenderWidgetHostViewBase::ProcessAckedTouchEvent( 528 void RenderWidgetHostViewBase::ProcessAckedTouchEvent(
528 const TouchEventWithLatencyInfo& touch, InputEventAckState ack_result) { 529 const TouchEventWithLatencyInfo& touch, InputEventAckState ack_result) {
529 } 530 }
530 531
532 scoped_ptr<SyntheticGestureTarget>
533 RenderWidgetHostViewBase::CreateSyntheticGestureTarget() {
534 RenderWidgetHostImpl* host =
535 RenderWidgetHostImpl::From(GetRenderWidgetHost());
536 return scoped_ptr<SyntheticGestureTarget>(
537 new SyntheticGestureTargetBase(host));
538 }
539
531 // Platform implementation should override this method to allow frame 540 // Platform implementation should override this method to allow frame
532 // subscription. Frame subscriber is set to RenderProcessHost, which is 541 // subscription. Frame subscriber is set to RenderProcessHost, which is
533 // platform independent. It should be set to the specific presenter on each 542 // platform independent. It should be set to the specific presenter on each
534 // platform. 543 // platform.
535 bool RenderWidgetHostViewBase::CanSubscribeFrame() const { 544 bool RenderWidgetHostViewBase::CanSubscribeFrame() const {
536 NOTIMPLEMENTED(); 545 NOTIMPLEMENTED();
537 return false; 546 return false;
538 } 547 }
539 548
540 // Base implementation for this method sets the subscriber to RenderProcessHost, 549 // Base implementation for this method sets the subscriber to RenderProcessHost,
(...skipping 30 matching lines...) Expand all
571 580
572 uint32 RenderWidgetHostViewBase::RendererFrameNumber() { 581 uint32 RenderWidgetHostViewBase::RendererFrameNumber() {
573 return renderer_frame_number_; 582 return renderer_frame_number_;
574 } 583 }
575 584
576 void RenderWidgetHostViewBase::DidReceiveRendererFrame() { 585 void RenderWidgetHostViewBase::DidReceiveRendererFrame() {
577 ++renderer_frame_number_; 586 ++renderer_frame_number_;
578 } 587 }
579 588
580 } // namespace content 589 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_base.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698