| 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_android.h" | 5 #include "content/browser/renderer_host/render_widget_host_view_android.h" |
| 6 | 6 |
| 7 #include <android/bitmap.h> | 7 #include <android/bitmap.h> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| 11 #include "base/command_line.h" | 11 #include "base/command_line.h" |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/message_loop.h" | 13 #include "base/message_loop.h" |
| 14 #include "base/utf_string_conversions.h" | 14 #include "base/utf_string_conversions.h" |
| 15 #include "cc/layers/delegated_renderer_layer.h" | 15 #include "cc/layers/delegated_renderer_layer.h" |
| 16 #include "cc/layers/layer.h" | 16 #include "cc/layers/layer.h" |
| 17 #include "cc/layers/texture_layer.h" | 17 #include "cc/layers/texture_layer.h" |
| 18 #include "cc/output/compositor_frame.h" | 18 #include "cc/output/compositor_frame.h" |
| 19 #include "cc/output/compositor_frame_ack.h" | 19 #include "cc/output/compositor_frame_ack.h" |
| 20 #include "content/browser/android/content_view_core_impl.h" | 20 #include "content/browser/android/content_view_core_impl.h" |
| 21 #include "content/browser/android/in_process/synchronous_compositor_impl.h" |
| 21 #include "content/browser/android/overscroll_glow.h" | 22 #include "content/browser/android/overscroll_glow.h" |
| 22 #include "content/browser/gpu/gpu_surface_tracker.h" | 23 #include "content/browser/gpu/gpu_surface_tracker.h" |
| 23 #include "content/browser/renderer_host/compositor_impl_android.h" | 24 #include "content/browser/renderer_host/compositor_impl_android.h" |
| 24 #include "content/browser/renderer_host/image_transport_factory_android.h" | 25 #include "content/browser/renderer_host/image_transport_factory_android.h" |
| 25 #include "content/browser/renderer_host/render_widget_host_impl.h" | 26 #include "content/browser/renderer_host/render_widget_host_impl.h" |
| 26 #include "content/browser/renderer_host/surface_texture_transport_client_android
.h" | 27 #include "content/browser/renderer_host/surface_texture_transport_client_android
.h" |
| 27 #include "content/browser/renderer_host/touch_smooth_scroll_gesture_android.h" | 28 #include "content/browser/renderer_host/touch_smooth_scroll_gesture_android.h" |
| 28 #include "content/common/gpu/client/gl_helper.h" | 29 #include "content/common/gpu/client/gl_helper.h" |
| 29 #include "content/common/gpu/gpu_messages.h" | 30 #include "content/common/gpu/gpu_messages.h" |
| 30 #include "content/common/input_messages.h" | 31 #include "content/common/input_messages.h" |
| (...skipping 781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 812 // intentionally empty, like RenderWidgetHostViewViews | 813 // intentionally empty, like RenderWidgetHostViewViews |
| 813 } | 814 } |
| 814 | 815 |
| 815 void RenderWidgetHostViewAndroid::UnhandledWheelEvent( | 816 void RenderWidgetHostViewAndroid::UnhandledWheelEvent( |
| 816 const WebKit::WebMouseWheelEvent& event) { | 817 const WebKit::WebMouseWheelEvent& event) { |
| 817 // intentionally empty, like RenderWidgetHostViewViews | 818 // intentionally empty, like RenderWidgetHostViewViews |
| 818 } | 819 } |
| 819 | 820 |
| 820 InputEventAckState RenderWidgetHostViewAndroid::FilterInputEvent( | 821 InputEventAckState RenderWidgetHostViewAndroid::FilterInputEvent( |
| 821 const WebKit::WebInputEvent& input_event) { | 822 const WebKit::WebInputEvent& input_event) { |
| 822 if (!content_view_core_) | 823 SynchronousCompositorImpl* compositor = |
| 823 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED; | 824 SynchronousCompositorImpl::FromRoutingID(host_->GetRoutingID()); |
| 824 | 825 return compositor ? compositor->HandleInputEvent(input_event) |
| 825 return content_view_core_->FilterInputEvent(input_event); | 826 : INPUT_EVENT_ACK_STATE_NOT_CONSUMED; |
| 826 } | 827 } |
| 827 | 828 |
| 828 void RenderWidgetHostViewAndroid::OnAccessibilityNotifications( | 829 void RenderWidgetHostViewAndroid::OnAccessibilityNotifications( |
| 829 const std::vector<AccessibilityHostMsg_NotificationParams>& params) { | 830 const std::vector<AccessibilityHostMsg_NotificationParams>& params) { |
| 830 } | 831 } |
| 831 | 832 |
| 832 bool RenderWidgetHostViewAndroid::LockMouse() { | 833 bool RenderWidgetHostViewAndroid::LockMouse() { |
| 833 NOTIMPLEMENTED(); | 834 NOTIMPLEMENTED(); |
| 834 return false; | 835 return false; |
| 835 } | 836 } |
| (...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1005 // RenderWidgetHostView, public: | 1006 // RenderWidgetHostView, public: |
| 1006 | 1007 |
| 1007 // static | 1008 // static |
| 1008 RenderWidgetHostView* | 1009 RenderWidgetHostView* |
| 1009 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { | 1010 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { |
| 1010 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); | 1011 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); |
| 1011 return new RenderWidgetHostViewAndroid(rwhi, NULL); | 1012 return new RenderWidgetHostViewAndroid(rwhi, NULL); |
| 1012 } | 1013 } |
| 1013 | 1014 |
| 1014 } // namespace content | 1015 } // namespace content |
| OLD | NEW |