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

Side by Side Diff: content/port/browser/render_widget_host_view_port.h

Issue 12328080: Plumb physical backing size from RWHV to renderer CC. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adjust for call renamed to GetViewportSizePix() Created 7 years, 9 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 | « content/common/view_messages.h ('k') | content/public/test/render_view_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ 5 #ifndef CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_
6 #define CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ 6 #define CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/process_util.h" 9 #include "base/process_util.h"
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 222
223 // Return true if the view has an accelerated surface that contains the last 223 // Return true if the view has an accelerated surface that contains the last
224 // presented frame for the view. If |desired_size| is non-empty, true is 224 // presented frame for the view. If |desired_size| is non-empty, true is
225 // returned only if the accelerated surface size matches. 225 // returned only if the accelerated surface size matches.
226 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) = 0; 226 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) = 0;
227 227
228 virtual void OnSwapCompositorFrame(const cc::CompositorFrame& frame) = 0; 228 virtual void OnSwapCompositorFrame(const cc::CompositorFrame& frame) = 0;
229 229
230 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) = 0; 230 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) = 0;
231 231
232 // The size of the view's backing surface in non-DPI-adjusted pixels.
233 virtual gfx::Size GetPhysicalBackingSize() const = 0;
234
232 // Gets the bounds of the window, in screen coordinates. 235 // Gets the bounds of the window, in screen coordinates.
233 virtual gfx::Rect GetBoundsInRootWindow() = 0; 236 virtual gfx::Rect GetBoundsInRootWindow() = 0;
234 237
235 virtual gfx::GLSurfaceHandle GetCompositingSurface() = 0; 238 virtual gfx::GLSurfaceHandle GetCompositingSurface() = 0;
236 239
237 // Because the associated remote WebKit instance can asynchronously 240 // Because the associated remote WebKit instance can asynchronously
238 // prevent-default on a dispatched touch event, the touch events are queued in 241 // prevent-default on a dispatched touch event, the touch events are queued in
239 // the GestureRecognizer until invocation of ProcessAckedTouchEvent releases 242 // the GestureRecognizer until invocation of ProcessAckedTouchEvent releases
240 // it to be consumed (when |ack_result| is NOT_CONSUMED OR NO_CONSUMER_EXISTS) 243 // it to be consumed (when |ack_result| is NOT_CONSUMED OR NO_CONSUMER_EXISTS)
241 // or ignored (when |ack_result| is CONSUMED). 244 // or ignored (when |ack_result| is CONSUMED).
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 #endif 292 #endif
290 293
291 #if defined(OS_WIN) && !defined(USE_AURA) 294 #if defined(OS_WIN) && !defined(USE_AURA)
292 virtual void WillWmDestroy() = 0; 295 virtual void WillWmDestroy() = 0;
293 #endif 296 #endif
294 }; 297 };
295 298
296 } // namespace content 299 } // namespace content
297 300
298 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ 301 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_
OLDNEW
« no previous file with comments | « content/common/view_messages.h ('k') | content/public/test/render_view_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698