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

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

Issue 2663823002: Reland of Use full viewport height for layout if URL bar is locked shown or hidden. (Closed)
Patch Set: Created 3 years, 10 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/web/WebViewImpl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 BrowserControls_h 5 #ifndef BrowserControls_h
6 #define BrowserControls_h 6 #define BrowserControls_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/WebBrowserControlsState.h" 10 #include "public/platform/WebBrowserControlsState.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 void updateConstraintsAndState(WebBrowserControlsState constraints, 42 void updateConstraintsAndState(WebBrowserControlsState constraints,
43 WebBrowserControlsState current, 43 WebBrowserControlsState current,
44 bool animate); 44 bool animate);
45 45
46 void scrollBegin(); 46 void scrollBegin();
47 47
48 // Scrolls browser controls vertically if possible and returns the remaining 48 // Scrolls browser controls vertically if possible and returns the remaining
49 // scroll amount. 49 // scroll amount.
50 FloatSize scrollBy(FloatSize scrollDelta); 50 FloatSize scrollBy(FloatSize scrollDelta);
51 51
52 WebBrowserControlsState permittedState() const { return m_permittedState; }
53
52 private: 54 private:
53 explicit BrowserControls(const FrameHost&); 55 explicit BrowserControls(const FrameHost&);
54 void resetBaseline(); 56 void resetBaseline();
55 57
56 Member<const FrameHost> m_frameHost; 58 Member<const FrameHost> m_frameHost;
57 59
58 // The browser controls height regardless of whether it is visible or not. 60 // The browser controls height regardless of whether it is visible or not.
59 float m_height; 61 float m_height;
60 62
61 // The browser controls shown amount (normalized from 0 to 1) since the last 63 // The browser controls shown amount (normalized from 0 to 1) since the last
(...skipping 15 matching lines...) Expand all
77 // If this is true, then the embedder shrunk the WebView size by the top 79 // If this is true, then the embedder shrunk the WebView size by the top
78 // controls height. 80 // controls height.
79 bool m_shrinkViewport; 81 bool m_shrinkViewport;
80 82
81 // Constraints on the browser controls state 83 // Constraints on the browser controls state
82 WebBrowserControlsState m_permittedState; 84 WebBrowserControlsState m_permittedState;
83 }; 85 };
84 } // namespace blink 86 } // namespace blink
85 87
86 #endif // BrowserControls_h 88 #endif // BrowserControls_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/web/WebViewImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698