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

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

Issue 2696573003: Have WindowTreeClient detect error state earlier (Closed)
Patch Set: Fix test exposed by new check Created 3 years, 10 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 UI_AURA_MUS_WINDOW_TREE_CLIENT_OBSERVER_H_ 5 #ifndef UI_AURA_MUS_WINDOW_TREE_CLIENT_OBSERVER_H_
6 #define UI_AURA_MUS_WINDOW_TREE_CLIENT_OBSERVER_H_ 6 #define UI_AURA_MUS_WINDOW_TREE_CLIENT_OBSERVER_H_
7 7
8 #include "ui/aura/aura_export.h" 8 #include "ui/aura/aura_export.h"
9 9
10 namespace aura { 10 namespace aura {
11 11
12 class WindowTreeClient; 12 class WindowTreeClient;
13 13
14 class AURA_EXPORT WindowTreeClientObserver { 14 class AURA_EXPORT WindowTreeClientObserver {
15 public: 15 public:
16 // Called early on in the destructor of WindowTreeClient; before any windows 16 // Called early on in the destructor of WindowTreeClient.
17 // have been destroyed.
18 virtual void OnWillDestroyClient(WindowTreeClient* client) {} 17 virtual void OnWillDestroyClient(WindowTreeClient* client) {}
19 18
20 // Called at the end of WindowTreeClient's destructor. At this point
21 // observers should drop all references to |client|.
22 virtual void OnDidDestroyClient(WindowTreeClient* client) {}
23
24 protected: 19 protected:
25 virtual ~WindowTreeClientObserver() {} 20 virtual ~WindowTreeClientObserver() {}
26 }; 21 };
27 22
28 } // namespace aura 23 } // namespace aura
29 24
30 #endif // UI_AURA_MUS_WINDOW_TREE_CLIENT_OBSERVER_H_ 25 #endif // UI_AURA_MUS_WINDOW_TREE_CLIENT_OBSERVER_H_
OLDNEW
« no previous file with comments | « ui/aura/mus/window_tree_client.cc ('k') | ui/views/controls/native/native_view_host_aura_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698