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_AURA_H_ | 5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ |
6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ | 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ |
7 | 7 |
8 #include "base/memory/scoped_vector.h" | 8 #include "base/memory/scoped_vector.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "ui/aura/client/focus_change_observer.h" | 10 #include "ui/aura/client/focus_change_observer.h" |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 void SetCursor(gfx::NativeCursor cursor) override; | 122 void SetCursor(gfx::NativeCursor cursor) override; |
123 bool IsMouseEventsEnabled() const override; | 123 bool IsMouseEventsEnabled() const override; |
124 void ClearNativeFocus() override; | 124 void ClearNativeFocus() override; |
125 gfx::Rect GetWorkAreaBoundsInScreen() const override; | 125 gfx::Rect GetWorkAreaBoundsInScreen() const override; |
126 Widget::MoveLoopResult RunMoveLoop( | 126 Widget::MoveLoopResult RunMoveLoop( |
127 const gfx::Vector2d& drag_offset, | 127 const gfx::Vector2d& drag_offset, |
128 Widget::MoveLoopSource source, | 128 Widget::MoveLoopSource source, |
129 Widget::MoveLoopEscapeBehavior escape_behavior) override; | 129 Widget::MoveLoopEscapeBehavior escape_behavior) override; |
130 void EndMoveLoop() override; | 130 void EndMoveLoop() override; |
131 void SetVisibilityChangedAnimationsEnabled(bool value) override; | 131 void SetVisibilityChangedAnimationsEnabled(bool value) override; |
| 132 Widget::VisibilityAnimation* GetVisibilityAnimation() const override; |
132 ui::NativeTheme* GetNativeTheme() const override; | 133 ui::NativeTheme* GetNativeTheme() const override; |
133 void OnRootViewLayout() override; | 134 void OnRootViewLayout() override; |
134 bool IsTranslucentWindowOpacitySupported() const override; | 135 bool IsTranslucentWindowOpacitySupported() const override; |
135 void OnSizeConstraintsChanged() override; | 136 void OnSizeConstraintsChanged() override; |
136 void RepostNativeEvent(gfx::NativeEvent native_event) override; | 137 void RepostNativeEvent(gfx::NativeEvent native_event) override; |
137 | 138 |
138 // Overridden from views::InputMethodDelegate: | 139 // Overridden from views::InputMethodDelegate: |
139 void DispatchKeyEventPostIME(const ui::KeyEvent& key) override; | 140 void DispatchKeyEventPostIME(const ui::KeyEvent& key) override; |
140 | 141 |
141 // Overridden from aura::WindowDelegate: | 142 // Overridden from aura::WindowDelegate: |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
216 | 217 |
217 scoped_ptr<TooltipManagerAura> tooltip_manager_; | 218 scoped_ptr<TooltipManagerAura> tooltip_manager_; |
218 | 219 |
219 // Reorders child windows of |window_| associated with a view based on the | 220 // Reorders child windows of |window_| associated with a view based on the |
220 // order of the associated views in the widget's view hierarchy. | 221 // order of the associated views in the widget's view hierarchy. |
221 scoped_ptr<WindowReorderer> window_reorderer_; | 222 scoped_ptr<WindowReorderer> window_reorderer_; |
222 | 223 |
223 scoped_ptr<DropHelper> drop_helper_; | 224 scoped_ptr<DropHelper> drop_helper_; |
224 int last_drop_operation_; | 225 int last_drop_operation_; |
225 | 226 |
| 227 scoped_ptr<Widget::VisibilityAnimation> visibility_animation_; |
| 228 |
226 // The following factory is used for calls to close the NativeWidgetAura | 229 // The following factory is used for calls to close the NativeWidgetAura |
227 // instance. | 230 // instance. |
228 base::WeakPtrFactory<NativeWidgetAura> close_widget_factory_; | 231 base::WeakPtrFactory<NativeWidgetAura> close_widget_factory_; |
229 | 232 |
230 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); | 233 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); |
231 }; | 234 }; |
232 | 235 |
233 } // namespace views | 236 } // namespace views |
234 | 237 |
235 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ | 238 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ |
OLD | NEW |