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

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

Issue 2824753005: Rename HostWindow to PlatformChromeClient (Closed)
Patch Set: mac Created 3 years, 8 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/VisualViewport.cpp
diff --git a/third_party/WebKit/Source/core/frame/VisualViewport.cpp b/third_party/WebKit/Source/core/frame/VisualViewport.cpp
index cc2251298cae6ba96f87e7bc755dcae069422c48..fd7477384c459eb4efef22a624703aca9a7bfa1b 100644
--- a/third_party/WebKit/Source/core/frame/VisualViewport.cpp
+++ b/third_party/WebKit/Source/core/frame/VisualViewport.cpp
@@ -494,7 +494,7 @@ bool VisualViewport::ScrollAnimatorEnabled() const {
return GetPage().GetSettings().GetScrollAnimatorEnabled();
}
-HostWindow* VisualViewport::GetHostWindow() const {
+PlatformChromeClient* VisualViewport::GetChromeClient() const {
return &GetPage().GetChromeClient();
}
@@ -675,8 +675,8 @@ LocalFrame* VisualViewport::MainFrame() const {
}
bool VisualViewport::ScheduleAnimation() {
- if (HostWindow* window = GetHostWindow()) {
- window->ScheduleAnimation(MainFrame());
+ if (PlatformChromeClient* client = GetChromeClient()) {
+ client->ScheduleAnimation(MainFrame());
return true;
}
return false;
« no previous file with comments | « third_party/WebKit/Source/core/frame/VisualViewport.h ('k') | third_party/WebKit/Source/core/html/ImageDocument.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698