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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 virtual void SetShowingContextMenu(bool showing) = 0; | 124 virtual void SetShowingContextMenu(bool showing) = 0; |
125 | 125 |
126 // Returns the currently selected text. | 126 // Returns the currently selected text. |
127 virtual base::string16 GetSelectedText() = 0; | 127 virtual base::string16 GetSelectedText() = 0; |
128 | 128 |
129 // Subclasses should override this method to set the background color. |color| | 129 // Subclasses should override this method to set the background color. |color| |
130 // could be transparent or opaque. | 130 // could be transparent or opaque. |
131 virtual void SetBackgroundColor(SkColor color) = 0; | 131 virtual void SetBackgroundColor(SkColor color) = 0; |
132 // Convenience method to fill the background layer with the default color by | 132 // Convenience method to fill the background layer with the default color by |
133 // calling |SetBackgroundColor|. | 133 // calling |SetBackgroundColor|. |
| 134 virtual SkColor background_color() = 0; |
134 virtual void SetBackgroundColorToDefault() = 0; | 135 virtual void SetBackgroundColorToDefault() = 0; |
135 virtual bool GetBackgroundOpaque() = 0; | 136 virtual bool GetBackgroundOpaque() = 0; |
136 | 137 |
137 // Return value indicates whether the mouse is locked successfully or not. | 138 // Return value indicates whether the mouse is locked successfully or not. |
138 virtual bool LockMouse() = 0; | 139 virtual bool LockMouse() = 0; |
139 virtual void UnlockMouse() = 0; | 140 virtual void UnlockMouse() = 0; |
140 // Returns true if the mouse pointer is currently locked. | 141 // Returns true if the mouse pointer is currently locked. |
141 virtual bool IsMouseLocked() = 0; | 142 virtual bool IsMouseLocked() = 0; |
142 | 143 |
143 // Retrives the size of the viewport for the visible region. May be smaller | 144 // Retrives the size of the viewport for the visible region. May be smaller |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 // Returns |true| if text is currently being spoken by Mac OS X. | 191 // Returns |true| if text is currently being spoken by Mac OS X. |
191 virtual bool IsSpeaking() const = 0; | 192 virtual bool IsSpeaking() const = 0; |
192 // Stops speaking, if it is currently in progress. | 193 // Stops speaking, if it is currently in progress. |
193 virtual void StopSpeaking() = 0; | 194 virtual void StopSpeaking() = 0; |
194 #endif // defined(OS_MACOSX) | 195 #endif // defined(OS_MACOSX) |
195 }; | 196 }; |
196 | 197 |
197 } // namespace content | 198 } // namespace content |
198 | 199 |
199 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ | 200 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ |
OLD | NEW |