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

Side by Side Diff: content/browser/android/content_view_core_impl.cc

Issue 15484013: Remove dead WebCompositorInputHandler related code (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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/android/content_view_core_impl.h" 5 #include "content/browser/android/content_view_core_impl.h"
6 6
7 #include "base/android/jni_android.h" 7 #include "base/android/jni_android.h"
8 #include "base/android/jni_array.h" 8 #include "base/android/jni_array.h"
9 #include "base/android/jni_string.h" 9 #include "base/android/jni_string.h"
10 #include "base/android/scoped_java_ref.h" 10 #include "base/android/scoped_java_ref.h"
(...skipping 845 matching lines...) Expand 10 before | Expand all | Expand 10 after
856 } 856 }
857 857
858 float ContentViewCoreImpl::GetTouchPaddingDip() { 858 float ContentViewCoreImpl::GetTouchPaddingDip() {
859 return 48.0f / GetDpiScale(); 859 return 48.0f / GetDpiScale();
860 } 860 }
861 861
862 float ContentViewCoreImpl::GetDpiScale() const { 862 float ContentViewCoreImpl::GetDpiScale() const {
863 return dpi_scale_; 863 return dpi_scale_;
864 } 864 }
865 865
866 void ContentViewCoreImpl::SetInputHandler(
867 WebKit::WebCompositorInputHandler* input_handler) {
868 if (!input_event_filter_)
869 input_event_filter_.reset(new SyncInputEventFilter);
870
871 input_event_filter_->SetInputHandler(input_handler);
872 }
873
874 void ContentViewCoreImpl::RequestContentClipping( 866 void ContentViewCoreImpl::RequestContentClipping(
875 const gfx::Rect& clipping, 867 const gfx::Rect& clipping,
876 const gfx::Size& content_size) { 868 const gfx::Size& content_size) {
877 RenderWidgetHostViewAndroid* rwhv = GetRenderWidgetHostViewAndroid(); 869 RenderWidgetHostViewAndroid* rwhv = GetRenderWidgetHostViewAndroid();
878 if (rwhv) 870 if (rwhv)
879 rwhv->RequestContentClipping(clipping, content_size); 871 rwhv->RequestContentClipping(clipping, content_size);
880 } 872 }
881 873
882 jboolean ContentViewCoreImpl::SendMouseMoveEvent(JNIEnv* env, 874 jboolean ContentViewCoreImpl::SendMouseMoveEvent(JNIEnv* env,
883 jobject obj, 875 jobject obj,
(...skipping 678 matching lines...) Expand 10 before | Expand all | Expand 10 after
1562 reinterpret_cast<ui::ViewAndroid*>(view_android), 1554 reinterpret_cast<ui::ViewAndroid*>(view_android),
1563 reinterpret_cast<ui::WindowAndroid*>(window_android)); 1555 reinterpret_cast<ui::WindowAndroid*>(window_android));
1564 return reinterpret_cast<jint>(view); 1556 return reinterpret_cast<jint>(view);
1565 } 1557 }
1566 1558
1567 bool RegisterContentViewCore(JNIEnv* env) { 1559 bool RegisterContentViewCore(JNIEnv* env) {
1568 return RegisterNativesImpl(env); 1560 return RegisterNativesImpl(env);
1569 } 1561 }
1570 1562
1571 } // namespace content 1563 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698