diff options
author | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-07 17:51:16 +0000 |
---|---|---|
committer | thakis@chromium.org <thakis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-07 17:51:16 +0000 |
commit | f5f9648ffcf289022e0fcea0c28b0865a3f0ba8e (patch) | |
tree | 317a81009b8225d7763d7d0e55d08d01cc13d191 /content/port | |
parent | 3f8556a0cf934ee6e2e4a37b22b05dbf0a9c4a90 (diff) | |
download | chromium_src-f5f9648ffcf289022e0fcea0c28b0865a3f0ba8e.zip chromium_src-f5f9648ffcf289022e0fcea0c28b0865a3f0ba8e.tar.gz chromium_src-f5f9648ffcf289022e0fcea0c28b0865a3f0ba8e.tar.bz2 |
Revert 141024 (caused PrerenderBrowserTest.PrerenderWindowSize to fail??)
- mac: Remove GetViewCocoaBounds()
The decision is to keep almost all IPC messages in view units,
and only use pixels in the BackingStore object instead.
BUG=31960
TEST=none
Review URL: https://chromiumcodereview.appspot.com/10541047
TBR=thakis@chromium.org
Review URL: https://chromiumcodereview.appspot.com/10540061
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141039 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/port')
-rw-r--r-- | content/port/browser/render_widget_host_view_port.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/content/port/browser/render_widget_host_view_port.h b/content/port/browser/render_widget_host_view_port.h index 310be75..605632d 100644 --- a/content/port/browser/render_widget_host_view_port.h +++ b/content/port/browser/render_widget_host_view_port.h @@ -183,6 +183,12 @@ class CONTENT_EXPORT RenderWidgetHostViewPort : public RenderWidgetHostView { // Called just before GetBackingStore blocks for an updated frame. virtual void AboutToWaitForBackingStoreMsg() = 0; + // Retrieve the bounds of the view, in cocoa view coordinates. + // If the UI scale factor is 2, |GetViewBounds()| will return a size of e.g. + // (400, 300) in pixels, while this method will return (200, 150). + // Even though this returns an gfx::Rect, the result is NOT IN PIXELS. + virtual gfx::Rect GetViewCocoaBounds() const = 0; + // Informs the view that a plugin gained or lost focus. virtual void PluginFocusChanged(bool focused, int plugin_id) = 0; |