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