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 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 int OnPerformDrop(const ui::DropTargetEvent& event) override; | 185 int OnPerformDrop(const ui::DropTargetEvent& event) override; |
186 | 186 |
187 protected: | 187 protected: |
188 ~NativeWidgetAura() override; | 188 ~NativeWidgetAura() override; |
189 | 189 |
190 internal::NativeWidgetDelegate* delegate() { return delegate_; } | 190 internal::NativeWidgetDelegate* delegate() { return delegate_; } |
191 | 191 |
192 private: | 192 private: |
193 class ActiveWindowObserver; | 193 class ActiveWindowObserver; |
194 | 194 |
| 195 bool IsDocked() const; |
195 void SetInitialFocus(ui::WindowShowState show_state); | 196 void SetInitialFocus(ui::WindowShowState show_state); |
196 | 197 |
197 internal::NativeWidgetDelegate* delegate_; | 198 internal::NativeWidgetDelegate* delegate_; |
198 | 199 |
199 // WARNING: set to NULL when destroyed. As the Widget is not necessarily | 200 // WARNING: set to NULL when destroyed. As the Widget is not necessarily |
200 // destroyed along with |window_| all usage of |window_| should first verify | 201 // destroyed along with |window_| all usage of |window_| should first verify |
201 // non-NULL. | 202 // non-NULL. |
202 aura::Window* window_; | 203 aura::Window* window_; |
203 | 204 |
204 // See class documentation for Widget in widget.h for a note about ownership. | 205 // See class documentation for Widget in widget.h for a note about ownership. |
(...skipping 19 matching lines...) Expand all Loading... |
224 // The following factory is used for calls to close the NativeWidgetAura | 225 // The following factory is used for calls to close the NativeWidgetAura |
225 // instance. | 226 // instance. |
226 base::WeakPtrFactory<NativeWidgetAura> close_widget_factory_; | 227 base::WeakPtrFactory<NativeWidgetAura> close_widget_factory_; |
227 | 228 |
228 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); | 229 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); |
229 }; | 230 }; |
230 | 231 |
231 } // namespace views | 232 } // namespace views |
232 | 233 |
233 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ | 234 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ |
OLD | NEW |