| 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 virtual void ShowMaximizedWithBounds( | 143 virtual void ShowMaximizedWithBounds( |
| 144 const gfx::Rect& restored_bounds) OVERRIDE; | 144 const gfx::Rect& restored_bounds) OVERRIDE; |
| 145 virtual void ShowWithWindowState(ui::WindowShowState state) OVERRIDE; | 145 virtual void ShowWithWindowState(ui::WindowShowState state) OVERRIDE; |
| 146 virtual bool IsVisible() const OVERRIDE; | 146 virtual bool IsVisible() const OVERRIDE; |
| 147 virtual void Activate() OVERRIDE; | 147 virtual void Activate() OVERRIDE; |
| 148 virtual void Deactivate() OVERRIDE; | 148 virtual void Deactivate() OVERRIDE; |
| 149 virtual bool IsActive() const OVERRIDE; | 149 virtual bool IsActive() const OVERRIDE; |
| 150 virtual void SetAlwaysOnTop(bool always_on_top) OVERRIDE; | 150 virtual void SetAlwaysOnTop(bool always_on_top) OVERRIDE; |
| 151 virtual bool IsAlwaysOnTop() const OVERRIDE; | 151 virtual bool IsAlwaysOnTop() const OVERRIDE; |
| 152 virtual void SetVisibleOnAllWorkspaces(bool always_visible) OVERRIDE; | 152 virtual void SetVisibleOnAllWorkspaces(bool always_visible) OVERRIDE; |
| 153 virtual void SetInterceptAllKeys(bool want_all_keys) OVERRIDE; |
| 153 virtual void Maximize() OVERRIDE; | 154 virtual void Maximize() OVERRIDE; |
| 154 virtual void Minimize() OVERRIDE; | 155 virtual void Minimize() OVERRIDE; |
| 155 virtual bool IsMaximized() const OVERRIDE; | 156 virtual bool IsMaximized() const OVERRIDE; |
| 156 virtual bool IsMinimized() const OVERRIDE; | 157 virtual bool IsMinimized() const OVERRIDE; |
| 157 virtual void Restore() OVERRIDE; | 158 virtual void Restore() OVERRIDE; |
| 158 virtual void SetFullscreen(bool fullscreen) OVERRIDE; | 159 virtual void SetFullscreen(bool fullscreen) OVERRIDE; |
| 159 virtual bool IsFullscreen() const OVERRIDE; | 160 virtual bool IsFullscreen() const OVERRIDE; |
| 160 virtual void SetOpacity(unsigned char opacity) OVERRIDE; | 161 virtual void SetOpacity(unsigned char opacity) OVERRIDE; |
| 161 virtual void SetUseDragFrame(bool use_drag_frame) OVERRIDE; | 162 virtual void SetUseDragFrame(bool use_drag_frame) OVERRIDE; |
| 162 virtual void FlashFrame(bool flash_frame) OVERRIDE; | 163 virtual void FlashFrame(bool flash_frame) OVERRIDE; |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 scoped_ptr<TooltipManagerAura> tooltip_manager_; | 289 scoped_ptr<TooltipManagerAura> tooltip_manager_; |
| 289 | 290 |
| 290 scoped_ptr<wm::VisibilityController> visibility_controller_; | 291 scoped_ptr<wm::VisibilityController> visibility_controller_; |
| 291 | 292 |
| 292 scoped_ptr<wm::WindowModalityController> | 293 scoped_ptr<wm::WindowModalityController> |
| 293 window_modality_controller_; | 294 window_modality_controller_; |
| 294 | 295 |
| 295 bool restore_focus_on_activate_; | 296 bool restore_focus_on_activate_; |
| 296 bool restore_focus_on_window_focus_; | 297 bool restore_focus_on_window_focus_; |
| 297 | 298 |
| 299 // Should all keys be intercepted while the window is in focus. |
| 300 bool intercept_all_keys_on_focus_; |
| 301 |
| 298 gfx::NativeCursor cursor_; | 302 gfx::NativeCursor cursor_; |
| 299 // 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_| |
| 300 // because the cursors created by |cursor_manager_| are shared among the | 304 // because the cursors created by |cursor_manager_| are shared among the |
| 301 // 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 |
| 302 // 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 |
| 303 // (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 |
| 304 // crash. | 308 // crash. |
| 305 static int cursor_reference_count_; | 309 static int cursor_reference_count_; |
| 306 static wm::CursorManager* cursor_manager_; | 310 static wm::CursorManager* cursor_manager_; |
| 307 static views::DesktopNativeCursorManager* native_cursor_manager_; | 311 static views::DesktopNativeCursorManager* native_cursor_manager_; |
| 308 | 312 |
| 309 scoped_ptr<wm::ShadowController> shadow_controller_; | 313 scoped_ptr<wm::ShadowController> shadow_controller_; |
| 310 | 314 |
| 311 // 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 |
| 312 // order of the associated views in the widget's view hierarchy. | 316 // order of the associated views in the widget's view hierarchy. |
| 313 scoped_ptr<WindowReorderer> window_reorderer_; | 317 scoped_ptr<WindowReorderer> window_reorderer_; |
| 314 | 318 |
| 315 // 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. |
| 316 Widget::InitParams::Type widget_type_; | 320 Widget::InitParams::Type widget_type_; |
| 317 | 321 |
| 318 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura); | 322 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura); |
| 319 }; | 323 }; |
| 320 | 324 |
| 321 } // namespace views | 325 } // namespace views |
| 322 | 326 |
| 323 #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 |