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_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ |
6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ | 6 #define CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 // Return the accelerated widget which hosts the CALayers that draw the | 171 // Return the accelerated widget which hosts the CALayers that draw the |
172 // content of the view in GetNativeView. This may be null. | 172 // content of the view in GetNativeView. This may be null. |
173 virtual ui::AcceleratedWidgetMac* GetAcceleratedWidgetMac() const = 0; | 173 virtual ui::AcceleratedWidgetMac* GetAcceleratedWidgetMac() const = 0; |
174 | 174 |
175 // Set the view's active state (i.e., tint state of controls). | 175 // Set the view's active state (i.e., tint state of controls). |
176 virtual void SetActive(bool active) = 0; | 176 virtual void SetActive(bool active) = 0; |
177 | 177 |
178 // Brings up the dictionary showing a definition for the selected text. | 178 // Brings up the dictionary showing a definition for the selected text. |
179 virtual void ShowDefinitionForSelection() = 0; | 179 virtual void ShowDefinitionForSelection() = 0; |
180 | 180 |
181 // Returns |true| if Mac OS X text to speech is supported. | |
182 virtual bool SupportsSpeech() const = 0; | |
183 // Tells the view to speak the currently selected text. | 181 // Tells the view to speak the currently selected text. |
184 virtual void SpeakSelection() = 0; | 182 virtual void SpeakSelection() = 0; |
185 // Returns |true| if text is currently being spoken by Mac OS X. | 183 |
186 virtual bool IsSpeaking() const = 0; | |
187 // Stops speaking, if it is currently in progress. | |
188 virtual void StopSpeaking() = 0; | |
189 #endif // defined(OS_MACOSX) | 184 #endif // defined(OS_MACOSX) |
190 }; | 185 }; |
191 | 186 |
192 } // namespace content | 187 } // namespace content |
193 | 188 |
194 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ | 189 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ |
OLD | NEW |