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

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

Issue 20990009: Handle root layer fling Java-side in android_webview. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix findbugs Created 7 years, 4 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_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"
(...skipping 857 matching lines...) Expand 10 before | Expand all | Expand 10 after
868 void RenderWidgetHostViewAndroid::SetScrollOffsetPinning( 868 void RenderWidgetHostViewAndroid::SetScrollOffsetPinning(
869 bool is_pinned_to_left, bool is_pinned_to_right) { 869 bool is_pinned_to_left, bool is_pinned_to_right) {
870 // intentionally empty, like RenderWidgetHostViewViews 870 // intentionally empty, like RenderWidgetHostViewViews
871 } 871 }
872 872
873 void RenderWidgetHostViewAndroid::UnhandledWheelEvent( 873 void RenderWidgetHostViewAndroid::UnhandledWheelEvent(
874 const WebKit::WebMouseWheelEvent& event) { 874 const WebKit::WebMouseWheelEvent& event) {
875 // intentionally empty, like RenderWidgetHostViewViews 875 // intentionally empty, like RenderWidgetHostViewViews
876 } 876 }
877 877
878 void RenderWidgetHostViewAndroid::GestureEventAck(
879 int gesture_event_type,
880 InputEventAckState ack_result) {
881 if (gesture_event_type == WebKit::WebInputEvent::GestureFlingStart &&
882 ack_result == INPUT_EVENT_ACK_STATE_NO_CONSUMER_EXISTS) {
883 content_view_core_->UnhandledFlingStartEvent();
884 }
885 }
886
878 InputEventAckState RenderWidgetHostViewAndroid::FilterInputEvent( 887 InputEventAckState RenderWidgetHostViewAndroid::FilterInputEvent(
879 const WebKit::WebInputEvent& input_event) { 888 const WebKit::WebInputEvent& input_event) {
880 if (host_) { 889 if (host_) {
881 SynchronousCompositorImpl* compositor = 890 SynchronousCompositorImpl* compositor =
882 SynchronousCompositorImpl::FromID(host_->GetProcess()->GetID(), 891 SynchronousCompositorImpl::FromID(host_->GetProcess()->GetID(),
883 host_->GetRoutingID()); 892 host_->GetRoutingID());
884 if (compositor) 893 if (compositor)
885 return compositor->HandleInputEvent(input_event); 894 return compositor->HandleInputEvent(input_event);
886 } 895 }
887 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED; 896 return INPUT_EVENT_ACK_STATE_NOT_CONSUMED;
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
1144 // RenderWidgetHostView, public: 1153 // RenderWidgetHostView, public:
1145 1154
1146 // static 1155 // static
1147 RenderWidgetHostView* 1156 RenderWidgetHostView*
1148 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) { 1157 RenderWidgetHostView::CreateViewForWidget(RenderWidgetHost* widget) {
1149 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget); 1158 RenderWidgetHostImpl* rwhi = RenderWidgetHostImpl::From(widget);
1150 return new RenderWidgetHostViewAndroid(rwhi, NULL); 1159 return new RenderWidgetHostViewAndroid(rwhi, NULL);
1151 } 1160 }
1152 1161
1153 } // namespace content 1162 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698