| 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 25 matching lines...) Expand all Loading... |
| 36 bool OnOverscrollUpdate(float delta_x, float delta_y) override; | 36 bool OnOverscrollUpdate(float delta_x, float delta_y) override; |
| 37 void OnOverscrollComplete(OverscrollMode overscroll_mode) override; | 37 void OnOverscrollComplete(OverscrollMode overscroll_mode) override; |
| 38 void OnOverscrollModeChange(OverscrollMode old_mode, | 38 void OnOverscrollModeChange(OverscrollMode old_mode, |
| 39 OverscrollMode new_mode, | 39 OverscrollMode new_mode, |
| 40 OverscrollSource source) override; | 40 OverscrollSource source) override; |
| 41 base::Optional<float> GetMaxOverscrollDelta() const override; | 41 base::Optional<float> GetMaxOverscrollDelta() const override; |
| 42 | 42 |
| 43 WebContentsImpl* web_contents_; | 43 WebContentsImpl* web_contents_; |
| 44 std::unique_ptr<Affordance> affordance_; | 44 std::unique_ptr<Affordance> affordance_; |
| 45 float completion_threshold_; | 45 float completion_threshold_; |
| 46 OverscrollSource source_ = OverscrollSource::NONE; |
| 46 | 47 |
| 47 DISALLOW_COPY_AND_ASSIGN(GestureNavSimple); | 48 DISALLOW_COPY_AND_ASSIGN(GestureNavSimple); |
| 48 }; | 49 }; |
| 49 | 50 |
| 50 } // namespace content | 51 } // namespace content |
| 51 | 52 |
| 52 #endif // CONTENT_BROWSER_WEB_CONTENTS_AURA_GESTURE_NAV_SIMPLE_H_ | 53 #endif // CONTENT_BROWSER_WEB_CONTENTS_AURA_GESTURE_NAV_SIMPLE_H_ |
| OLD | NEW |