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

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

Issue 11861020: Aura: Browser-side changes for Composite-To-Mailbox (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add missing return statement 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 | Annotate | Revision Log
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_aura.cc ('k') | no next file » | 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"
11 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
12 #include "content/port/common/input_event_ack_state.h" 12 #include "content/port/common/input_event_ack_state.h"
13 #include "content/public/browser/render_widget_host_view.h" 13 #include "content/public/browser/render_widget_host_view.h"
14 #include "ipc/ipc_listener.h" 14 #include "ipc/ipc_listener.h"
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h"
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h"
17 #include "ui/base/ime/text_input_type.h" 17 #include "ui/base/ime/text_input_type.h"
18 #include "ui/base/range/range.h" 18 #include "ui/base/range/range.h"
19 #include "ui/surface/transport_dib.h" 19 #include "ui/surface/transport_dib.h"
20 20
21 class SkBitmap; 21 class SkBitmap;
22 class WebCursor; 22 class WebCursor;
23 23
24 struct AccessibilityHostMsg_NotificationParams; 24 struct AccessibilityHostMsg_NotificationParams;
25 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params; 25 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params;
26 struct GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params; 26 struct GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params;
27 struct ViewHostMsg_TextInputState_Params; 27 struct ViewHostMsg_TextInputState_Params;
28 struct ViewHostMsg_SelectionBounds_Params; 28 struct ViewHostMsg_SelectionBounds_Params;
29 29
30 namespace cc {
31 class CompositorFrame;
32 }
33
30 namespace media { 34 namespace media {
31 class VideoFrame; 35 class VideoFrame;
32 } 36 }
33 37
34 namespace webkit { 38 namespace webkit {
35 namespace npapi { 39 namespace npapi {
36 struct WebPluginGeometry; 40 struct WebPluginGeometry;
37 } 41 }
38 } 42 }
39 43
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 // next swap buffers or post sub buffer. 216 // next swap buffers or post sub buffer.
213 virtual void AcceleratedSurfaceSuspend() = 0; 217 virtual void AcceleratedSurfaceSuspend() = 0;
214 218
215 virtual void AcceleratedSurfaceRelease() = 0; 219 virtual void AcceleratedSurfaceRelease() = 0;
216 220
217 // Return true if the view has an accelerated surface that contains the last 221 // 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 222 // presented frame for the view. If |desired_size| is non-empty, true is
219 // returned only if the accelerated surface size matches. 223 // returned only if the accelerated surface size matches.
220 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) = 0; 224 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) = 0;
221 225
226 virtual void OnSwapCompositorFrame(const cc::CompositorFrame& frame,
227 int render_host_id,
228 int route_id) {}
piman 2013/02/28 23:16:42 Actually, this class is pure. You can implement th
229
222 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) = 0; 230 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) = 0;
223 231
224 // Gets the bounds of the window, in screen coordinates. 232 // Gets the bounds of the window, in screen coordinates.
225 virtual gfx::Rect GetBoundsInRootWindow() = 0; 233 virtual gfx::Rect GetBoundsInRootWindow() = 0;
226 234
227 virtual gfx::GLSurfaceHandle GetCompositingSurface() = 0; 235 virtual gfx::GLSurfaceHandle GetCompositingSurface() = 0;
228 236
229 // Because the associated remote WebKit instance can asynchronously 237 // Because the associated remote WebKit instance can asynchronously
230 // prevent-default on a dispatched touch event, the touch events are queued in 238 // prevent-default on a dispatched touch event, the touch events are queued in
231 // the GestureRecognizer until invocation of ProcessAckedTouchEvent releases 239 // the GestureRecognizer until invocation of ProcessAckedTouchEvent releases
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 #endif 289 #endif
282 290
283 #if defined(OS_WIN) && !defined(USE_AURA) 291 #if defined(OS_WIN) && !defined(USE_AURA)
284 virtual void WillWmDestroy() = 0; 292 virtual void WillWmDestroy() = 0;
285 #endif 293 #endif
286 }; 294 };
287 295
288 } // namespace content 296 } // namespace content
289 297
290 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ 298 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_aura.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698