Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(661)

Side by Side Diff: third_party/WebKit/Source/core/frame/TopControls.h

Issue 2080623002: Revert "Remove OwnPtr from Blink." (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/frame/SettingsDelegate.cpp ('k') | third_party/WebKit/Source/core/frame/UseCounter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698