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 void SetVisibilityAnimationDuration(const base::TimeDelta& duration) override; |
| 133 void SetVisibilityAnimationTransition( |
| 134 Widget::VisibilityTransition transition) override; |
132 ui::NativeTheme* GetNativeTheme() const override; | 135 ui::NativeTheme* GetNativeTheme() const override; |
133 void OnRootViewLayout() override; | 136 void OnRootViewLayout() override; |
134 bool IsTranslucentWindowOpacitySupported() const override; | 137 bool IsTranslucentWindowOpacitySupported() const override; |
135 void OnSizeConstraintsChanged() override; | 138 void OnSizeConstraintsChanged() override; |
136 void RepostNativeEvent(gfx::NativeEvent native_event) override; | 139 void RepostNativeEvent(gfx::NativeEvent native_event) override; |
137 | 140 |
138 // Overridden from views::InputMethodDelegate: | 141 // Overridden from views::InputMethodDelegate: |
139 void DispatchKeyEventPostIME(const ui::KeyEvent& key) override; | 142 void DispatchKeyEventPostIME(const ui::KeyEvent& key) override; |
140 | 143 |
141 // Overridden from aura::WindowDelegate: | 144 // Overridden from aura::WindowDelegate: |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 |