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

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 fa5949db75f6f3d03f1d47eb7e6b1c0b787648c4..2b597eb65b9caa0c547cbc8804c5bc528ccc9b44 100644
--- a/third_party/WebKit/public/web/WebWidgetClient.h
+++ b/third_party/WebKit/public/web/WebWidgetClient.h
@@ -184,6 +184,13 @@ public:
// TODO(oshima): Update the comment when the migration is completed.
virtual void convertViewportToWindow(WebRect* rect) {}
+ // Converts the |scalar| 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 float convertWindowToViewport(float scalar) { return scalar; }
dgozman 2016/01/23 00:38:38 I think we should either make this symmetrical to
+
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