| 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_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #import <Cocoa/Cocoa.h> | 9 #import <Cocoa/Cocoa.h> |
| 10 #include <list> | 10 #include <list> |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, | 283 const GpuHostMsg_AcceleratedSurfaceBuffersSwapped_Params& params, |
| 284 int gpu_host_id) OVERRIDE; | 284 int gpu_host_id) OVERRIDE; |
| 285 virtual void AcceleratedSurfacePostSubBuffer( | 285 virtual void AcceleratedSurfacePostSubBuffer( |
| 286 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, | 286 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, |
| 287 int gpu_host_id) OVERRIDE; | 287 int gpu_host_id) OVERRIDE; |
| 288 virtual void AcceleratedSurfaceSuspend() OVERRIDE; | 288 virtual void AcceleratedSurfaceSuspend() OVERRIDE; |
| 289 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) OVERRIDE; | 289 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) OVERRIDE; |
| 290 virtual void AboutToWaitForBackingStoreMsg() OVERRIDE; | 290 virtual void AboutToWaitForBackingStoreMsg() OVERRIDE; |
| 291 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE; | 291 virtual void GetScreenInfo(WebKit::WebScreenInfo* results) OVERRIDE; |
| 292 virtual gfx::Rect GetRootWindowBounds() OVERRIDE; | 292 virtual gfx::Rect GetRootWindowBounds() OVERRIDE; |
| 293 virtual gfx::GLSurfaceHandle GetCompositingSurface() OVERRIDE; | |
| 294 | 293 |
| 295 void DrawAcceleratedSurfaceInstance( | 294 void DrawAcceleratedSurfaceInstance( |
| 296 CGLContextObj context, | 295 CGLContextObj context, |
| 297 gfx::PluginWindowHandle plugin_handle, | 296 gfx::PluginWindowHandle plugin_handle, |
| 298 NSSize size); | 297 NSSize size); |
| 299 // Forces the textures associated with any accelerated plugin instances | 298 // Forces the textures associated with any accelerated plugin instances |
| 300 // to be reloaded. | 299 // to be reloaded. |
| 301 void ForceTextureReload(); | 300 void ForceTextureReload(); |
| 302 | 301 |
| 303 virtual void ProcessTouchAck(WebKit::WebInputEvent::Type type, | 302 virtual void ProcessTouchAck(WebKit::WebInputEvent::Type type, |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 420 std::string selected_text_; | 419 std::string selected_text_; |
| 421 | 420 |
| 422 // The fullscreen window used for pepper flash. | 421 // The fullscreen window used for pepper flash. |
| 423 scoped_nsobject<NSWindow> pepper_fullscreen_window_; | 422 scoped_nsobject<NSWindow> pepper_fullscreen_window_; |
| 424 scoped_nsobject<FullscreenWindowManager> fullscreen_window_manager_; | 423 scoped_nsobject<FullscreenWindowManager> fullscreen_window_manager_; |
| 425 | 424 |
| 426 // List of pending swaps for deferred acking: | 425 // List of pending swaps for deferred acking: |
| 427 // pairs of (route_id, gpu_host_id). | 426 // pairs of (route_id, gpu_host_id). |
| 428 std::list<std::pair<int32, int32> > pending_swap_buffers_acks_; | 427 std::list<std::pair<int32, int32> > pending_swap_buffers_acks_; |
| 429 | 428 |
| 429 class CompositingDelegateMac : public CompositingDelegate { |
| 430 public: |
| 431 virtual gfx::GLSurfaceHandle GetCompositingSurface() OVERRIDE; |
| 432 virtual bool ResizeNeedsNewSurface() OVERRIDE; |
| 433 |
| 434 private: |
| 435 friend class RenderWidgetHostViewMac; |
| 436 CompositingDelegateMac(RenderWidgetHostViewMac* view) |
| 437 : view_(view) |
| 438 {} |
| 439 RenderWidgetHostViewMac* view_; |
| 440 }; |
| 441 |
| 430 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 442 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
| 431 }; | 443 }; |
| 432 | 444 |
| 433 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 445 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| OLD | NEW |