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/strings/string16.h" | 8 #include "base/strings/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 203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 virtual void SetCursor(gfx::NativeCursor cursor) = 0; | 214 virtual void SetCursor(gfx::NativeCursor cursor) = 0; |
215 virtual bool IsMouseEventsEnabled() const = 0; | 215 virtual bool IsMouseEventsEnabled() const = 0; |
216 virtual void ClearNativeFocus() = 0; | 216 virtual void ClearNativeFocus() = 0; |
217 virtual gfx::Rect GetWorkAreaBoundsInScreen() const = 0; | 217 virtual gfx::Rect GetWorkAreaBoundsInScreen() const = 0; |
218 virtual Widget::MoveLoopResult RunMoveLoop( | 218 virtual Widget::MoveLoopResult RunMoveLoop( |
219 const gfx::Vector2d& drag_offset, | 219 const gfx::Vector2d& drag_offset, |
220 Widget::MoveLoopSource source, | 220 Widget::MoveLoopSource source, |
221 Widget::MoveLoopEscapeBehavior escape_behavior) = 0; | 221 Widget::MoveLoopEscapeBehavior escape_behavior) = 0; |
222 virtual void EndMoveLoop() = 0; | 222 virtual void EndMoveLoop() = 0; |
223 virtual void SetVisibilityChangedAnimationsEnabled(bool value) = 0; | 223 virtual void SetVisibilityChangedAnimationsEnabled(bool value) = 0; |
| 224 virtual void SetVisibilityAnimationDuration( |
| 225 const base::TimeDelta& duration) = 0; |
| 226 virtual void SetVisibilityAnimationTransition( |
| 227 Widget::VisibilityTransition transition) = 0; |
224 virtual ui::NativeTheme* GetNativeTheme() const = 0; | 228 virtual ui::NativeTheme* GetNativeTheme() const = 0; |
225 virtual void OnRootViewLayout() = 0; | 229 virtual void OnRootViewLayout() = 0; |
226 virtual bool IsTranslucentWindowOpacitySupported() const = 0; | 230 virtual bool IsTranslucentWindowOpacitySupported() const = 0; |
227 virtual void OnSizeConstraintsChanged() = 0; | 231 virtual void OnSizeConstraintsChanged() = 0; |
228 | 232 |
229 // Repost an unhandled event to the native widget for default OS processing. | 233 // Repost an unhandled event to the native widget for default OS processing. |
230 virtual void RepostNativeEvent(gfx::NativeEvent native_event) = 0; | 234 virtual void RepostNativeEvent(gfx::NativeEvent native_event) = 0; |
231 | 235 |
232 // Overridden from NativeWidget: | 236 // Overridden from NativeWidget: |
233 internal::NativeWidgetPrivate* AsNativeWidgetPrivate() override; | 237 internal::NativeWidgetPrivate* AsNativeWidgetPrivate() override; |
234 }; | 238 }; |
235 | 239 |
236 } // namespace internal | 240 } // namespace internal |
237 } // namespace views | 241 } // namespace views |
238 | 242 |
239 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ | 243 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ |
OLD | NEW |