| 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_ROOT_WINDOW_HOST_WIN_H_ | 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ |
| 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ | 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ |
| 7 | 7 |
| 8 #include "ui/aura/client/animation_host.h" | 8 #include "ui/aura/client/animation_host.h" |
| 9 #include "ui/aura/window_tree_host.h" | 9 #include "ui/aura/window_tree_host.h" |
| 10 #include "ui/views/views_export.h" | 10 #include "ui/views/views_export.h" |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 | 266 |
| 267 // True if the widget is going to have a non_client_view. We cache this value | 267 // True if the widget is going to have a non_client_view. We cache this value |
| 268 // rather than asking the Widget for the non_client_view so that we know at | 268 // rather than asking the Widget for the non_client_view so that we know at |
| 269 // Init time, before the Widget has created the NonClientView. | 269 // Init time, before the Widget has created the NonClientView. |
| 270 bool has_non_client_view_; | 270 bool has_non_client_view_; |
| 271 | 271 |
| 272 // Owned by TooltipController, but we need to forward events to it so we keep | 272 // Owned by TooltipController, but we need to forward events to it so we keep |
| 273 // a reference. | 273 // a reference. |
| 274 corewm::TooltipWin* tooltip_; | 274 corewm::TooltipWin* tooltip_; |
| 275 | 275 |
| 276 // State of the cursor. | 276 // Visibility of the cursor. On Windows we can have multiple root windows and |
| 277 bool is_cursor_visible_; | 277 // the implementation of ::ShowCursor() is based on a counter, so making this |
| 278 // member static ensures that ::ShowCursor() is always called exactly once |
| 279 // whenever the cursor visibility state changes. |
| 280 static bool is_cursor_visible_; |
| 278 | 281 |
| 279 scoped_ptr<aura::client::ScopedTooltipDisabler> tooltip_disabler_; | 282 scoped_ptr<aura::client::ScopedTooltipDisabler> tooltip_disabler_; |
| 280 | 283 |
| 281 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostWin); | 284 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostWin); |
| 282 }; | 285 }; |
| 283 | 286 |
| 284 } // namespace views | 287 } // namespace views |
| 285 | 288 |
| 286 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ | 289 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_WIN_H_ |
| OLD | NEW |