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 TopControls_h | 5 #ifndef TopControls_h |
6 #define TopControls_h | 6 #define TopControls_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "platform/heap/Handle.h" | 9 #include "platform/heap/Handle.h" |
10 #include "public/platform/WebTopControlsState.h" | 10 #include "public/platform/WebTopControlsState.h" |
| 11 #include "wtf/OwnPtr.h" |
| 12 #include "wtf/PassOwnPtr.h" |
11 | 13 |
12 namespace blink { | 14 namespace blink { |
13 class FrameHost; | 15 class FrameHost; |
14 class FloatSize; | 16 class FloatSize; |
15 | 17 |
16 // This class encapsulate data and logic required to show/hide top controls | 18 // This class encapsulate data and logic required to show/hide top controls |
17 // duplicating cc::TopControlsManager behaviour. Top controls' self-animation | 19 // duplicating cc::TopControlsManager behaviour. Top controls' self-animation |
18 // to completion is still handled by compositor and kicks in when scrolling is | 20 // to completion is still handled by compositor and kicks in when scrolling is |
19 // complete (i.e, upon ScrollEnd or FlingEnd). | 21 // complete (i.e, upon ScrollEnd or FlingEnd). |
20 class CORE_EXPORT TopControls final : public GarbageCollected<TopControls> { | 22 class CORE_EXPORT TopControls final : public GarbageCollected<TopControls> { |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 // controls height. | 78 // controls height. |
77 bool m_shrinkViewport; | 79 bool m_shrinkViewport; |
78 | 80 |
79 // Constraints on the top controls state | 81 // Constraints on the top controls state |
80 WebTopControlsState m_permittedState; | 82 WebTopControlsState m_permittedState; |
81 | 83 |
82 }; | 84 }; |
83 } // namespace blink | 85 } // namespace blink |
84 | 86 |
85 #endif // TopControls_h | 87 #endif // TopControls_h |
OLD | NEW |