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

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

Issue 10735010: 3D Compositing in <browser>, first draft. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 5 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 #pragma once 7 #pragma once
8 8
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/process_util.h" 10 #include "base/process_util.h"
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 int32 width, 208 int32 width,
209 int32 height, 209 int32 height,
210 uint64 io_surface_identifier) = 0; 210 uint64 io_surface_identifier) = 0;
211 virtual void AcceleratedSurfaceSetTransportDIB( 211 virtual void AcceleratedSurfaceSetTransportDIB(
212 gfx::PluginWindowHandle window, 212 gfx::PluginWindowHandle window,
213 int32 width, 213 int32 width,
214 int32 height, 214 int32 height,
215 TransportDIB::Handle transport_dib) = 0; 215 TransportDIB::Handle transport_dib) = 0;
216 #endif 216 #endif
217 217
218 #if defined(USE_AURA)
219 virtual void AcceleratedSurfaceNew( 218 virtual void AcceleratedSurfaceNew(
220 int32 width_in_pixel, 219 int32 width_in_pixel,
221 int32 height_in_pixel, 220 int32 height_in_pixel,
222 uint64* surface_id, 221 uint64* surface_id,
223 TransportDIB::Handle* surface_handle) = 0; 222 TransportDIB::Handle* surface_handle) = 0;
224 virtual void AcceleratedSurfaceRelease(uint64 surface_id) = 0; 223 virtual void AcceleratedSurfaceRelease(uint64 surface_id) = 0;
225 #endif
226 224
227 #if defined(TOOLKIT_GTK) 225 #if defined(TOOLKIT_GTK)
228 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) = 0; 226 virtual void CreatePluginContainer(gfx::PluginWindowHandle id) = 0;
229 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) = 0; 227 virtual void DestroyPluginContainer(gfx::PluginWindowHandle id) = 0;
230 #endif // defined(TOOLKIT_GTK) 228 #endif // defined(TOOLKIT_GTK)
231 229
232 #if defined(OS_WIN) && !defined(USE_AURA) 230 #if defined(OS_WIN) && !defined(USE_AURA)
233 virtual void WillWmDestroy() = 0; 231 virtual void WillWmDestroy() = 0;
234 #endif 232 #endif
235 233
236 #if defined(OS_POSIX) || defined(USE_AURA) 234 #if defined(OS_POSIX) || defined(USE_AURA)
237 static void GetDefaultScreenInfo( 235 static void GetDefaultScreenInfo(
238 WebKit::WebScreenInfo* results); 236 WebKit::WebScreenInfo* results);
239 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) = 0; 237 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) = 0;
240 virtual gfx::Rect GetRootWindowBounds() = 0; 238 virtual gfx::Rect GetRootWindowBounds() = 0;
241 #endif 239 #endif
242 240
243 virtual gfx::GLSurfaceHandle GetCompositingSurface() = 0; 241 virtual gfx::GLSurfaceHandle GetCompositingSurface() = 0;
242 virtual bool ResizeNeedsNewSurface() = 0;
244 243
245 // Because the associated remote WebKit instance can asynchronously 244 // Because the associated remote WebKit instance can asynchronously
246 // prevent-default on a dispatched touch event, the touch events are queued in 245 // prevent-default on a dispatched touch event, the touch events are queued in
247 // the GestureRecognizer until invocation of ProcessTouchAck releases it to be 246 // the GestureRecognizer until invocation of ProcessTouchAck releases it to be
248 // processed (when |processed| is false) or ignored (when |processed| is true) 247 // processed (when |processed| is false) or ignored (when |processed| is true)
249 virtual void ProcessTouchAck(WebKit::WebInputEvent::Type type, 248 virtual void ProcessTouchAck(WebKit::WebInputEvent::Type type,
250 bool processed) = 0; 249 bool processed) = 0;
251 250
252 virtual void SetHasHorizontalScrollbar(bool has_horizontal_scrollbar) = 0; 251 virtual void SetHasHorizontalScrollbar(bool has_horizontal_scrollbar) = 0;
253 virtual void SetScrollOffsetPinning( 252 virtual void SetScrollOffsetPinning(
254 bool is_pinned_to_left, bool is_pinned_to_right) = 0; 253 bool is_pinned_to_left, bool is_pinned_to_right) = 0;
255 254
256 // Called when a mousewheel event was not processed by the renderer. 255 // Called when a mousewheel event was not processed by the renderer.
257 virtual void UnhandledWheelEvent(const WebKit::WebMouseWheelEvent& event) = 0; 256 virtual void UnhandledWheelEvent(const WebKit::WebMouseWheelEvent& event) = 0;
258 257
259 virtual void SetPopupType(WebKit::WebPopupType popup_type) = 0; 258 virtual void SetPopupType(WebKit::WebPopupType popup_type) = 0;
260 virtual WebKit::WebPopupType GetPopupType() = 0; 259 virtual WebKit::WebPopupType GetPopupType() = 0;
261 260
262 virtual BrowserAccessibilityManager* 261 virtual BrowserAccessibilityManager*
263 GetBrowserAccessibilityManager() const = 0; 262 GetBrowserAccessibilityManager() const = 0;
264 virtual void OnAccessibilityNotifications( 263 virtual void OnAccessibilityNotifications(
265 const std::vector<AccessibilityHostMsg_NotificationParams>& params) { 264 const std::vector<AccessibilityHostMsg_NotificationParams>& params) {
266 } 265 }
267 }; 266 };
268 267
269 } // namespace content 268 } // namespace content
270 269
271 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_ 270 #endif // CONTENT_PORT_BROWSER_RENDER_WIDGET_HOST_VIEW_PORT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698