| Index: mash/wm/disconnected_app_handler.h
|
| diff --git a/mash/wm/disconnected_app_handler.h b/mash/wm/disconnected_app_handler.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..7fb839301de9888eb0f26f7a887d578b6821762b
|
| --- /dev/null
|
| +++ b/mash/wm/disconnected_app_handler.h
|
| @@ -0,0 +1,31 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef MASH_WM_DISCONNECTED_APP_HANDLER_H_
|
| +#define MASH_WM_DISCONNECTED_APP_HANDLER_H_
|
| +
|
| +#include "base/macros.h"
|
| +#include "components/mus/public/cpp/window_tracker.h"
|
| +
|
| +namespace mash {
|
| +namespace wm {
|
| +
|
| +// Tracks mus::Windows for when they get disconnected from the embedded app.
|
| +// Currently closes a window upon disconnection.
|
| +class DisconnectedAppHandler : public mus::WindowTracker {
|
| + public:
|
| + DisconnectedAppHandler();
|
| + ~DisconnectedAppHandler() override;
|
| +
|
| + private:
|
| + // mus::WindowObserver:
|
| + void OnWindowEmbeddedAppDisconnected(mus::Window* window) override;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(DisconnectedAppHandler);
|
| +};
|
| +
|
| +} // namespace wm
|
| +} // namespace mash
|
| +
|
| +#endif // MASH_WM_DISCONNECTED_APP_HANDLER_H_
|
|
|