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 535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
546 | 546 |
547 // Called when a GPU SwapBuffers is received. | 547 // Called when a GPU SwapBuffers is received. |
548 void GotAcceleratedFrame(); | 548 void GotAcceleratedFrame(); |
549 | 549 |
550 // Called when a software DIB is received. | 550 // Called when a software DIB is received. |
551 void GotSoftwareFrame(); | 551 void GotSoftwareFrame(); |
552 | 552 |
553 // IPC message handlers. | 553 // IPC message handlers. |
554 void OnPluginFocusChanged(bool focused, int plugin_id); | 554 void OnPluginFocusChanged(bool focused, int plugin_id); |
555 void OnStartPluginIme(); | 555 void OnStartPluginIme(); |
| 556 void OnGetRenderedTextCompleted(const std::string& text); |
556 | 557 |
557 // Convert |rect| from the views coordinate (upper-left origin) into | 558 // Convert |rect| from the views coordinate (upper-left origin) into |
558 // the OpenGL coordinate (lower-left origin) and scale for HiDPI displays. | 559 // the OpenGL coordinate (lower-left origin) and scale for HiDPI displays. |
559 gfx::Rect GetScaledOpenGLPixelRect(const gfx::Rect& rect); | 560 gfx::Rect GetScaledOpenGLPixelRect(const gfx::Rect& rect); |
560 | 561 |
561 // Send updated vsync parameters to the renderer. | 562 // Send updated vsync parameters to the renderer. |
562 void SendVSyncParametersToRenderer(); | 563 void SendVSyncParametersToRenderer(); |
563 | 564 |
564 // The associated view. This is weak and is inserted into the view hierarchy | 565 // The associated view. This is weak and is inserted into the view hierarchy |
565 // to own this RenderWidgetHostViewMac object. Set to nil at the start of the | 566 // 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... |
615 scoped_ptr<RenderWidgetHostViewFrameSubscriber> frame_subscriber_; | 616 scoped_ptr<RenderWidgetHostViewFrameSubscriber> frame_subscriber_; |
616 | 617 |
617 base::WeakPtrFactory<RenderWidgetHostViewMac> | 618 base::WeakPtrFactory<RenderWidgetHostViewMac> |
618 software_frame_weak_ptr_factory_; | 619 software_frame_weak_ptr_factory_; |
619 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); | 620 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); |
620 }; | 621 }; |
621 | 622 |
622 } // namespace content | 623 } // namespace content |
623 | 624 |
624 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ | 625 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ |
OLD | NEW |