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 "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) = 0; | 156 scoped_ptr<RenderWidgetHostViewFrameSubscriber> subscriber) = 0; |
157 | 157 |
158 // End subscribing for frame presentation events. FrameSubscriber will be | 158 // End subscribing for frame presentation events. FrameSubscriber will be |
159 // deleted after this call. | 159 // deleted after this call. |
160 virtual void EndFrameSubscription() = 0; | 160 virtual void EndFrameSubscription() = 0; |
161 | 161 |
162 #if defined(OS_MACOSX) | 162 #if defined(OS_MACOSX) |
163 // Set the view's active state (i.e., tint state of controls). | 163 // Set the view's active state (i.e., tint state of controls). |
164 virtual void SetActive(bool active) = 0; | 164 virtual void SetActive(bool active) = 0; |
165 | 165 |
166 // Notifies the view that its enclosing window has changed visibility | |
167 // (minimized/unminimized, app hidden/unhidden, etc). | |
168 // TODO(stuartmorgan): This is a temporary plugin-specific workaround for | |
169 // <http://crbug.com/34266>. Once that is fixed, this (and the corresponding | |
170 // message and renderer-side handling) can be removed in favor of using | |
171 // WasHidden/WasShown. | |
172 virtual void SetWindowVisibility(bool visible) = 0; | |
173 | |
174 // Informs the view that its containing window's frame changed. | |
175 virtual void WindowFrameChanged() = 0; | |
176 | |
177 // Brings up the dictionary showing a definition for the selected text. | 166 // Brings up the dictionary showing a definition for the selected text. |
178 virtual void ShowDefinitionForSelection() = 0; | 167 virtual void ShowDefinitionForSelection() = 0; |
179 | 168 |
180 // Returns |true| if Mac OS X text to speech is supported. | 169 // Returns |true| if Mac OS X text to speech is supported. |
181 virtual bool SupportsSpeech() const = 0; | 170 virtual bool SupportsSpeech() const = 0; |
182 // Tells the view to speak the currently selected text. | 171 // Tells the view to speak the currently selected text. |
183 virtual void SpeakSelection() = 0; | 172 virtual void SpeakSelection() = 0; |
184 // Returns |true| if text is currently being spoken by Mac OS X. | 173 // Returns |true| if text is currently being spoken by Mac OS X. |
185 virtual bool IsSpeaking() const = 0; | 174 virtual bool IsSpeaking() const = 0; |
186 // Stops speaking, if it is currently in progress. | 175 // Stops speaking, if it is currently in progress. |
187 virtual void StopSpeaking() = 0; | 176 virtual void StopSpeaking() = 0; |
188 #endif // defined(OS_MACOSX) | 177 #endif // defined(OS_MACOSX) |
189 }; | 178 }; |
190 | 179 |
191 } // namespace content | 180 } // namespace content |
192 | 181 |
193 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ | 182 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ |
OLD | NEW |