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

Side by Side Diff: components/mus/public/cpp/window_tree_connection_observer.h

Issue 1984293002: Random fixes for mash bridge classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment Created 4 years, 7 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_CONNECTION_OBSERVER_H_ 5 #ifndef COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_CONNECTION_OBSERVER_H_
6 #define COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_CONNECTION_OBSERVER_H_ 6 #define COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_CONNECTION_OBSERVER_H_
7 7
8 namespace mus { 8 namespace mus {
9 9
10 class Window; 10 class Window;
11 class WindowTreeConnection;
11 12
12 class WindowTreeConnectionObserver { 13 class WindowTreeConnectionObserver {
13 public: 14 public:
14 virtual void OnWindowTreeFocusChanged(Window* gained_focus, 15 virtual void OnWindowTreeFocusChanged(Window* gained_focus,
15 Window* lost_focus) {} 16 Window* lost_focus) {}
16 17
18 // Called right before the connection is destroyed.
19 virtual void OnWillDestroyConnection(WindowTreeConnection* connection) {}
20
17 protected: 21 protected:
18 virtual ~WindowTreeConnectionObserver() {} 22 virtual ~WindowTreeConnectionObserver() {}
19 }; 23 };
20 24
21 } // namespace mus 25 } // namespace mus
22 26
23 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_CONNECTION_OBSERVER_H_ 27 #endif // COMPONENTS_MUS_PUBLIC_CPP_WINDOW_TREE_CONNECTION_OBSERVER_H_
OLDNEW
« no previous file with comments | « components/mus/public/cpp/lib/window_tree_client_impl.cc ('k') | mash/wm/bridge/mus_layout_manager_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698