OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ | 5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ |
6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ | 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/string16.h" | 9 #include "base/string16.h" |
10 #include "ui/gfx/native_widget_types.h" | 10 #include "ui/gfx/native_widget_types.h" |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
193 virtual void SetOpacity(unsigned char opacity) = 0; | 193 virtual void SetOpacity(unsigned char opacity) = 0; |
194 virtual void SetUseDragFrame(bool use_drag_frame) = 0; | 194 virtual void SetUseDragFrame(bool use_drag_frame) = 0; |
195 virtual bool IsAccessibleWidget() const = 0; | 195 virtual bool IsAccessibleWidget() const = 0; |
196 virtual void RunShellDrag(View* view, | 196 virtual void RunShellDrag(View* view, |
197 const ui::OSExchangeData& data, | 197 const ui::OSExchangeData& data, |
198 int operation) = 0; | 198 int operation) = 0; |
199 virtual void SchedulePaintInRect(const gfx::Rect& rect) = 0; | 199 virtual void SchedulePaintInRect(const gfx::Rect& rect) = 0; |
200 virtual void SetCursor(gfx::NativeCursor cursor) = 0; | 200 virtual void SetCursor(gfx::NativeCursor cursor) = 0; |
201 virtual void ClearNativeFocus() = 0; | 201 virtual void ClearNativeFocus() = 0; |
202 virtual void FocusNativeView(gfx::NativeView native_view) = 0; | 202 virtual void FocusNativeView(gfx::NativeView native_view) = 0; |
203 virtual bool ConvertPointFromAncestor( | |
204 const Widget* ancestor, gfx::Point* point) const = 0; | |
205 virtual gfx::Rect GetWorkAreaBoundsInScreen() const = 0; | 203 virtual gfx::Rect GetWorkAreaBoundsInScreen() const = 0; |
206 virtual void SetInactiveRenderingDisabled(bool value) = 0; | 204 virtual void SetInactiveRenderingDisabled(bool value) = 0; |
207 | 205 |
208 // Overridden from NativeWidget: | 206 // Overridden from NativeWidget: |
209 virtual internal::NativeWidgetPrivate* AsNativeWidgetPrivate() OVERRIDE; | 207 virtual internal::NativeWidgetPrivate* AsNativeWidgetPrivate() OVERRIDE; |
210 }; | 208 }; |
211 | 209 |
212 } // namespace internal | 210 } // namespace internal |
213 } // namespace views | 211 } // namespace views |
214 | 212 |
215 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ | 213 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ |
OLD | NEW |