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

Unified Diff: third_party/WebKit/Source/core/page/Page.cpp

Issue 2734873003: Move FrameHost::m_browserControls to Page (Closed)
Patch Set: Rebased to 1 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 | « third_party/WebKit/Source/core/page/Page.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/page/Page.cpp
diff --git a/third_party/WebKit/Source/core/page/Page.cpp b/third_party/WebKit/Source/core/page/Page.cpp
index cb46ff7839871e4e42121a95f384be650f53f522..65140b70f936b57305e88f7500b8f5d792536792 100644
--- a/third_party/WebKit/Source/core/page/Page.cpp
+++ b/third_party/WebKit/Source/core/page/Page.cpp
@@ -30,6 +30,7 @@
#include "core/editing/DragCaret.h"
#include "core/editing/markers/DocumentMarkerController.h"
#include "core/events/Event.h"
+#include "core/frame/BrowserControls.h"
#include "core/frame/DOMTimer.h"
#include "core/frame/FrameConsole.h"
#include "core/frame/FrameHost.h"
@@ -103,6 +104,7 @@ Page::Page(PageClients& pageClients)
ContextMenuController::create(this, pageClients.contextMenuClient)),
m_pageScaleConstraintsSet(PageScaleConstraintsSet::create()),
m_pointerLockController(PointerLockController::create(this)),
+ m_browserControls(BrowserControls::create(*this)),
m_mainFrame(nullptr),
m_editorClient(pageClients.editorClient),
m_spellCheckerClient(pageClients.spellCheckerClient),
@@ -161,6 +163,14 @@ const PageScaleConstraintsSet& Page::pageScaleConstraintsSet() const {
return *m_pageScaleConstraintsSet;
}
+BrowserControls& Page::browserControls() {
+ return *m_browserControls;
+}
+
+const BrowserControls& Page::browserControls() const {
+ return *m_browserControls;
+}
+
ClientRectList* Page::nonFastScrollableRects(const LocalFrame* frame) {
DisableCompositingQueryAsserts disabler;
if (ScrollingCoordinator* scrollingCoordinator =
@@ -539,6 +549,7 @@ DEFINE_TRACE(Page) {
visitor->trace(m_contextMenuController);
visitor->trace(m_pointerLockController);
visitor->trace(m_scrollingCoordinator);
+ visitor->trace(m_browserControls);
visitor->trace(m_mainFrame);
visitor->trace(m_validationMessageClient);
visitor->trace(m_useCounter);
« no previous file with comments | « third_party/WebKit/Source/core/page/Page.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698