Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: ui/views/widget/desktop_aura/desktop_root_window_host_win.h

Issue 151563004: Make the member |is_cursor_visible_| in DesktopWindowTreeHostWin static. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: re-upload Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698