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