| Index: components/mus/public/cpp/window_tree_client_observer.h
|
| diff --git a/components/mus/public/cpp/window_tree_client_observer.h b/components/mus/public/cpp/window_tree_client_observer.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..394a5cea1e1e46dbc68efab380dd14fc88d8a87e
|
| --- /dev/null
|
| +++ b/components/mus/public/cpp/window_tree_client_observer.h
|
| @@ -0,0 +1,27 @@
|
| +// Copyright 2015 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 COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_CLIENT_OBSERVER_H_
|
| +#define COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_CLIENT_OBSERVER_H_
|
| +
|
| +namespace mus {
|
| +
|
| +class Window;
|
| +class WindowTreeClient;
|
| +
|
| +class WindowTreeClientObserver {
|
| + public:
|
| + virtual void OnWindowTreeFocusChanged(Window* gained_focus,
|
| + Window* lost_focus) {}
|
| +
|
| + // Called right before the client is destroyed.
|
| + virtual void OnWillDestroyClient(WindowTreeClient* client) {}
|
| +
|
| + protected:
|
| + virtual ~WindowTreeClientObserver() {}
|
| +};
|
| +
|
| +} // namespace mus
|
| +
|
| +#endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_CLIENT_OBSERVER_H_
|
|
|