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