OLD | NEW |
---|---|
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 Loading... | |
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 |
OLD | NEW |