| 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 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 167 // The |editable| parameter indicates if the node is editable, for e.g. | 167 // The |editable| parameter indicates if the node is editable, for e.g. |
| 168 // an input field, etc. | 168 // an input field, etc. |
| 169 virtual void FocusedNodeTouched(const gfx::Point& location_dips_screen, | 169 virtual void FocusedNodeTouched(const gfx::Point& location_dips_screen, |
| 170 bool editable) = 0; | 170 bool editable) = 0; |
| 171 | 171 |
| 172 // Informs the view that its associated render widget has frames to draw and | 172 // Informs the view that its associated render widget has frames to draw and |
| 173 // wants to have BeginFrame messages sent to it. This should only be called | 173 // wants to have BeginFrame messages sent to it. This should only be called |
| 174 // when the value has changed. Views must initially default to false. | 174 // when the value has changed. Views must initially default to false. |
| 175 virtual void SetNeedsBeginFrames(bool needs_begin_frames) = 0; | 175 virtual void SetNeedsBeginFrames(bool needs_begin_frames) = 0; |
| 176 | 176 |
| 177 virtual bool IsRenderWidgetHostViewChildFrame() = 0; |
| 178 |
| 177 #if defined(OS_MACOSX) | 179 #if defined(OS_MACOSX) |
| 178 // Return the accelerated widget which hosts the CALayers that draw the | 180 // Return the accelerated widget which hosts the CALayers that draw the |
| 179 // content of the view in GetNativeView. This may be null. | 181 // content of the view in GetNativeView. This may be null. |
| 180 virtual ui::AcceleratedWidgetMac* GetAcceleratedWidgetMac() const = 0; | 182 virtual ui::AcceleratedWidgetMac* GetAcceleratedWidgetMac() const = 0; |
| 181 | 183 |
| 182 // Set the view's active state (i.e., tint state of controls). | 184 // Set the view's active state (i.e., tint state of controls). |
| 183 virtual void SetActive(bool active) = 0; | 185 virtual void SetActive(bool active) = 0; |
| 184 | 186 |
| 185 // Brings up the dictionary showing a definition for the selected text. | 187 // Brings up the dictionary showing a definition for the selected text. |
| 186 virtual void ShowDefinitionForSelection() = 0; | 188 virtual void ShowDefinitionForSelection() = 0; |
| 187 | 189 |
| 188 // Returns |true| if Mac OS X text to speech is supported. | 190 // Returns |true| if Mac OS X text to speech is supported. |
| 189 virtual bool SupportsSpeech() const = 0; | 191 virtual bool SupportsSpeech() const = 0; |
| 190 // Tells the view to speak the currently selected text. | 192 // Tells the view to speak the currently selected text. |
| 191 virtual void SpeakSelection() = 0; | 193 virtual void SpeakSelection() = 0; |
| 192 // Returns |true| if text is currently being spoken by Mac OS X. | 194 // Returns |true| if text is currently being spoken by Mac OS X. |
| 193 virtual bool IsSpeaking() const = 0; | 195 virtual bool IsSpeaking() const = 0; |
| 194 // Stops speaking, if it is currently in progress. | 196 // Stops speaking, if it is currently in progress. |
| 195 virtual void StopSpeaking() = 0; | 197 virtual void StopSpeaking() = 0; |
| 196 #endif // defined(OS_MACOSX) | 198 #endif // defined(OS_MACOSX) |
| 197 }; | 199 }; |
| 198 | 200 |
| 199 } // namespace content | 201 } // namespace content |
| 200 | 202 |
| 201 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ | 203 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ |
| OLD | NEW |