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

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

Issue 2669303005: desktop-views: Create one fewer aura::Window for each widget. (Closed)
Patch Set: . Created 3 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
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 <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 DesktopWindowTreeHost* desktop_window_tree_host_; 251 DesktopWindowTreeHost* desktop_window_tree_host_;
252 252
253 // See class documentation for Widget in widget.h for a note about ownership. 253 // See class documentation for Widget in widget.h for a note about ownership.
254 Widget::InitParams::Ownership ownership_; 254 Widget::InitParams::Ownership ownership_;
255 255
256 // Internal name. 256 // Internal name.
257 std::string name_; 257 std::string name_;
258 258
259 std::unique_ptr<DesktopCaptureClient> capture_client_; 259 std::unique_ptr<DesktopCaptureClient> capture_client_;
260 260
261 // Child of the root, contains |content_window_|. 261 // This is the return value from GetNativeView().
262 aura::Window* content_window_container_;
263
264 // Child of |content_window_container_|. This is the return value from
265 // GetNativeView().
266 // WARNING: this may be NULL, in particular during shutdown it becomes NULL. 262 // WARNING: this may be NULL, in particular during shutdown it becomes NULL.
267 aura::Window* content_window_; 263 aura::Window* content_window_;
268 264
269 internal::NativeWidgetDelegate* native_widget_delegate_; 265 internal::NativeWidgetDelegate* native_widget_delegate_;
270 266
271 std::unique_ptr<wm::FocusController> focus_client_; 267 std::unique_ptr<wm::FocusController> focus_client_;
272 std::unique_ptr<aura::client::ScreenPositionClient> position_client_; 268 std::unique_ptr<aura::client::ScreenPositionClient> position_client_;
273 std::unique_ptr<aura::client::DragDropClient> drag_drop_client_; 269 std::unique_ptr<aura::client::DragDropClient> drag_drop_client_;
274 std::unique_ptr<aura::client::WindowParentingClient> window_parenting_client_; 270 std::unique_ptr<aura::client::WindowParentingClient> window_parenting_client_;
275 std::unique_ptr<DesktopEventClient> event_client_; 271 std::unique_ptr<DesktopEventClient> event_client_;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 // The following factory is used for calls to close the NativeWidgetAura 312 // The following factory is used for calls to close the NativeWidgetAura
317 // instance. 313 // instance.
318 base::WeakPtrFactory<DesktopNativeWidgetAura> close_widget_factory_; 314 base::WeakPtrFactory<DesktopNativeWidgetAura> close_widget_factory_;
319 315
320 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura); 316 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura);
321 }; 317 };
322 318
323 } // namespace views 319 } // namespace views
324 320
325 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ 321 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_
OLDNEW
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_focus_rules.cc ('k') | 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