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

Side by Side Diff: ui/views/widget/native_widget_aura.h

Issue 286733002: [Refactor] Consolidate the logic for whether a widget can be activated. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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_NATIVE_WIDGET_AURA_H_ 5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_
6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_
7 7
8 #include "base/memory/scoped_vector.h" 8 #include "base/memory/scoped_vector.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "ui/aura/client/focus_change_observer.h" 10 #include "ui/aura/client/focus_change_observer.h"
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 // non-NULL. 199 // non-NULL.
200 aura::Window* window_; 200 aura::Window* window_;
201 201
202 // See class documentation for Widget in widget.h for a note about ownership. 202 // See class documentation for Widget in widget.h for a note about ownership.
203 Widget::InitParams::Ownership ownership_; 203 Widget::InitParams::Ownership ownership_;
204 204
205 // The following factory is used for calls to close the NativeWidgetAura 205 // The following factory is used for calls to close the NativeWidgetAura
206 // instance. 206 // instance.
207 base::WeakPtrFactory<NativeWidgetAura> close_widget_factory_; 207 base::WeakPtrFactory<NativeWidgetAura> close_widget_factory_;
208 208
209 // Can we be made active?
210 bool can_activate_;
211
212 // Are we in the destructor? 209 // Are we in the destructor?
213 bool destroying_; 210 bool destroying_;
214 211
215 gfx::NativeCursor cursor_; 212 gfx::NativeCursor cursor_;
216 213
217 // The saved window state for exiting full screen state. 214 // The saved window state for exiting full screen state.
218 ui::WindowShowState saved_window_state_; 215 ui::WindowShowState saved_window_state_;
219 216
220 scoped_ptr<TooltipManagerAura> tooltip_manager_; 217 scoped_ptr<TooltipManagerAura> tooltip_manager_;
221 218
222 // Reorders child windows of |window_| associated with a view based on the 219 // Reorders child windows of |window_| associated with a view based on the
223 // order of the associated views in the widget's view hierarchy. 220 // order of the associated views in the widget's view hierarchy.
224 scoped_ptr<WindowReorderer> window_reorderer_; 221 scoped_ptr<WindowReorderer> window_reorderer_;
225 222
226 scoped_ptr<DropHelper> drop_helper_; 223 scoped_ptr<DropHelper> drop_helper_;
227 int last_drop_operation_; 224 int last_drop_operation_;
228 225
229 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); 226 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura);
230 }; 227 };
231 228
232 } // namespace views 229 } // namespace views
233 230
234 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ 231 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_
OLDNEW
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_native_widget_aura.cc ('k') | ui/views/widget/native_widget_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698