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

Side by Side Diff: content/browser/android/overscroll_controller_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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/overscroll_controller_android.h" 5 #include "content/browser/android/overscroll_controller_android.h"
6 6
7 #include "base/android/build_info.h" 7 #include "base/android/build_info.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "cc/layers/layer.h" 10 #include "cc/layers/layer.h"
11 #include "cc/output/compositor_frame_metadata.h" 11 #include "cc/output/compositor_frame_metadata.h"
12 #include "content/browser/android/content_view_core_impl.h" 12 #include "content/browser/android/content_view_core_impl.h"
13 #include "content/common/input/did_overscroll_params.h"
14 #include "content/public/browser/navigation_controller.h" 13 #include "content/public/browser/navigation_controller.h"
15 #include "content/public/browser/user_metrics.h" 14 #include "content/public/browser/user_metrics.h"
16 #include "content/public/common/content_switches.h" 15 #include "content/public/common/content_switches.h"
17 #include "third_party/WebKit/public/web/WebInputEvent.h" 16 #include "third_party/WebKit/public/web/WebInputEvent.h"
18 #include "ui/android/edge_effect.h" 17 #include "ui/android/edge_effect.h"
19 #include "ui/android/edge_effect_l.h" 18 #include "ui/android/edge_effect_l.h"
20 #include "ui/android/resources/resource_manager.h" 19 #include "ui/android/resources/resource_manager.h"
21 #include "ui/android/window_android.h" 20 #include "ui/android/window_android.h"
22 #include "ui/android/window_android_compositor.h" 21 #include "ui/android/window_android_compositor.h"
23 #include "ui/base/l10n/l10n_util_android.h" 22 #include "ui/base/l10n/l10n_util_android.h"
23 #include "ui/events/blink/did_overscroll_params.h"
24 24
25 using ui::DidOverscrollParams;
25 using ui::EdgeEffect; 26 using ui::EdgeEffect;
26 using ui::EdgeEffectBase; 27 using ui::EdgeEffectBase;
27 using ui::EdgeEffectL; 28 using ui::EdgeEffectL;
28 using ui::OverscrollGlow; 29 using ui::OverscrollGlow;
29 using ui::OverscrollGlowClient; 30 using ui::OverscrollGlowClient;
30 using ui::OverscrollRefresh; 31 using ui::OverscrollRefresh;
31 using ui::OverscrollRefreshHandler; 32 using ui::OverscrollRefreshHandler;
32 33
33 namespace content { 34 namespace content {
34 namespace { 35 namespace {
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 std::unique_ptr<EdgeEffectBase> 274 std::unique_ptr<EdgeEffectBase>
274 OverscrollControllerAndroid::CreateEdgeEffect() { 275 OverscrollControllerAndroid::CreateEdgeEffect() {
275 return CreateGlowEdgeEffect(&compositor_->GetResourceManager(), dpi_scale_); 276 return CreateGlowEdgeEffect(&compositor_->GetResourceManager(), dpi_scale_);
276 } 277 }
277 278
278 void OverscrollControllerAndroid::SetNeedsAnimate() { 279 void OverscrollControllerAndroid::SetNeedsAnimate() {
279 compositor_->SetNeedsAnimate(); 280 compositor_->SetNeedsAnimate();
280 } 281 }
281 282
282 } // namespace content 283 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698