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

Unified Diff: third_party/WebKit/Source/web/ValidationMessageClientImpl.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/web/ValidationMessageClientImpl.cpp
diff --git a/third_party/WebKit/Source/web/ValidationMessageClientImpl.cpp b/third_party/WebKit/Source/web/ValidationMessageClientImpl.cpp
index f92b657bed5f9216f3c879b55bd79554b1907324..0608b48da7ec413276a3cd293be6a155b1403429 100644
--- a/third_party/WebKit/Source/web/ValidationMessageClientImpl.cpp
+++ b/third_party/WebKit/Source/web/ValidationMessageClientImpl.cpp
@@ -28,7 +28,7 @@
#include "core/dom/Element.h"
#include "core/dom/TaskRunnerHelper.h"
#include "core/frame/FrameView.h"
-#include "platform/HostWindow.h"
+#include "platform/PlatformChromeClient.h"
#include "platform/wtf/CurrentTime.h"
#include "public/platform/WebRect.h"
#include "public/platform/WebString.h"
@@ -73,8 +73,8 @@ void ValidationMessageClientImpl::ShowValidationMessage(
IntRect anchor_in_viewport =
CurrentView()->ContentsToViewport(anchor.PixelSnappedBoundingBox());
last_anchor_rect_in_screen_ =
- CurrentView()->GetHostWindow()->ViewportToScreen(anchor_in_viewport,
- CurrentView());
+ CurrentView()->GetChromeClient()->ViewportToScreen(anchor_in_viewport,
+ CurrentView());
last_page_scale_factor_ = web_view_.PageScaleFactor();
message_ = message;
const double kMinimumSecondToShowValidationMessage = 5.0;
@@ -137,7 +137,7 @@ void ValidationMessageClientImpl::CheckAnchorStatus(TimerBase*) {
}
IntRect new_anchor_rect_in_viewport_in_screen =
- CurrentView()->GetHostWindow()->ViewportToScreen(
+ CurrentView()->GetChromeClient()->ViewportToScreen(
new_anchor_rect_in_viewport, CurrentView());
if (new_anchor_rect_in_viewport_in_screen == last_anchor_rect_in_screen_ &&
web_view_.PageScaleFactor() == last_page_scale_factor_)
« no previous file with comments | « third_party/WebKit/Source/platform/scroll/Scrollbar.cpp ('k') | third_party/WebKit/Source/web/WebPluginContainerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698