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

Unified Diff: ui/wm/core/wm_state.cc

Issue 2466023003: Makes CaptureController be created and owned by WMState (Closed)
Patch Set: moar Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/wm/core/wm_state.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/wm/core/wm_state.cc
diff --git a/ui/wm/core/wm_state.cc b/ui/wm/core/wm_state.cc
index 6d580863394b0c4b0c4639647d778c071ae44796..35ec554d5c683a4b05c63bfe9253ae8b66cabc48 100644
--- a/ui/wm/core/wm_state.cc
+++ b/ui/wm/core/wm_state.cc
@@ -5,6 +5,7 @@
#include "ui/wm/core/wm_state.h"
#include "ui/events/platform/platform_event_source.h"
+#include "ui/wm/core/capture_controller.h"
#include "ui/wm/core/transient_window_controller.h"
#include "ui/wm/core/transient_window_stacking_client.h"
@@ -12,7 +13,8 @@ namespace wm {
WMState::WMState()
: window_stacking_client_(new TransientWindowStackingClient),
- transient_window_client_(new TransientWindowController) {
+ transient_window_client_(new TransientWindowController),
+ capture_controller_(base::MakeUnique<CaptureController>()) {
aura::client::SetWindowStackingClient(window_stacking_client_.get());
aura::client::SetTransientWindowClient(transient_window_client_.get());
}
« no previous file with comments | « ui/wm/core/wm_state.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698