OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_EXO_NOTIFICATION_SURFACE_H_ | 5 #ifndef COMPONENTS_EXO_NOTIFICATION_SURFACE_H_ |
6 #define COMPONENTS_EXO_NOTIFICATION_SURFACE_H_ | 6 #define COMPONENTS_EXO_NOTIFICATION_SURFACE_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 29 matching lines...) Expand all Loading... |
40 | 40 |
41 // Overridden from SurfaceObserver: | 41 // Overridden from SurfaceObserver: |
42 void OnSurfaceDestroying(Surface* surface) override; | 42 void OnSurfaceDestroying(Surface* surface) override; |
43 | 43 |
44 private: | 44 private: |
45 NotificationSurfaceManager* const manager_; // Not owned. | 45 NotificationSurfaceManager* const manager_; // Not owned. |
46 Surface* surface_; // Not owned. | 46 Surface* surface_; // Not owned. |
47 const std::string notification_id_; | 47 const std::string notification_id_; |
48 | 48 |
49 std::unique_ptr<aura::Window> window_; | 49 std::unique_ptr<aura::Window> window_; |
| 50 bool added_to_manager_ = false; |
50 | 51 |
51 DISALLOW_COPY_AND_ASSIGN(NotificationSurface); | 52 DISALLOW_COPY_AND_ASSIGN(NotificationSurface); |
52 }; | 53 }; |
53 | 54 |
54 } // namespace exo | 55 } // namespace exo |
55 | 56 |
56 #endif // COMPONENTS_EXO_NOTIFICATION_SURFACE_H_ | 57 #endif // COMPONENTS_EXO_NOTIFICATION_SURFACE_H_ |
OLD | NEW |