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 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 | 7 |
8 #include "base/string16.h" | 8 #include "base/string16.h" |
9 #include "ui/base/ui_base_types.h" | 9 #include "ui/base/ui_base_types.h" |
10 #include "ui/gfx/native_widget_types.h" | 10 #include "ui/gfx/native_widget_types.h" |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 virtual bool IsAccessibleWidget() const = 0; | 203 virtual bool IsAccessibleWidget() const = 0; |
204 virtual void RunShellDrag(View* view, | 204 virtual void RunShellDrag(View* view, |
205 const ui::OSExchangeData& data, | 205 const ui::OSExchangeData& data, |
206 const gfx::Point& location, | 206 const gfx::Point& location, |
207 int operation) = 0; | 207 int operation) = 0; |
208 virtual void SchedulePaintInRect(const gfx::Rect& rect) = 0; | 208 virtual void SchedulePaintInRect(const gfx::Rect& rect) = 0; |
209 virtual void SetCursor(gfx::NativeCursor cursor) = 0; | 209 virtual void SetCursor(gfx::NativeCursor cursor) = 0; |
210 virtual void ClearNativeFocus() = 0; | 210 virtual void ClearNativeFocus() = 0; |
211 virtual gfx::Rect GetWorkAreaBoundsInScreen() const = 0; | 211 virtual gfx::Rect GetWorkAreaBoundsInScreen() const = 0; |
212 virtual void SetInactiveRenderingDisabled(bool value) = 0; | 212 virtual void SetInactiveRenderingDisabled(bool value) = 0; |
213 virtual Widget::MoveLoopResult RunMoveLoop(const gfx::Point& drag_offset) = 0; | 213 virtual Widget::MoveLoopResult RunMoveLoop( |
| 214 const gfx::Vector2d& drag_offset) = 0; |
214 virtual void EndMoveLoop() = 0; | 215 virtual void EndMoveLoop() = 0; |
215 virtual void SetVisibilityChangedAnimationsEnabled(bool value) = 0; | 216 virtual void SetVisibilityChangedAnimationsEnabled(bool value) = 0; |
216 | 217 |
217 // Overridden from NativeWidget: | 218 // Overridden from NativeWidget: |
218 virtual internal::NativeWidgetPrivate* AsNativeWidgetPrivate() OVERRIDE; | 219 virtual internal::NativeWidgetPrivate* AsNativeWidgetPrivate() OVERRIDE; |
219 }; | 220 }; |
220 | 221 |
221 } // namespace internal | 222 } // namespace internal |
222 } // namespace views | 223 } // namespace views |
223 | 224 |
224 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ | 225 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ |
OLD | NEW |