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

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

Issue 297503003: Revert: [Refactor] Consolidate the logic for whether a widget can be activated. This is a first ste (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
209 // Are we in the destructor? 212 // Are we in the destructor?
210 bool destroying_; 213 bool destroying_;
211 214
212 gfx::NativeCursor cursor_; 215 gfx::NativeCursor cursor_;
213 216
214 // The saved window state for exiting full screen state. 217 // The saved window state for exiting full screen state.
215 ui::WindowShowState saved_window_state_; 218 ui::WindowShowState saved_window_state_;
216 219
217 scoped_ptr<TooltipManagerAura> tooltip_manager_; 220 scoped_ptr<TooltipManagerAura> tooltip_manager_;
218 221
219 // Reorders child windows of |window_| associated with a view based on the 222 // Reorders child windows of |window_| associated with a view based on the
220 // order of the associated views in the widget's view hierarchy. 223 // order of the associated views in the widget's view hierarchy.
221 scoped_ptr<WindowReorderer> window_reorderer_; 224 scoped_ptr<WindowReorderer> window_reorderer_;
222 225
223 scoped_ptr<DropHelper> drop_helper_; 226 scoped_ptr<DropHelper> drop_helper_;
224 int last_drop_operation_; 227 int last_drop_operation_;
225 228
226 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); 229 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura);
227 }; 230 };
228 231
229 } // namespace views 232 } // namespace views
230 233
231 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ 234 #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