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

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: Fetch device scale directly in RWVHBase 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
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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 214
215 virtual void AcceleratedSurfaceRelease() = 0; 215 virtual void AcceleratedSurfaceRelease() = 0;
216 216
217 // Return true if the view has an accelerated surface that contains the last 217 // Return true if the view has an accelerated surface that contains the last
218 // presented frame for the view. If |desired_size| is non-empty, true is 218 // presented frame for the view. If |desired_size| is non-empty, true is
219 // returned only if the accelerated surface size matches. 219 // returned only if the accelerated surface size matches.
220 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) = 0; 220 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) = 0;
221 221
222 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) = 0; 222 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) = 0;
223 223
224 // The size of the view's backing surface in non-DPI-adjusted pixels.
225 virtual gfx::Size GetPhysicalBackingSize() const = 0;
226
224 // Gets the bounds of the window, in screen coordinates. 227 // Gets the bounds of the window, in screen coordinates.
225 virtual gfx::Rect GetBoundsInRootWindow() = 0; 228 virtual gfx::Rect GetBoundsInRootWindow() = 0;
226 229
227 virtual gfx::GLSurfaceHandle GetCompositingSurface() = 0; 230 virtual gfx::GLSurfaceHandle GetCompositingSurface() = 0;
228 231
229 // Because the associated remote WebKit instance can asynchronously 232 // Because the associated remote WebKit instance can asynchronously
230 // prevent-default on a dispatched touch event, the touch events are queued in 233 // prevent-default on a dispatched touch event, the touch events are queued in
231 // the GestureRecognizer until invocation of ProcessAckedTouchEvent releases 234 // the GestureRecognizer until invocation of ProcessAckedTouchEvent releases
232 // it to be consumed (when |ack_result| is NOT_CONSUMED OR NO_CONSUMER_EXISTS) 235 // it to be consumed (when |ack_result| is NOT_CONSUMED OR NO_CONSUMER_EXISTS)
233 // or ignored (when |ack_result| is CONSUMED). 236 // or ignored (when |ack_result| is CONSUMED).
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 #endif 284 #endif
282 285
283 #if defined(OS_WIN) && !defined(USE_AURA) 286 #if defined(OS_WIN) && !defined(USE_AURA)
284 virtual void WillWmDestroy() = 0; 287 virtual void WillWmDestroy() = 0;
285 #endif 288 #endif
286 }; 289 };
287 290
288 } // namespace content 291 } // namespace content
289 292
290 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ 293 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698