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 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 #include <list> | 9 #include <list> |
10 #include <map> | 10 #include <map> |
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
321 virtual void AcceleratedSurfacePostSubBuffer( | 321 virtual void AcceleratedSurfacePostSubBuffer( |
322 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, | 322 const GpuHostMsg_AcceleratedSurfacePostSubBuffer_Params& params, |
323 int gpu_host_id) OVERRIDE; | 323 int gpu_host_id) OVERRIDE; |
324 virtual void AcceleratedSurfaceSuspend() OVERRIDE; | 324 virtual void AcceleratedSurfaceSuspend() OVERRIDE; |
325 virtual void AcceleratedSurfaceRelease() OVERRIDE; | 325 virtual void AcceleratedSurfaceRelease() OVERRIDE; |
326 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) OVERRIDE; | 326 virtual bool HasAcceleratedSurface(const gfx::Size& desired_size) OVERRIDE; |
327 virtual void GetScreenInfo(blink::WebScreenInfo* results) OVERRIDE; | 327 virtual void GetScreenInfo(blink::WebScreenInfo* results) OVERRIDE; |
328 virtual gfx::Rect GetBoundsInRootWindow() OVERRIDE; | 328 virtual gfx::Rect GetBoundsInRootWindow() OVERRIDE; |
329 virtual gfx::GLSurfaceHandle GetCompositingSurface() OVERRIDE; | 329 virtual gfx::GLSurfaceHandle GetCompositingSurface() OVERRIDE; |
330 | 330 |
331 virtual void SetScrollOffsetPinning( | |
332 bool is_pinned_to_left, bool is_pinned_to_right) OVERRIDE; | |
333 virtual bool LockMouse() OVERRIDE; | 331 virtual bool LockMouse() OVERRIDE; |
334 virtual void UnlockMouse() OVERRIDE; | 332 virtual void UnlockMouse() OVERRIDE; |
335 virtual void WheelEventAck(const blink::WebMouseWheelEvent& event, | 333 virtual void WheelEventAck(const blink::WebMouseWheelEvent& event, |
336 InputEventAckState ack_result) OVERRIDE; | 334 InputEventAckState ack_result) OVERRIDE; |
337 | 335 |
338 // IPC::Sender implementation. | 336 // IPC::Sender implementation. |
339 virtual bool Send(IPC::Message* message) OVERRIDE; | 337 virtual bool Send(IPC::Message* message) OVERRIDE; |
340 | 338 |
341 // SoftwareFrameManagerClient implementation: | 339 // SoftwareFrameManagerClient implementation: |
342 virtual void SoftwareFrameWasFreed( | 340 virtual void SoftwareFrameWasFreed( |
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
558 | 556 |
559 // Called when a GPU SwapBuffers is received. | 557 // Called when a GPU SwapBuffers is received. |
560 void GotAcceleratedFrame(); | 558 void GotAcceleratedFrame(); |
561 | 559 |
562 // Called when a software DIB is received. | 560 // Called when a software DIB is received. |
563 void GotSoftwareFrame(); | 561 void GotSoftwareFrame(); |
564 | 562 |
565 // IPC message handlers. | 563 // IPC message handlers. |
566 void OnPluginFocusChanged(bool focused, int plugin_id); | 564 void OnPluginFocusChanged(bool focused, int plugin_id); |
567 void OnStartPluginIme(); | 565 void OnStartPluginIme(); |
568 void OnDidChangeScrollbarsForMainFrame(bool has_horizontal_scrollbar, | |
569 bool has_vertical_scrollbar); | |
570 | 566 |
571 // Convert |rect| from the views coordinate (upper-left origin) into | 567 // Convert |rect| from the views coordinate (upper-left origin) into |
572 // the OpenGL coordinate (lower-left origin) and scale for HiDPI displays. | 568 // the OpenGL coordinate (lower-left origin) and scale for HiDPI displays. |
573 gfx::Rect GetScaledOpenGLPixelRect(const gfx::Rect& rect); | 569 gfx::Rect GetScaledOpenGLPixelRect(const gfx::Rect& rect); |
574 | 570 |
575 // Send updated vsync parameters to the renderer. | 571 // Send updated vsync parameters to the renderer. |
576 void SendVSyncParametersToRenderer(); | 572 void SendVSyncParametersToRenderer(); |
577 | 573 |
578 // Release the browser compositor lock, and request another frame from the | 574 // Release the browser compositor lock, and request another frame from the |
579 // browser compositor. Because this can be requested from inside compositor | 575 // browser compositor. Because this can be requested from inside compositor |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
635 scoped_ptr<RenderWidgetHostViewFrameSubscriber> frame_subscriber_; | 631 scoped_ptr<RenderWidgetHostViewFrameSubscriber> frame_subscriber_; |
636 | 632 |
637 base::WeakPtrFactory<RenderWidgetHostViewMac> | 633 base::WeakPtrFactory<RenderWidgetHostViewMac> |
638 software_frame_weak_ptr_factory_; | 634 software_frame_weak_ptr_factory_; |
639 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 635 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
640 }; | 636 }; |
641 | 637 |
642 } // namespace content | 638 } // namespace content |
643 | 639 |
644 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 640 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
OLD | NEW |