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

Side by Side Diff: ash/mus/disconnected_app_handler.cc

Issue 2908333003: [mus+ash] Removes WmWindow from ash (app_list, frame, metrics, session, system, wallpaper) (Closed)
Patch Set: [mus ash] Removes WmWindow from ash (rebase, nits and cleanup of use of ResizeHandleWindowTargeter) Created 3 years, 6 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #include "ash/mus/disconnected_app_handler.h" 5 #include "ash/mus/disconnected_app_handler.h"
6 6
7 #include "ash/public/cpp/shell_window_ids.h" 7 #include "ash/public/cpp/shell_window_ids.h"
8 #include "ash/wm_window.h"
9 #include "ui/aura/window.h" 8 #include "ui/aura/window.h"
10 #include "ui/base/class_property.h" 9 #include "ui/base/class_property.h"
11 10
12 DECLARE_UI_CLASS_PROPERTY_TYPE(ash::mus::DisconnectedAppHandler*); 11 DECLARE_UI_CLASS_PROPERTY_TYPE(ash::mus::DisconnectedAppHandler*);
13 12
14 namespace ash { 13 namespace ash {
15 namespace mus { 14 namespace mus {
16 namespace { 15 namespace {
17 16
18 DEFINE_OWNED_UI_CLASS_PROPERTY_KEY(DisconnectedAppHandler, 17 DEFINE_OWNED_UI_CLASS_PROPERTY_KEY(DisconnectedAppHandler,
(...skipping 16 matching lines...) Expand all
35 DisconnectedAppHandler::~DisconnectedAppHandler() { 34 DisconnectedAppHandler::~DisconnectedAppHandler() {
36 window_->RemoveObserver(this); 35 window_->RemoveObserver(this);
37 } 36 }
38 37
39 void DisconnectedAppHandler::OnEmbeddedAppDisconnected(aura::Window* window) { 38 void DisconnectedAppHandler::OnEmbeddedAppDisconnected(aura::Window* window) {
40 delete window_; 39 delete window_;
41 } 40 }
42 41
43 } // namespace mus 42 } // namespace mus
44 } // namespace ash 43 } // namespace ash
OLDNEW
« no previous file with comments | « ash/metrics/user_metrics_recorder_unittest.cc ('k') | ash/mus/frame/detached_title_area_renderer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698