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

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

Issue 2240273002: Move |DidOverscrollParams| from |content::| to "ui/events/blink" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move DidOverscrollParams to ui:: Created 4 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
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 <utility> 9 #include <utility>
10 10
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 #include "content/browser/renderer_host/compositor_impl_android.h" 50 #include "content/browser/renderer_host/compositor_impl_android.h"
51 #include "content/browser/renderer_host/dip_util.h" 51 #include "content/browser/renderer_host/dip_util.h"
52 #include "content/browser/renderer_host/frame_metadata_util.h" 52 #include "content/browser/renderer_host/frame_metadata_util.h"
53 #include "content/browser/renderer_host/input/synthetic_gesture_target_android.h " 53 #include "content/browser/renderer_host/input/synthetic_gesture_target_android.h "
54 #include "content/browser/renderer_host/input/web_input_event_builders_android.h " 54 #include "content/browser/renderer_host/input/web_input_event_builders_android.h "
55 #include "content/browser/renderer_host/input/web_input_event_util.h" 55 #include "content/browser/renderer_host/input/web_input_event_util.h"
56 #include "content/browser/renderer_host/render_process_host_impl.h" 56 #include "content/browser/renderer_host/render_process_host_impl.h"
57 #include "content/browser/renderer_host/render_view_host_impl.h" 57 #include "content/browser/renderer_host/render_view_host_impl.h"
58 #include "content/browser/renderer_host/render_widget_host_impl.h" 58 #include "content/browser/renderer_host/render_widget_host_impl.h"
59 #include "content/common/gpu_host_messages.h" 59 #include "content/common/gpu_host_messages.h"
60 #include "content/common/input/did_overscroll_params.h"
61 #include "content/common/input_messages.h" 60 #include "content/common/input_messages.h"
62 #include "content/common/view_messages.h" 61 #include "content/common/view_messages.h"
63 #include "content/public/browser/android/compositor.h" 62 #include "content/public/browser/android/compositor.h"
64 #include "content/public/browser/browser_thread.h" 63 #include "content/public/browser/browser_thread.h"
65 #include "content/public/browser/devtools_agent_host.h" 64 #include "content/public/browser/devtools_agent_host.h"
66 #include "content/public/browser/render_view_host.h" 65 #include "content/public/browser/render_view_host.h"
67 #include "content/public/browser/render_widget_host_iterator.h" 66 #include "content/public/browser/render_widget_host_iterator.h"
68 #include "content/public/common/content_switches.h" 67 #include "content/public/common/content_switches.h"
69 #include "gpu/command_buffer/client/gles2_implementation.h" 68 #include "gpu/command_buffer/client/gles2_implementation.h"
70 #include "gpu/command_buffer/client/gles2_interface.h" 69 #include "gpu/command_buffer/client/gles2_interface.h"
71 #include "gpu/config/gpu_driver_bug_workaround_type.h" 70 #include "gpu/config/gpu_driver_bug_workaround_type.h"
72 #include "ipc/ipc_message_macros.h" 71 #include "ipc/ipc_message_macros.h"
73 #include "ipc/ipc_message_start.h" 72 #include "ipc/ipc_message_start.h"
74 #include "skia/ext/image_operations.h" 73 #include "skia/ext/image_operations.h"
75 #include "third_party/khronos/GLES2/gl2.h" 74 #include "third_party/khronos/GLES2/gl2.h"
76 #include "third_party/khronos/GLES2/gl2ext.h" 75 #include "third_party/khronos/GLES2/gl2ext.h"
77 #include "third_party/skia/include/core/SkCanvas.h" 76 #include "third_party/skia/include/core/SkCanvas.h"
78 #include "ui/android/context_provider_factory.h" 77 #include "ui/android/context_provider_factory.h"
79 #include "ui/android/window_android.h" 78 #include "ui/android/window_android.h"
80 #include "ui/android/window_android_compositor.h" 79 #include "ui/android/window_android_compositor.h"
81 #include "ui/base/layout.h" 80 #include "ui/base/layout.h"
82 #include "ui/display/display.h" 81 #include "ui/display/display.h"
83 #include "ui/display/screen.h" 82 #include "ui/display/screen.h"
84 #include "ui/events/blink/blink_event_util.h" 83 #include "ui/events/blink/blink_event_util.h"
84 #include "ui/events/blink/did_overscroll_params.h"
85 #include "ui/events/gesture_detection/gesture_provider_config_helper.h" 85 #include "ui/events/gesture_detection/gesture_provider_config_helper.h"
86 #include "ui/events/gesture_detection/motion_event.h" 86 #include "ui/events/gesture_detection/motion_event.h"
87 #include "ui/gfx/android/device_display_info.h" 87 #include "ui/gfx/android/device_display_info.h"
88 #include "ui/gfx/android/java_bitmap.h" 88 #include "ui/gfx/android/java_bitmap.h"
89 #include "ui/gfx/android/view_configuration.h" 89 #include "ui/gfx/android/view_configuration.h"
90 #include "ui/gfx/geometry/dip_util.h" 90 #include "ui/gfx/geometry/dip_util.h"
91 #include "ui/gfx/geometry/size_conversions.h" 91 #include "ui/gfx/geometry/size_conversions.h"
92 #include "ui/touch_selection/touch_selection_controller.h" 92 #include "ui/touch_selection/touch_selection_controller.h"
93 93
94 namespace content { 94 namespace content {
(...skipping 1552 matching lines...) Expand 10 before | Expand all | Expand 10 after
1647 selection_controller_->OnSelectionBoundsChanged(insertion_bound, 1647 selection_controller_->OnSelectionBoundsChanged(insertion_bound,
1648 insertion_bound); 1648 insertion_bound);
1649 selection_controller_->AllowShowingFromCurrentSelection(); 1649 selection_controller_->AllowShowingFromCurrentSelection();
1650 } 1650 }
1651 1651
1652 SkColor RenderWidgetHostViewAndroid::GetCachedBackgroundColor() const { 1652 SkColor RenderWidgetHostViewAndroid::GetCachedBackgroundColor() const {
1653 return cached_background_color_; 1653 return cached_background_color_;
1654 } 1654 }
1655 1655
1656 void RenderWidgetHostViewAndroid::DidOverscroll( 1656 void RenderWidgetHostViewAndroid::DidOverscroll(
1657 const DidOverscrollParams& params) { 1657 const ui::DidOverscrollParams& params) {
1658 if (sync_compositor_) 1658 if (sync_compositor_)
1659 sync_compositor_->DidOverscroll(params); 1659 sync_compositor_->DidOverscroll(params);
1660 1660
1661 if (!content_view_core_ || !view_.GetLayer() || !is_showing_) 1661 if (!content_view_core_ || !view_.GetLayer() || !is_showing_)
1662 return; 1662 return;
1663 1663
1664 if (overscroll_controller_) 1664 if (overscroll_controller_)
1665 overscroll_controller_->OnOverscrolled(params); 1665 overscroll_controller_->OnOverscrolled(params);
1666 } 1666 }
1667 1667
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
1974 case ui::MotionEvent::ACTION_UP: 1974 case ui::MotionEvent::ACTION_UP:
1975 case ui::MotionEvent::ACTION_POINTER_UP: 1975 case ui::MotionEvent::ACTION_POINTER_UP:
1976 UMA_HISTOGRAM_CUSTOM_COUNTS("Event.Latency.OS.TOUCH_RELEASED", 1976 UMA_HISTOGRAM_CUSTOM_COUNTS("Event.Latency.OS.TOUCH_RELEASED",
1977 delta.InMicroseconds(), 1, 1000000, 50); 1977 delta.InMicroseconds(), 1, 1000000, 50);
1978 default: 1978 default:
1979 return; 1979 return;
1980 } 1980 }
1981 } 1981 }
1982 1982
1983 } // namespace content 1983 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698