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

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

Issue 438113002: Merge 286589 "Do not save and restore View focus on aura::Window..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/2062/src/
Patch Set: Created 6 years, 4 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
« no previous file with comments | « no previous file | ui/views/widget/desktop_aura/desktop_native_widget_aura.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_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 275 matching lines...) Expand 10 before | Expand all | Expand 10 after
286 286
287 scoped_ptr<corewm::TooltipController> tooltip_controller_; 287 scoped_ptr<corewm::TooltipController> tooltip_controller_;
288 scoped_ptr<TooltipManagerAura> tooltip_manager_; 288 scoped_ptr<TooltipManagerAura> tooltip_manager_;
289 289
290 scoped_ptr<wm::VisibilityController> visibility_controller_; 290 scoped_ptr<wm::VisibilityController> visibility_controller_;
291 291
292 scoped_ptr<wm::WindowModalityController> 292 scoped_ptr<wm::WindowModalityController>
293 window_modality_controller_; 293 window_modality_controller_;
294 294
295 bool restore_focus_on_activate_; 295 bool restore_focus_on_activate_;
296 bool restore_focus_on_window_focus_;
297 296
298 gfx::NativeCursor cursor_; 297 gfx::NativeCursor cursor_;
299 // We must manually reference count the number of users of |cursor_manager_| 298 // We must manually reference count the number of users of |cursor_manager_|
300 // because the cursors created by |cursor_manager_| are shared among the 299 // 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 300 // 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 301 // 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 302 // (potentially) after we tear down the X11 connection because that's a
304 // crash. 303 // crash.
305 static int cursor_reference_count_; 304 static int cursor_reference_count_;
306 static wm::CursorManager* cursor_manager_; 305 static wm::CursorManager* cursor_manager_;
307 static views::DesktopNativeCursorManager* native_cursor_manager_; 306 static views::DesktopNativeCursorManager* native_cursor_manager_;
308 307
309 scoped_ptr<wm::ShadowController> shadow_controller_; 308 scoped_ptr<wm::ShadowController> shadow_controller_;
310 309
311 // Reorders child windows of |window_| associated with a view based on the 310 // Reorders child windows of |window_| associated with a view based on the
312 // order of the associated views in the widget's view hierarchy. 311 // order of the associated views in the widget's view hierarchy.
313 scoped_ptr<WindowReorderer> window_reorderer_; 312 scoped_ptr<WindowReorderer> window_reorderer_;
314 313
315 // See class documentation for Widget in widget.h for a note about type. 314 // See class documentation for Widget in widget.h for a note about type.
316 Widget::InitParams::Type widget_type_; 315 Widget::InitParams::Type widget_type_;
317 316
318 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura); 317 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura);
319 }; 318 };
320 319
321 } // namespace views 320 } // namespace views
322 321
323 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ 322 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_
OLDNEW
« no previous file with comments | « no previous file | ui/views/widget/desktop_aura/desktop_native_widget_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698