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

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

Issue 2716153003: Removed FrameHost::chromeClient() (Closed)
Patch Set: Small feedback 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/frame/BrowserControls.cpp
diff --git a/third_party/WebKit/Source/core/frame/BrowserControls.cpp b/third_party/WebKit/Source/core/frame/BrowserControls.cpp
index 88ed3d4824630a38fc2a99700656ef0b9ffbde85..762ebc7f592244756c844ec6803af30927f1a3f4 100644
--- a/third_party/WebKit/Source/core/frame/BrowserControls.cpp
+++ b/third_party/WebKit/Source/core/frame/BrowserControls.cpp
@@ -4,11 +4,13 @@
#include "core/frame/BrowserControls.h"
+#include <algorithm> // for std::min and std::max
+
#include "core/frame/FrameHost.h"
#include "core/frame/VisualViewport.h"
#include "core/page/ChromeClient.h"
+#include "core/page/Page.h"
#include "platform/geometry/FloatSize.h"
-#include <algorithm> // for std::min and std::max
namespace blink {
@@ -86,7 +88,7 @@ void BrowserControls::setShownRatio(float shownRatio) {
return;
m_shownRatio = shownRatio;
- m_frameHost->chromeClient().didUpdateBrowserControls();
+ m_frameHost->page().chromeClient().didUpdateBrowserControls();
}
void BrowserControls::updateConstraintsAndState(
@@ -123,7 +125,7 @@ void BrowserControls::setHeight(float height, bool shrinkViewport) {
m_height = height;
m_shrinkViewport = shrinkViewport;
- m_frameHost->chromeClient().didUpdateBrowserControls();
+ m_frameHost->page().chromeClient().didUpdateBrowserControls();
}
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/core/frame/BarProp.cpp ('k') | third_party/WebKit/Source/core/frame/EventHandlerRegistry.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698