OLD | NEW |
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/kill.h" | 9 #include "base/process/kill.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 // The size of the view's backing surface in non-DPI-adjusted pixels. | 246 // The size of the view's backing surface in non-DPI-adjusted pixels. |
247 virtual gfx::Size GetPhysicalBackingSize() const = 0; | 247 virtual gfx::Size GetPhysicalBackingSize() const = 0; |
248 | 248 |
249 // The height of the physical backing surface that is overdrawn opaquely in | 249 // The height of the physical backing surface that is overdrawn opaquely in |
250 // the browser, for example by an on-screen-keyboard (in DPI-adjusted pixels). | 250 // the browser, for example by an on-screen-keyboard (in DPI-adjusted pixels). |
251 virtual float GetOverdrawBottomHeight() const = 0; | 251 virtual float GetOverdrawBottomHeight() const = 0; |
252 | 252 |
253 // Gets the bounds of the window, in screen coordinates. | 253 // Gets the bounds of the window, in screen coordinates. |
254 virtual gfx::Rect GetBoundsInRootWindow() = 0; | 254 virtual gfx::Rect GetBoundsInRootWindow() = 0; |
255 | 255 |
| 256 // When device emulation is requested, renderer may supply image of the |
| 257 // different size, and view should accept it. |
| 258 virtual void EmulateDevice(bool enabled) = 0; |
| 259 |
256 virtual gfx::GLSurfaceHandle GetCompositingSurface() = 0; | 260 virtual gfx::GLSurfaceHandle GetCompositingSurface() = 0; |
257 | 261 |
258 // Because the associated remote WebKit instance can asynchronously | 262 // Because the associated remote WebKit instance can asynchronously |
259 // prevent-default on a dispatched touch event, the touch events are queued in | 263 // prevent-default on a dispatched touch event, the touch events are queued in |
260 // the GestureRecognizer until invocation of ProcessAckedTouchEvent releases | 264 // the GestureRecognizer until invocation of ProcessAckedTouchEvent releases |
261 // it to be consumed (when |ack_result| is NOT_CONSUMED OR NO_CONSUMER_EXISTS) | 265 // it to be consumed (when |ack_result| is NOT_CONSUMED OR NO_CONSUMER_EXISTS) |
262 // or ignored (when |ack_result| is CONSUMED). | 266 // or ignored (when |ack_result| is CONSUMED). |
263 virtual void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, | 267 virtual void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, |
264 InputEventAckState ack_result) = 0; | 268 InputEventAckState ack_result) = 0; |
265 | 269 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 | 332 |
329 #if defined(OS_WIN) && defined(USE_AURA) | 333 #if defined(OS_WIN) && defined(USE_AURA) |
330 virtual void SetParentNativeViewAccessible( | 334 virtual void SetParentNativeViewAccessible( |
331 gfx::NativeViewAccessible accessible_parent) = 0; | 335 gfx::NativeViewAccessible accessible_parent) = 0; |
332 #endif | 336 #endif |
333 }; | 337 }; |
334 | 338 |
335 } // namespace content | 339 } // namespace content |
336 | 340 |
337 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ | 341 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ |
OLD | NEW |