OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef CONTENT_BROWSER_WEB_CONTENTS_AURA_OVERSCROLL_WINDOW_DELEGATE_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_AURA_OVERSCROLL_WINDOW_DELEGATE_H_ |
6 #define CONTENT_BROWSER_WEB_CONTENTS_AURA_OVERSCROLL_WINDOW_DELEGATE_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_AURA_OVERSCROLL_WINDOW_DELEGATE_H_ |
7 | 7 |
| 8 #include "base/gtest_prod_util.h" |
8 #include "content/browser/renderer_host/overscroll_controller.h" | 9 #include "content/browser/renderer_host/overscroll_controller.h" |
9 #include "content/browser/web_contents/aura/overscroll_navigation_overlay.h" | 10 #include "content/browser/web_contents/aura/overscroll_navigation_overlay.h" |
10 #include "content/browser/web_contents/web_contents_impl.h" | 11 #include "content/browser/web_contents/web_contents_impl.h" |
11 #include "ui/aura_extra/image_window_delegate.h" | 12 #include "ui/aura_extra/image_window_delegate.h" |
12 | 13 |
13 namespace content { | 14 namespace content { |
14 | 15 |
15 // The window delegate for the overscroll window. This processes UI trackpad and | 16 // The window delegate for the overscroll window. This processes UI trackpad and |
16 // touch events and converts them to overscroll event. The delegate destroys | 17 // touch events and converts them to overscroll event. The delegate destroys |
17 // itself when the window is destroyed. | 18 // itself when the window is destroyed. |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 // The threshold for starting the overscroll gesture for the current touch | 65 // The threshold for starting the overscroll gesture for the current touch |
65 // input. | 66 // input. |
66 float active_start_threshold_; | 67 float active_start_threshold_; |
67 | 68 |
68 DISALLOW_COPY_AND_ASSIGN(OverscrollWindowDelegate); | 69 DISALLOW_COPY_AND_ASSIGN(OverscrollWindowDelegate); |
69 }; | 70 }; |
70 | 71 |
71 } // namespace content | 72 } // namespace content |
72 | 73 |
73 #endif // CONTENT_BROWSER_WEB_CONTENTS_AURA_OVERSCROLL_WINDOW_DELEGATE_H_ | 74 #endif // CONTENT_BROWSER_WEB_CONTENTS_AURA_OVERSCROLL_WINDOW_DELEGATE_H_ |
OLD | NEW |