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

Unified Diff: third_party/WebKit/Source/core/frame/BrowserControls.h

Issue 2734073002: Make BrowserControls take and store a Page instead of a FrameHost (Closed)
Patch Set: Rebased to off origin/master Created 3 years, 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/BrowserControls.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/frame/BrowserControls.h
diff --git a/third_party/WebKit/Source/core/frame/BrowserControls.h b/third_party/WebKit/Source/core/frame/BrowserControls.h
index cbabd913ef8cae2d9554954a9f36f3c125dfeab7..6211f82b4913a75f3150b128e798268cb207da37 100644
--- a/third_party/WebKit/Source/core/frame/BrowserControls.h
+++ b/third_party/WebKit/Source/core/frame/BrowserControls.h
@@ -10,7 +10,7 @@
#include "public/platform/WebBrowserControlsState.h"
namespace blink {
-class FrameHost;
+class Page;
class FloatSize;
// This class encapsulate data and logic required to show/hide browser controls
@@ -20,8 +20,8 @@ class FloatSize;
class CORE_EXPORT BrowserControls final
: public GarbageCollected<BrowserControls> {
public:
- static BrowserControls* create(const FrameHost& host) {
- return new BrowserControls(host);
+ static BrowserControls* create(const Page& page) {
+ return new BrowserControls(page);
}
DECLARE_TRACE();
@@ -52,10 +52,10 @@ class CORE_EXPORT BrowserControls final
WebBrowserControlsState permittedState() const { return m_permittedState; }
private:
- explicit BrowserControls(const FrameHost&);
+ explicit BrowserControls(const Page&);
void resetBaseline();
- Member<const FrameHost> m_frameHost;
+ Member<const Page> m_page;
// The browser controls height regardless of whether it is visible or not.
float m_height;
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/BrowserControls.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698