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

Side by Side Diff: ui/aura/mus/window_tree_client_observer.h

Issue 2445163002: Make aura work with mus (Closed)
Patch Set: NON_EXPORTED_BASE_CLASS 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 unified diff | Download patch
« no previous file with comments | « ui/aura/mus/window_tree_client_delegate.cc ('k') | ui/aura/mus/window_tree_client_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_OBSERVER_H_ 5 #ifndef UI_AURA_MUS_WINDOW_TREE_CLIENT_OBSERVER_H_
6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_OBSERVER_H_ 6 #define UI_AURA_MUS_WINDOW_TREE_CLIENT_OBSERVER_H_
7 7
8 namespace ui { 8 #include "ui/aura/aura_export.h"
9
10 namespace aura {
9 11
10 class Window; 12 class Window;
11 class WindowTreeClient; 13 class WindowTreeClient;
12 14
13 class WindowTreeClientObserver { 15 class AURA_EXPORT WindowTreeClientObserver {
14 public: 16 public:
15 virtual void OnWindowTreeFocusChanged(Window* gained_focus,
16 Window* lost_focus) {}
17
18 virtual void OnWindowTreeCaptureChanged(Window* gained_capture,
19 Window* lost_capture) {}
20
21 // Called early on in the destructor of WindowTreeClient; before any windows 17 // Called early on in the destructor of WindowTreeClient; before any windows
22 // have been destroyed. 18 // have been destroyed.
23 virtual void OnWillDestroyClient(WindowTreeClient* client) {} 19 virtual void OnWillDestroyClient(WindowTreeClient* client) {}
24 20
25 // Called at the end of WindowTreeClient's destructor. At this point 21 // Called at the end of WindowTreeClient's destructor. At this point
26 // observers should drop all references to |client|. 22 // observers should drop all references to |client|.
27 virtual void OnDidDestroyClient(WindowTreeClient* client) {} 23 virtual void OnDidDestroyClient(WindowTreeClient* client) {}
28 24
29 protected: 25 protected:
30 virtual ~WindowTreeClientObserver() {} 26 virtual ~WindowTreeClientObserver() {}
31 }; 27 };
32 28
33 } // namespace ui 29 } // namespace aura
34 30
35 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_TREE_CLIENT_OBSERVER_H_ 31 #endif // UI_AURA_MUS_WINDOW_TREE_CLIENT_OBSERVER_H_
OLDNEW
« no previous file with comments | « ui/aura/mus/window_tree_client_delegate.cc ('k') | ui/aura/mus/window_tree_client_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698