From b1baca723530e975ca5c00b9bc2173877bf74a9b Mon Sep 17 00:00:00 2001 From: "thakis@chromium.org" Date: Thu, 7 Jun 2012 21:11:44 +0000 Subject: mac: Remove GetViewCocoaBounds() The decision is to keep almost all IPC messages in view units, and only use pixels in the BackingStore object instead. Change RenderWidgetHostViewMac::GetViewBounds() to return (0, 0, w, h) instead of (0, 0, 0, 0). This matches the GTK code, and matches what rwh got from rwhvmac before this patch. Needed for PrerenderBrowserTest.PrerenderWindowSize BUG=31960 TEST=none Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=141024 Review URL: https://chromiumcodereview.appspot.com/10541047 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@141079 0039d316-1c4b-4281-b951-d872f2087c98 --- content/port/browser/render_widget_host_view_port.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'content/port') diff --git a/content/port/browser/render_widget_host_view_port.h b/content/port/browser/render_widget_host_view_port.h index 605632d..310be75 100644 --- a/content/port/browser/render_widget_host_view_port.h +++ b/content/port/browser/render_widget_host_view_port.h @@ -183,12 +183,6 @@ 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; -- cgit v1.1