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

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

Issue 10820062: [Mac]: Enable speech sub-menu under the edit menu and pipe it through to the renderer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: sp Created 8 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 | Annotate | Revision Log
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 <list> 9 #include <list>
10 #include <map>
11 #include <string>
12 #include <utility>
13 #include <vector>
10 14
11 #include "base/memory/scoped_nsobject.h" 15 #include "base/memory/scoped_nsobject.h"
12 #include "base/memory/scoped_ptr.h" 16 #include "base/memory/scoped_ptr.h"
13 #include "base/memory/weak_ptr.h" 17 #include "base/memory/weak_ptr.h"
14 #include "base/time.h" 18 #include "base/time.h"
15 #include "content/browser/accessibility/browser_accessibility_delegate_mac.h" 19 #include "content/browser/accessibility/browser_accessibility_delegate_mac.h"
16 #include "content/browser/renderer_host/accelerated_surface_container_manager_ma c.h" 20 #include "content/browser/renderer_host/accelerated_surface_container_manager_ma c.h"
17 #include "content/browser/renderer_host/render_widget_host_view_base.h" 21 #include "content/browser/renderer_host/render_widget_host_view_base.h"
18 #include "content/common/edit_command.h" 22 #include "content/common/edit_command.h"
19 #import "content/public/browser/render_widget_host_view_mac_base.h" 23 #import "content/public/browser/render_widget_host_view_mac_base.h"
(...skipping 29 matching lines...) Expand all
49 scoped_ptr<content::RenderWidgetHostViewMac> renderWidgetHostView_; 53 scoped_ptr<content::RenderWidgetHostViewMac> renderWidgetHostView_;
50 NSObject<RenderWidgetHostViewMacDelegate>* delegate_; // weak 54 NSObject<RenderWidgetHostViewMacDelegate>* delegate_; // weak
51 BOOL canBeKeyView_; 55 BOOL canBeKeyView_;
52 BOOL takesFocusOnlyOnMouseDown_; 56 BOOL takesFocusOnlyOnMouseDown_;
53 BOOL closeOnDeactivate_; 57 BOOL closeOnDeactivate_;
54 scoped_ptr<content::RenderWidgetHostViewMacEditCommandHelper> 58 scoped_ptr<content::RenderWidgetHostViewMacEditCommandHelper>
55 editCommand_helper_; 59 editCommand_helper_;
56 60
57 // These are part of the magic tooltip code from WebKit's WebHTMLView: 61 // These are part of the magic tooltip code from WebKit's WebHTMLView:
58 id trackingRectOwner_; // (not retained) 62 id trackingRectOwner_; // (not retained)
59 void *trackingRectUserData_; 63 void* trackingRectUserData_;
60 NSTrackingRectTag lastToolTipTag_; 64 NSTrackingRectTag lastToolTipTag_;
61 scoped_nsobject<NSString> toolTip_; 65 scoped_nsobject<NSString> toolTip_;
62 66
63 // Is YES if there was a mouse-down as yet unbalanced with a mouse-up. 67 // Is YES if there was a mouse-down as yet unbalanced with a mouse-up.
64 BOOL hasOpenMouseDown_; 68 BOOL hasOpenMouseDown_;
65 69
66 NSWindow* lastWindow_; // weak 70 NSWindow* lastWindow_; // weak
67 71
68 // The cursor for the page. This is passed up from the renderer. 72 // The cursor for the page. This is passed up from the renderer.
69 scoped_nsobject<NSCursor> currentCursor_; 73 scoped_nsobject<NSCursor> currentCursor_;
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 virtual bool IsSurfaceAvailableForCopy() const OVERRIDE; 202 virtual bool IsSurfaceAvailableForCopy() const OVERRIDE;
199 virtual void Show() OVERRIDE; 203 virtual void Show() OVERRIDE;
200 virtual void Hide() OVERRIDE; 204 virtual void Hide() OVERRIDE;
201 virtual bool IsShowing() OVERRIDE; 205 virtual bool IsShowing() OVERRIDE;
202 virtual gfx::Rect GetViewBounds() const OVERRIDE; 206 virtual gfx::Rect GetViewBounds() const OVERRIDE;
203 virtual void SetShowingContextMenu(bool showing) OVERRIDE; 207 virtual void SetShowingContextMenu(bool showing) OVERRIDE;
204 virtual void SetActive(bool active) OVERRIDE; 208 virtual void SetActive(bool active) OVERRIDE;
205 virtual void SetTakesFocusOnlyOnMouseDown(bool flag) OVERRIDE; 209 virtual void SetTakesFocusOnlyOnMouseDown(bool flag) OVERRIDE;
206 virtual void SetWindowVisibility(bool visible) OVERRIDE; 210 virtual void SetWindowVisibility(bool visible) OVERRIDE;
207 virtual void WindowFrameChanged() OVERRIDE; 211 virtual void WindowFrameChanged() OVERRIDE;
212 virtual bool SupportsSpeech() const OVERRIDE;
213 virtual void SpeakSelection() OVERRIDE;
214 virtual bool IsSpeaking() const OVERRIDE;
215 virtual void StopSpeaking() OVERRIDE;
208 virtual void SetBackground(const SkBitmap& background) OVERRIDE; 216 virtual void SetBackground(const SkBitmap& background) OVERRIDE;
209 217
210 // Implementation of RenderWidgetHostViewPort. 218 // Implementation of RenderWidgetHostViewPort.
211 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view, 219 virtual void InitAsPopup(RenderWidgetHostView* parent_host_view,
212 const gfx::Rect& pos) OVERRIDE; 220 const gfx::Rect& pos) OVERRIDE;
213 virtual void InitAsFullscreen( 221 virtual void InitAsFullscreen(
214 RenderWidgetHostView* reference_host_view) OVERRIDE; 222 RenderWidgetHostView* reference_host_view) OVERRIDE;
215 virtual void WasShown() OVERRIDE; 223 virtual void WasShown() OVERRIDE;
216 virtual void WasHidden() OVERRIDE; 224 virtual void WasHidden() OVERRIDE;
217 virtual void MovePluginWindows( 225 virtual void MovePluginWindows(
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
460 468
461 // The current caret bounds. 469 // The current caret bounds.
462 gfx::Rect caret_rect_; 470 gfx::Rect caret_rect_;
463 471
464 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac); 472 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewMac);
465 }; 473 };
466 474
467 } // namespace content 475 } // namespace content
468 476
469 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_ 477 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698