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/strings/string16.h" | 9 #include "base/strings/string16.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 // Retrieve the bounds of the View, in screen coordinates. | 98 // Retrieve the bounds of the View, in screen coordinates. |
99 virtual gfx::Rect GetViewBounds() const = 0; | 99 virtual gfx::Rect GetViewBounds() const = 0; |
100 | 100 |
101 // Returns true if the View's context menu is showing. | 101 // Returns true if the View's context menu is showing. |
102 virtual bool IsShowingContextMenu() const = 0; | 102 virtual bool IsShowingContextMenu() const = 0; |
103 | 103 |
104 // Tells the View whether the context menu is showing. | 104 // Tells the View whether the context menu is showing. |
105 virtual void SetShowingContextMenu(bool showing) = 0; | 105 virtual void SetShowingContextMenu(bool showing) = 0; |
106 | 106 |
107 // Returns the currently selected text. | 107 // Returns the currently selected text. |
108 virtual string16 GetSelectedText() const = 0; | 108 virtual base::string16 GetSelectedText() const = 0; |
109 | 109 |
110 // Subclasses should override this method to do what is appropriate to set | 110 // Subclasses should override this method to do what is appropriate to set |
111 // the custom background for their platform. | 111 // the custom background for their platform. |
112 virtual void SetBackground(const SkBitmap& background) = 0; | 112 virtual void SetBackground(const SkBitmap& background) = 0; |
113 virtual const SkBitmap& GetBackground() = 0; | 113 virtual const SkBitmap& GetBackground() = 0; |
114 | 114 |
115 // Return value indicates whether the mouse is locked successfully or not. | 115 // Return value indicates whether the mouse is locked successfully or not. |
116 virtual bool LockMouse() = 0; | 116 virtual bool LockMouse() = 0; |
117 virtual void UnlockMouse() = 0; | 117 virtual void UnlockMouse() = 0; |
118 // Returns true if the mouse pointer is currently locked. | 118 // Returns true if the mouse pointer is currently locked. |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 | 161 |
162 #if defined(OS_WIN) && !defined(USE_AURA) | 162 #if defined(OS_WIN) && !defined(USE_AURA) |
163 // The region specified will be transparent to mouse clicks. | 163 // The region specified will be transparent to mouse clicks. |
164 virtual void SetClickthroughRegion(SkRegion* region) = 0; | 164 virtual void SetClickthroughRegion(SkRegion* region) = 0; |
165 #endif | 165 #endif |
166 }; | 166 }; |
167 | 167 |
168 } // namespace content | 168 } // namespace content |
169 | 169 |
170 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ | 170 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ |
OLD | NEW |