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

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: Created 7 years, 11 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
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 "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h" 14 #include "third_party/WebKit/Source/WebKit/chromium/public/WebPopupType.h"
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h" 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebTextDirection.h"
16 #include "ui/base/ime/text_input_type.h" 16 #include "ui/base/ime/text_input_type.h"
17 #include "ui/base/range/range.h" 17 #include "ui/base/range/range.h"
18 #include "ui/surface/transport_dib.h" 18 #include "ui/surface/transport_dib.h"
19 19
20 class WebCursor; 20 class WebCursor;
21 21
22 struct AccessibilityHostMsg_NotificationParams; 22 struct AccessibilityHostMsg_NotificationParams;
23 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params; 23 struct GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params;
24 struct GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params; 24 struct GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params;
25 struct ViewHostMsg_TextInputState_Params; 25 struct ViewHostMsg_TextInputState_Params;
26 26
27 namespace cc {
28 class CompositorFrame;
29 }
30
27 namespace webkit { 31 namespace webkit {
28 namespace npapi { 32 namespace npapi {
29 struct WebPluginGeometry; 33 struct WebPluginGeometry;
30 } 34 }
31 } 35 }
32 36
33 #if defined(OS_POSIX) || defined(USE_AURA) 37 #if defined(OS_POSIX) || defined(USE_AURA)
34 namespace WebKit { 38 namespace WebKit {
35 struct WebScreenInfo; 39 struct WebScreenInfo;
36 } 40 }
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 191
188 // Release the accelerated surface temporarily. It will be recreated on the 192 // Release the accelerated surface temporarily. It will be recreated on the
189 // next swap buffers or post sub buffer. 193 // next swap buffers or post sub buffer.
190 virtual void AcceleratedSurfaceSuspend() = 0; 194 virtual void AcceleratedSurfaceSuspend() = 0;
191 195
192 // Return true if the view has an accelerated surface that contains the last 196 // Return true if the view has an accelerated surface that contains the last
193 // presented frame for the view. If |desired_size| is non-empty, true is 197 // presented frame for the view. If |desired_size| is non-empty, true is
194 // returned only if the accelerated surface size matches. 198 // returned only if the accelerated surface size matches.
195 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) = 0; 199 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) = 0;
196 200
201 virtual void OnSwapCompositorFrame(const cc::CompositorFrame& frame,
202 int render_host_id,
203 int route_id) {}
204
197 #if defined(OS_MACOSX) 205 #if defined(OS_MACOSX)
198 // Called just before GetBackingStore blocks for an updated frame. 206 // Called just before GetBackingStore blocks for an updated frame.
199 virtual void AboutToWaitForBackingStoreMsg() = 0; 207 virtual void AboutToWaitForBackingStoreMsg() = 0;
200 208
201 // Informs the view that a plugin gained or lost focus. 209 // Informs the view that a plugin gained or lost focus.
202 virtual void PluginFocusChanged(bool focused, int plugin_id) = 0; 210 virtual void PluginFocusChanged(bool focused, int plugin_id) = 0;
203 211
204 // Start plugin IME. 212 // Start plugin IME.
205 virtual void StartPluginIme() = 0; 213 virtual void StartPluginIme() = 0;
206 214
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 virtual BrowserAccessibilityManager* 300 virtual BrowserAccessibilityManager*
293 GetBrowserAccessibilityManager() const = 0; 301 GetBrowserAccessibilityManager() const = 0;
294 virtual void OnAccessibilityNotifications( 302 virtual void OnAccessibilityNotifications(
295 const std::vector<AccessibilityHostMsg_NotificationParams>& params) { 303 const std::vector<AccessibilityHostMsg_NotificationParams>& params) {
296 } 304 }
297 }; 305 };
298 306
299 } // namespace content 307 } // namespace content
300 308
301 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ 309 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698