| OLD | NEW |
| 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 Loading... |
| 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 SyntheticGestureTarget* |
| 533 RenderWidgetHostViewBase::CreateSyntheticGestureTarget() { |
| 534 return new SyntheticGestureTargetBase(this); |
| 535 } |
| 536 |
| 531 // Platform implementation should override this method to allow frame | 537 // Platform implementation should override this method to allow frame |
| 532 // subscription. Frame subscriber is set to RenderProcessHost, which is | 538 // subscription. Frame subscriber is set to RenderProcessHost, which is |
| 533 // platform independent. It should be set to the specific presenter on each | 539 // platform independent. It should be set to the specific presenter on each |
| 534 // platform. | 540 // platform. |
| 535 bool RenderWidgetHostViewBase::CanSubscribeFrame() const { | 541 bool RenderWidgetHostViewBase::CanSubscribeFrame() const { |
| 536 NOTIMPLEMENTED(); | 542 NOTIMPLEMENTED(); |
| 537 return false; | 543 return false; |
| 538 } | 544 } |
| 539 | 545 |
| 540 // Base implementation for this method sets the subscriber to RenderProcessHost, | 546 // Base implementation for this method sets the subscriber to RenderProcessHost, |
| (...skipping 30 matching lines...) Expand all Loading... |
| 571 | 577 |
| 572 uint32 RenderWidgetHostViewBase::RendererFrameNumber() { | 578 uint32 RenderWidgetHostViewBase::RendererFrameNumber() { |
| 573 return renderer_frame_number_; | 579 return renderer_frame_number_; |
| 574 } | 580 } |
| 575 | 581 |
| 576 void RenderWidgetHostViewBase::DidReceiveRendererFrame() { | 582 void RenderWidgetHostViewBase::DidReceiveRendererFrame() { |
| 577 ++renderer_frame_number_; | 583 ++renderer_frame_number_; |
| 578 } | 584 } |
| 579 | 585 |
| 580 } // namespace content | 586 } // namespace content |
| OLD | NEW |