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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « third_party/WebKit/Source/web/PopupMenuImpl.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 virtual void onMouseDown(const WebNode& mouseDownNode) { } 177 virtual void onMouseDown(const WebNode& mouseDownNode) { }
178 178
179 // Converts the |rect| from Blink's Viewport coordinates to the 179 // Converts the |rect| from Blink's Viewport coordinates to the
180 // coordinates in the native window used to display the content, in 180 // coordinates in the native window used to display the content, in
181 // DIP. They're identical in tradional world, but will differ when 181 // DIP. They're identical in tradional world, but will differ when
182 // use-zoom-for-dsf feature is eanbled, and Viewport coordinates 182 // use-zoom-for-dsf feature is eanbled, and Viewport coordinates
183 // becomes DSF times larger than window coordinates. 183 // becomes DSF times larger than window coordinates.
184 // TODO(oshima): Update the comment when the migration is completed. 184 // TODO(oshima): Update the comment when the migration is completed.
185 virtual void convertViewportToWindow(WebRect* rect) {} 185 virtual void convertViewportToWindow(WebRect* rect) {}
186 186
187 // Converts the |scalar| from the coordinates in native window in
188 // DIP to Blink's Viewport coordinates. They're identical in
189 // tradional world, but will differ when use-zoom-for-dsf feature
190 // is eanbled. TODO(oshima): Update the comment when the
191 // migration is completed.
192 virtual float convertWindowToViewport(float scalar) { return scalar; }
dgozman 2016/01/23 00:38:38 I think we should either make this symmetrical to
193
187 protected: 194 protected:
188 ~WebWidgetClient() { } 195 ~WebWidgetClient() { }
189 }; 196 };
190 197
191 } // namespace blink 198 } // namespace blink
192 199
193 #endif 200 #endif
OLDNEW
« 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