| 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 | 122 |
| 123 // Tells the View whether the context menu is showing. | 123 // Tells the View whether the context menu is showing. |
| 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() const = 0; | 127 virtual base::string16 GetSelectedText() const = 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 // Returns the background color set above. |
| 133 virtual SkColor background_color() = 0; |
| 132 // Convenience method to fill the background layer with the default color by | 134 // Convenience method to fill the background layer with the default color by |
| 133 // calling |SetBackgroundColor|. | 135 // calling |SetBackgroundColor|. |
| 134 virtual void SetBackgroundColorToDefault() = 0; | 136 virtual void SetBackgroundColorToDefault() = 0; |
| 135 virtual bool GetBackgroundOpaque() = 0; | 137 virtual bool GetBackgroundOpaque() = 0; |
| 136 | 138 |
| 137 // Return value indicates whether the mouse is locked successfully or not. | 139 // Return value indicates whether the mouse is locked successfully or not. |
| 138 virtual bool LockMouse() = 0; | 140 virtual bool LockMouse() = 0; |
| 139 virtual void UnlockMouse() = 0; | 141 virtual void UnlockMouse() = 0; |
| 140 // Returns true if the mouse pointer is currently locked. | 142 // Returns true if the mouse pointer is currently locked. |
| 141 virtual bool IsMouseLocked() = 0; | 143 virtual bool IsMouseLocked() = 0; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 // Returns |true| if text is currently being spoken by Mac OS X. | 175 // Returns |true| if text is currently being spoken by Mac OS X. |
| 174 virtual bool IsSpeaking() const = 0; | 176 virtual bool IsSpeaking() const = 0; |
| 175 // Stops speaking, if it is currently in progress. | 177 // Stops speaking, if it is currently in progress. |
| 176 virtual void StopSpeaking() = 0; | 178 virtual void StopSpeaking() = 0; |
| 177 #endif // defined(OS_MACOSX) | 179 #endif // defined(OS_MACOSX) |
| 178 }; | 180 }; |
| 179 | 181 |
| 180 } // namespace content | 182 } // namespace content |
| 181 | 183 |
| 182 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ | 184 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ |
| OLD | NEW |