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