Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(673)

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_mac.h

Issue 342143004: Defect 248426: Speak rendered text when no selection is made on Mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed browser tests from Render View Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
571 571
572 // Called when a GPU SwapBuffers is received. 572 // Called when a GPU SwapBuffers is received.
573 void GotAcceleratedFrame(); 573 void GotAcceleratedFrame();
574 574
575 // Called when a software DIB is received. 575 // Called when a software DIB is received.
576 void GotSoftwareFrame(); 576 void GotSoftwareFrame();
577 577
578 // IPC message handlers. 578 // IPC message handlers.
579 void OnPluginFocusChanged(bool focused, int plugin_id); 579 void OnPluginFocusChanged(bool focused, int plugin_id);
580 void OnStartPluginIme(); 580 void OnStartPluginIme();
581 void OnGetRenderedTextCompleted(const std::string& text);
581 582
582 // Convert |rect| from the views coordinate (upper-left origin) into 583 // Convert |rect| from the views coordinate (upper-left origin) into
583 // the OpenGL coordinate (lower-left origin) and scale for HiDPI displays. 584 // the OpenGL coordinate (lower-left origin) and scale for HiDPI displays.
584 gfx::Rect GetScaledOpenGLPixelRect(const gfx::Rect& rect); 585 gfx::Rect GetScaledOpenGLPixelRect(const gfx::Rect& rect);
585 586
586 // Send updated vsync parameters to the renderer. 587 // Send updated vsync parameters to the renderer.
587 void SendVSyncParametersToRenderer(); 588 void SendVSyncParametersToRenderer();
588 589
589 // The associated view. This is weak and is inserted into the view hierarchy 590 // The associated view. This is weak and is inserted into the view hierarchy
590 // to own this RenderWidgetHostViewMac object. Set to nil at the start of the 591 // to own this RenderWidgetHostViewMac object. Set to nil at the start of the
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
634 scoped_ptr<RenderWidgetHostViewFrameSubscriber> frame_subscriber_; 635 scoped_ptr<RenderWidgetHostViewFrameSubscriber> frame_subscriber_;
635 636
636 base::WeakPtrFactory<RenderWidgetHostViewMac> 637 base::WeakPtrFactory<RenderWidgetHostViewMac>
637 software_frame_weak_ptr_factory_; 638 software_frame_weak_ptr_factory_;
638 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); 639 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac);
639 }; 640 };
640 641
641 } // namespace content 642 } // namespace content
642 643
643 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 644 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698