| OLD | NEW |
| 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 #ifndef CONTENT_BROWSER_WEB_CONTENTS_AURA_GESTURE_NAV_SIMPLE_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_AURA_GESTURE_NAV_SIMPLE_H_ |
| 6 #define CONTENT_BROWSER_WEB_CONTENTS_AURA_GESTURE_NAV_SIMPLE_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_AURA_GESTURE_NAV_SIMPLE_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 class Affordance; | 25 class Affordance; |
| 26 | 26 |
| 27 void AbortGestureAnimation(); | 27 void AbortGestureAnimation(); |
| 28 void CompleteGestureAnimation(); | 28 void CompleteGestureAnimation(); |
| 29 | 29 |
| 30 // OverscrollControllerDelegate: | 30 // OverscrollControllerDelegate: |
| 31 gfx::Rect GetVisibleBounds() const override; | 31 gfx::Rect GetVisibleBounds() const override; |
| 32 bool OnOverscrollUpdate(float delta_x, float delta_y) override; | 32 bool OnOverscrollUpdate(float delta_x, float delta_y) override; |
| 33 void OnOverscrollComplete(OverscrollMode overscroll_mode) override; | 33 void OnOverscrollComplete(OverscrollMode overscroll_mode) override; |
| 34 void OnOverscrollModeChange(OverscrollMode old_mode, | 34 void OnOverscrollModeChange(OverscrollMode old_mode, |
| 35 OverscrollMode new_mode) override; | 35 OverscrollMode new_mode, |
| 36 OverscrollSource source) override; |
| 36 | 37 |
| 37 WebContentsImpl* web_contents_; | 38 WebContentsImpl* web_contents_; |
| 38 std::unique_ptr<Affordance> affordance_; | 39 std::unique_ptr<Affordance> affordance_; |
| 39 float completion_threshold_; | 40 float completion_threshold_; |
| 40 | 41 |
| 41 DISALLOW_COPY_AND_ASSIGN(GestureNavSimple); | 42 DISALLOW_COPY_AND_ASSIGN(GestureNavSimple); |
| 42 }; | 43 }; |
| 43 | 44 |
| 44 } // namespace content | 45 } // namespace content |
| 45 | 46 |
| 46 #endif // CONTENT_BROWSER_WEB_CONTENTS_AURA_GESTURE_NAV_SIMPLE_H_ | 47 #endif // CONTENT_BROWSER_WEB_CONTENTS_AURA_GESTURE_NAV_SIMPLE_H_ |
| OLD | NEW |