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/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
84 // Returns true if the View's context menu is showing. | 84 // Returns true if the View's context menu is showing. |
85 virtual bool IsShowingContextMenu() const = 0; | 85 virtual bool IsShowingContextMenu() const = 0; |
86 | 86 |
87 // Tells the View whether the context menu is showing. | 87 // Tells the View whether the context menu is showing. |
88 virtual void SetShowingContextMenu(bool showing) = 0; | 88 virtual void SetShowingContextMenu(bool showing) = 0; |
89 | 89 |
90 // Returns the currently selected text. | 90 // Returns the currently selected text. |
91 virtual base::string16 GetSelectedText() const = 0; | 91 virtual base::string16 GetSelectedText() const = 0; |
92 | 92 |
93 // Subclasses should override this method to do what is appropriate to set | 93 // Subclasses should override this method to do what is appropriate to set |
94 // the custom background for their platform. | 94 // the background to be transparent or opaque. |
95 virtual void SetBackground(const SkBitmap& background) = 0; | 95 virtual void SetBackgroundOpaque(const bool opaque) = 0; |
96 virtual const SkBitmap& GetBackground() = 0; | 96 virtual const bool GetBackgroundOpaque() = 0; |
97 | 97 |
98 // Return value indicates whether the mouse is locked successfully or not. | 98 // Return value indicates whether the mouse is locked successfully or not. |
99 virtual bool LockMouse() = 0; | 99 virtual bool LockMouse() = 0; |
100 virtual void UnlockMouse() = 0; | 100 virtual void UnlockMouse() = 0; |
101 // Returns true if the mouse pointer is currently locked. | 101 // Returns true if the mouse pointer is currently locked. |
102 virtual bool IsMouseLocked() = 0; | 102 virtual bool IsMouseLocked() = 0; |
103 | 103 |
104 // Retrives the size of the viewport for the visible region. May be smaller | 104 // Retrives the size of the viewport for the visible region. May be smaller |
105 // than the view size if a portion of the view is obstructed (e.g. by a | 105 // than the view size if a portion of the view is obstructed (e.g. by a |
106 // virtual keyboard). | 106 // virtual keyboard). |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 // Returns |true| if text is currently being spoken by Mac OS X. | 151 // Returns |true| if text is currently being spoken by Mac OS X. |
152 virtual bool IsSpeaking() const = 0; | 152 virtual bool IsSpeaking() const = 0; |
153 // Stops speaking, if it is currently in progress. | 153 // Stops speaking, if it is currently in progress. |
154 virtual void StopSpeaking() = 0; | 154 virtual void StopSpeaking() = 0; |
155 #endif // defined(OS_MACOSX) | 155 #endif // defined(OS_MACOSX) |
156 }; | 156 }; |
157 | 157 |
158 } // namespace content | 158 } // namespace content |
159 | 159 |
160 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ | 160 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ |
OLD | NEW |