Chromium Code Reviews| 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 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 79 virtual gfx::NativeView GetNativeView() const = 0; | 79 virtual gfx::NativeView GetNativeView() const = 0; |
| 80 virtual gfx::NativeViewId GetNativeViewId() const = 0; | 80 virtual gfx::NativeViewId GetNativeViewId() const = 0; |
| 81 virtual gfx::NativeViewAccessible GetNativeViewAccessible() = 0; | 81 virtual gfx::NativeViewAccessible GetNativeViewAccessible() = 0; |
| 82 | 82 |
| 83 // Set focus to the associated View component. | 83 // Set focus to the associated View component. |
| 84 virtual void Focus() = 0; | 84 virtual void Focus() = 0; |
| 85 // Returns true if the View currently has the focus. | 85 // Returns true if the View currently has the focus. |
| 86 virtual bool HasFocus() const = 0; | 86 virtual bool HasFocus() const = 0; |
| 87 // Returns true is the current display surface is available. | 87 // Returns true is the current display surface is available. |
| 88 virtual bool IsSurfaceAvailableForCopy() const = 0; | 88 virtual bool IsSurfaceAvailableForCopy() const = 0; |
| 89 // Locks the surface for copying. | |
| 90 virtual void LockSurfaceForCopy() = 0; | |
|
no sievers
2014/02/21 02:01:37
Can this be in RenderWidgetHostViewPort instead, s
powei
2014/02/21 02:27:22
Done.
| |
| 91 // Unlocks the surface for copying. | |
| 92 virtual void UnlockSurfaceForCopy() = 0; | |
| 89 | 93 |
| 90 // Shows/hides the view. These must always be called together in pairs. | 94 // Shows/hides the view. These must always be called together in pairs. |
| 91 // It is not legal to call Hide() multiple times in a row. | 95 // It is not legal to call Hide() multiple times in a row. |
| 92 virtual void Show() = 0; | 96 virtual void Show() = 0; |
| 93 virtual void Hide() = 0; | 97 virtual void Hide() = 0; |
| 94 | 98 |
| 95 // Whether the view is showing. | 99 // Whether the view is showing. |
| 96 virtual bool IsShowing() = 0; | 100 virtual bool IsShowing() = 0; |
| 97 | 101 |
| 98 // Retrieve the bounds of the View, in screen coordinates. | 102 // Retrieve the bounds of the View, in screen coordinates. |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 156 // Gets the event for the last mouse down. | 160 // Gets the event for the last mouse down. |
| 157 virtual GdkEventButton* GetLastMouseDown() = 0; | 161 virtual GdkEventButton* GetLastMouseDown() = 0; |
| 158 // Builds a submenu containing all the gtk input method commands. | 162 // Builds a submenu containing all the gtk input method commands. |
| 159 virtual gfx::NativeView BuildInputMethodsGtkMenu() = 0; | 163 virtual gfx::NativeView BuildInputMethodsGtkMenu() = 0; |
| 160 #endif // defined(TOOLKIT_GTK) | 164 #endif // defined(TOOLKIT_GTK) |
| 161 }; | 165 }; |
| 162 | 166 |
| 163 } // namespace content | 167 } // namespace content |
| 164 | 168 |
| 165 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ | 169 #endif // CONTENT_PUBLIC_BROWSER_RENDER_WIDGET_HOST_VIEW_H_ |
| OLD | NEW |