| 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/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/string16.h" | 9 #include "base/string16.h" |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 // (minimized/unminimized, app hidden/unhidden, etc). | 118 // (minimized/unminimized, app hidden/unhidden, etc). |
| 119 // TODO(stuartmorgan): This is a temporary plugin-specific workaround for | 119 // TODO(stuartmorgan): This is a temporary plugin-specific workaround for |
| 120 // <http://crbug.com/34266>. Once that is fixed, this (and the corresponding | 120 // <http://crbug.com/34266>. Once that is fixed, this (and the corresponding |
| 121 // message and renderer-side handling) can be removed in favor of using | 121 // message and renderer-side handling) can be removed in favor of using |
| 122 // WasHidden/WasShown. | 122 // WasHidden/WasShown. |
| 123 virtual void SetWindowVisibility(bool visible) = 0; | 123 virtual void SetWindowVisibility(bool visible) = 0; |
| 124 | 124 |
| 125 // Informs the view that its containing window's frame changed. | 125 // Informs the view that its containing window's frame changed. |
| 126 virtual void WindowFrameChanged() = 0; | 126 virtual void WindowFrameChanged() = 0; |
| 127 | 127 |
| 128 // Brings up the dictionary showing a definition for the selected text. |
| 129 virtual void ShowDefinitionForSelection() = 0; |
| 130 |
| 128 // Returns |true| if Mac OS X text to speech is supported. | 131 // Returns |true| if Mac OS X text to speech is supported. |
| 129 virtual bool SupportsSpeech() const = 0; | 132 virtual bool SupportsSpeech() const = 0; |
| 130 // Tells the view to speak the currently selected text. | 133 // Tells the view to speak the currently selected text. |
| 131 virtual void SpeakSelection() = 0; | 134 virtual void SpeakSelection() = 0; |
| 132 // Returns |true| if text is currently being spoken by Mac OS X. | 135 // Returns |true| if text is currently being spoken by Mac OS X. |
| 133 virtual bool IsSpeaking() const = 0; | 136 virtual bool IsSpeaking() const = 0; |
| 134 // Stops speaking, if it is currently in progress. | 137 // Stops speaking, if it is currently in progress. |
| 135 virtual void StopSpeaking() = 0; | 138 virtual void StopSpeaking() = 0; |
| 136 #endif // defined(OS_MACOSX) | 139 #endif // defined(OS_MACOSX) |
| 137 | 140 |
| (...skipping 21 matching lines...) Expand all Loading... |
| 159 // Return value indicates whether the mouse is locked successfully or not. | 162 // Return value indicates whether the mouse is locked successfully or not. |
| 160 virtual bool LockMouse() = 0; | 163 virtual bool LockMouse() = 0; |
| 161 virtual void UnlockMouse() = 0; | 164 virtual void UnlockMouse() = 0; |
| 162 // Returns true if the mouse pointer is currently locked. | 165 // Returns true if the mouse pointer is currently locked. |
| 163 virtual bool IsMouseLocked() = 0; | 166 virtual bool IsMouseLocked() = 0; |
| 164 }; | 167 }; |
| 165 | 168 |
| 166 } // namespace content | 169 } // namespace content |
| 167 | 170 |
| 168 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ | 171 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ |
| OLD | NEW |