| 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 <IOSurface/IOSurfaceAPI.h> | 9 #include <IOSurface/IOSurfaceAPI.h> |
| 10 #include <list> | 10 #include <list> |
| (...skipping 544 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 555 | 555 |
| 556 // Called when a GPU SwapBuffers is received. | 556 // Called when a GPU SwapBuffers is received. |
| 557 void GotAcceleratedFrame(); | 557 void GotAcceleratedFrame(); |
| 558 | 558 |
| 559 // Called when a software DIB is received. | 559 // Called when a software DIB is received. |
| 560 void GotSoftwareFrame(); | 560 void GotSoftwareFrame(); |
| 561 | 561 |
| 562 // IPC message handlers. | 562 // IPC message handlers. |
| 563 void OnPluginFocusChanged(bool focused, int plugin_id); | 563 void OnPluginFocusChanged(bool focused, int plugin_id); |
| 564 void OnStartPluginIme(); | 564 void OnStartPluginIme(); |
| 565 void OnGetRenderedTextCompleted(const std::string& text); |
| 565 | 566 |
| 566 // Convert |rect| from the views coordinate (upper-left origin) into | 567 // Convert |rect| from the views coordinate (upper-left origin) into |
| 567 // the OpenGL coordinate (lower-left origin) and scale for HiDPI displays. | 568 // the OpenGL coordinate (lower-left origin) and scale for HiDPI displays. |
| 568 gfx::Rect GetScaledOpenGLPixelRect(const gfx::Rect& rect); | 569 gfx::Rect GetScaledOpenGLPixelRect(const gfx::Rect& rect); |
| 569 | 570 |
| 570 // Send updated vsync parameters to the renderer. | 571 // Send updated vsync parameters to the renderer. |
| 571 void SendVSyncParametersToRenderer(); | 572 void SendVSyncParametersToRenderer(); |
| 572 | 573 |
| 573 // The associated view. This is weak and is inserted into the view hierarchy | 574 // The associated view. This is weak and is inserted into the view hierarchy |
| 574 // to own this RenderWidgetHostViewMac object. Set to nil at the start of the | 575 // to own this RenderWidgetHostViewMac object. Set to nil at the start of the |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 624 scoped_ptr<RenderWidgetHostViewFrameSubscriber> frame_subscriber_; | 625 scoped_ptr<RenderWidgetHostViewFrameSubscriber> frame_subscriber_; |
| 625 | 626 |
| 626 base::WeakPtrFactory<RenderWidgetHostViewMac> | 627 base::WeakPtrFactory<RenderWidgetHostViewMac> |
| 627 software_frame_weak_ptr_factory_; | 628 software_frame_weak_ptr_factory_; |
| 628 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 629 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
| 629 }; | 630 }; |
| 630 | 631 |
| 631 } // namespace content | 632 } // namespace content |
| 632 | 633 |
| 633 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 634 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
| OLD | NEW |