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

Unified Diff: third_party/WebKit/public/web/WebWidgetClient.h

Issue 1603253003: Add dedicated windowToViewport method (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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/web/PopupMenuImpl.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/public/web/WebWidgetClient.h
diff --git a/third_party/WebKit/public/web/WebWidgetClient.h b/third_party/WebKit/public/web/WebWidgetClient.h
index eb6fe66a322a22bf0bf9ed199de9f61534d67cea..6497e9133e47621be7ba6d212929b2fb0cd5ac50 100644
--- a/third_party/WebKit/public/web/WebWidgetClient.h
+++ b/third_party/WebKit/public/web/WebWidgetClient.h
@@ -48,6 +48,7 @@ class WebString;
class WebWidget;
struct WebCursorInfo;
struct WebFloatPoint;
+struct WebFloatRect;
struct WebFloatSize;
struct WebSize;
@@ -177,6 +178,13 @@ public:
// TODO(oshima): Update the comment when the migration is completed.
virtual void convertViewportToWindow(WebRect* rect) {}
dgozman 2016/01/26 00:17:45 Perhaps, this one should work with WebFloatRect as
oshima 2016/01/26 00:24:00 Sorry I forgot to mention. Yes, I'm going to chang
+ // Converts the |rect| from the coordinates in native window in
+ // DIP to Blink's Viewport coordinates. They're identical in
+ // tradional world, but will differ when use-zoom-for-dsf feature
+ // is eanbled. TODO(oshima): Update the comment when the
+ // migration is completed.
+ virtual void convertWindowToViewport(WebFloatRect* rect) {}
+
protected:
~WebWidgetClient() { }
};
« no previous file with comments | « third_party/WebKit/Source/web/PopupMenuImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698