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

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

Issue 2716153003: Removed FrameHost::chromeClient() (Closed)
Patch Set: Rebase 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..8f95a5b0a89ac05401f3f9708ec3cf06ca4f951a 100644
--- a/third_party/WebKit/Source/core/frame/BrowserControls.cpp
+++ b/third_party/WebKit/Source/core/frame/BrowserControls.cpp
@@ -4,11 +4,12 @@
#include "core/frame/BrowserControls.h"
+#include <algorithm> // for std::min and std::max
#include "core/frame/FrameHost.h"
slangley 2017/02/27 08:32:35 should be a vertical space between system & user 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 +87,7 @@ void BrowserControls::setShownRatio(float shownRatio) {
return;
m_shownRatio = shownRatio;
- m_frameHost->chromeClient().didUpdateBrowserControls();
+ m_frameHost->page().chromeClient().didUpdateBrowserControls();
}
void BrowserControls::updateConstraintsAndState(
@@ -123,7 +124,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

Powered by Google App Engine
This is Rietveld 408576698