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

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

Issue 25795002: Move surface resize platform code from GpuProcessHostUIShim to RenderWidgetHostView implementations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 2 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/kill.h" 9 #include "base/process/kill.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 virtual gfx::GLSurfaceHandle GetCompositingSurface() = 0; 256 virtual gfx::GLSurfaceHandle GetCompositingSurface() = 0;
257 257
258 // Resize compositing surface.
259 virtual void ResizeCompositingSurface(const gfx::Size&) = 0;
260
258 // Because the associated remote WebKit instance can asynchronously 261 // Because the associated remote WebKit instance can asynchronously
259 // prevent-default on a dispatched touch event, the touch events are queued in 262 // prevent-default on a dispatched touch event, the touch events are queued in
260 // the GestureRecognizer until invocation of ProcessAckedTouchEvent releases 263 // the GestureRecognizer until invocation of ProcessAckedTouchEvent releases
261 // it to be consumed (when |ack_result| is NOT_CONSUMED OR NO_CONSUMER_EXISTS) 264 // it to be consumed (when |ack_result| is NOT_CONSUMED OR NO_CONSUMER_EXISTS)
262 // or ignored (when |ack_result| is CONSUMED). 265 // or ignored (when |ack_result| is CONSUMED).
263 virtual void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch, 266 virtual void ProcessAckedTouchEvent(const TouchEventWithLatencyInfo& touch,
264 InputEventAckState ack_result) = 0; 267 InputEventAckState ack_result) = 0;
265 268
266 // Asks the view to create a synthetic gesture that will be used to 269 // Asks the view to create a synthetic gesture that will be used to
267 // simulate a user-initiated scroll. 270 // simulate a user-initiated scroll.
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
340 343
341 #if defined(OS_WIN) && defined(USE_AURA) 344 #if defined(OS_WIN) && defined(USE_AURA)
342 virtual void SetParentNativeViewAccessible( 345 virtual void SetParentNativeViewAccessible(
343 gfx::NativeViewAccessible accessible_parent) = 0; 346 gfx::NativeViewAccessible accessible_parent) = 0;
344 #endif 347 #endif
345 }; 348 };
346 349
347 } // namespace content 350 } // namespace content
348 351
349 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ 352 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698