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_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ | 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ |
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ | 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ |
7 | 7 |
8 #include "base/memory/weak_ptr.h" | 8 #include "base/memory/weak_ptr.h" |
9 #include "ui/aura/client/focus_change_observer.h" | 9 #include "ui/aura/client/focus_change_observer.h" |
10 #include "ui/aura/window_delegate.h" | 10 #include "ui/aura/window_delegate.h" |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
290 | 290 |
291 scoped_ptr<corewm::TooltipController> tooltip_controller_; | 291 scoped_ptr<corewm::TooltipController> tooltip_controller_; |
292 scoped_ptr<TooltipManagerAura> tooltip_manager_; | 292 scoped_ptr<TooltipManagerAura> tooltip_manager_; |
293 | 293 |
294 scoped_ptr<wm::VisibilityController> visibility_controller_; | 294 scoped_ptr<wm::VisibilityController> visibility_controller_; |
295 | 295 |
296 scoped_ptr<wm::WindowModalityController> | 296 scoped_ptr<wm::WindowModalityController> |
297 window_modality_controller_; | 297 window_modality_controller_; |
298 | 298 |
299 bool restore_focus_on_activate_; | 299 bool restore_focus_on_activate_; |
| 300 bool restore_focus_on_window_focus_; |
300 | 301 |
301 gfx::NativeCursor cursor_; | 302 gfx::NativeCursor cursor_; |
302 // We must manually reference count the number of users of |cursor_manager_| | 303 // We must manually reference count the number of users of |cursor_manager_| |
303 // because the cursors created by |cursor_manager_| are shared among the | 304 // because the cursors created by |cursor_manager_| are shared among the |
304 // DNWAs. We can't just stuff this in a LazyInstance because we need to | 305 // DNWAs. We can't just stuff this in a LazyInstance because we need to |
305 // destroy this as the last DNWA happens; we can't put it off until | 306 // destroy this as the last DNWA happens; we can't put it off until |
306 // (potentially) after we tear down the X11 connection because that's a | 307 // (potentially) after we tear down the X11 connection because that's a |
307 // crash. | 308 // crash. |
308 static int cursor_reference_count_; | 309 static int cursor_reference_count_; |
309 static wm::CursorManager* cursor_manager_; | 310 static wm::CursorManager* cursor_manager_; |
310 static views::DesktopNativeCursorManager* native_cursor_manager_; | 311 static views::DesktopNativeCursorManager* native_cursor_manager_; |
311 | 312 |
312 scoped_ptr<wm::ShadowController> shadow_controller_; | 313 scoped_ptr<wm::ShadowController> shadow_controller_; |
313 | 314 |
314 // Reorders child windows of |window_| associated with a view based on the | 315 // Reorders child windows of |window_| associated with a view based on the |
315 // order of the associated views in the widget's view hierarchy. | 316 // order of the associated views in the widget's view hierarchy. |
316 scoped_ptr<WindowReorderer> window_reorderer_; | 317 scoped_ptr<WindowReorderer> window_reorderer_; |
317 | 318 |
318 // See class documentation for Widget in widget.h for a note about type. | 319 // See class documentation for Widget in widget.h for a note about type. |
319 Widget::InitParams::Type widget_type_; | 320 Widget::InitParams::Type widget_type_; |
320 | 321 |
321 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura); | 322 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura); |
322 }; | 323 }; |
323 | 324 |
324 } // namespace views | 325 } // namespace views |
325 | 326 |
326 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ | 327 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ |
OLD | NEW |