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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 // Retrieves the native view used to contain plugins and identify the | 76 // Retrieves the native view used to contain plugins and identify the |
77 // renderer in IPC messages. | 77 // renderer in IPC messages. |
78 virtual gfx::NativeView GetNativeView() const = 0; | 78 virtual gfx::NativeView GetNativeView() const = 0; |
79 virtual gfx::NativeViewId GetNativeViewId() const = 0; | 79 virtual gfx::NativeViewId GetNativeViewId() const = 0; |
80 virtual gfx::NativeViewAccessible GetNativeViewAccessible() = 0; | 80 virtual gfx::NativeViewAccessible GetNativeViewAccessible() = 0; |
81 | 81 |
82 // Set focus to the associated View component. | 82 // Set focus to the associated View component. |
83 virtual void Focus() = 0; | 83 virtual void Focus() = 0; |
84 // Returns true if the View currently has the focus. | 84 // Returns true if the View currently has the focus. |
85 virtual bool HasFocus() const = 0; | 85 virtual bool HasFocus() const = 0; |
| 86 // Returns true is the current display surface is available. |
| 87 virtual bool IsSurfaceAvailableForCopy() const = 0; |
86 | 88 |
87 // Shows/hides the view. These must always be called together in pairs. | 89 // Shows/hides the view. These must always be called together in pairs. |
88 // It is not legal to call Hide() multiple times in a row. | 90 // It is not legal to call Hide() multiple times in a row. |
89 virtual void Show() = 0; | 91 virtual void Show() = 0; |
90 virtual void Hide() = 0; | 92 virtual void Hide() = 0; |
91 | 93 |
92 // Whether the view is showing. | 94 // Whether the view is showing. |
93 virtual bool IsShowing() = 0; | 95 virtual bool IsShowing() = 0; |
94 | 96 |
95 // Retrieve the bounds of the View, in screen coordinates. | 97 // Retrieve the bounds of the View, in screen coordinates. |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 // Return value indicates whether the mouse is locked successfully or not. | 145 // Return value indicates whether the mouse is locked successfully or not. |
144 virtual bool LockMouse() = 0; | 146 virtual bool LockMouse() = 0; |
145 virtual void UnlockMouse() = 0; | 147 virtual void UnlockMouse() = 0; |
146 // Returns true if the mouse pointer is currently locked. | 148 // Returns true if the mouse pointer is currently locked. |
147 virtual bool IsMouseLocked() = 0; | 149 virtual bool IsMouseLocked() = 0; |
148 }; | 150 }; |
149 | 151 |
150 } // namespace content | 152 } // namespace content |
151 | 153 |
152 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ | 154 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ |
OLD | NEW |