| OLD | NEW |
| 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_BUBBLE_BUBBLE_MANAGER_H_ | 5 #ifndef COMPONENTS_BUBBLE_BUBBLE_MANAGER_H_ |
| 6 #define COMPONENTS_BUBBLE_BUBBLE_MANAGER_H_ | 6 #define COMPONENTS_BUBBLE_BUBBLE_MANAGER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" |
| 8 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/memory/scoped_vector.h" | 10 #include "base/memory/scoped_vector.h" |
| 10 #include "base/observer_list.h" | 11 #include "base/observer_list.h" |
| 11 #include "base/threading/thread_checker.h" | 12 #include "base/threading/thread_checker.h" |
| 12 #include "components/bubble/bubble_close_reason.h" | 13 #include "components/bubble/bubble_close_reason.h" |
| 13 #include "components/bubble/bubble_reference.h" | 14 #include "components/bubble/bubble_reference.h" |
| 14 | 15 |
| 15 class BubbleDelegate; | 16 class BubbleDelegate; |
| 16 | 17 |
| 17 // Inherit from BubbleManager to show, update, and close bubbles. | 18 // Inherit from BubbleManager to show, update, and close bubbles. |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 89 // Determines what happens to a bubble when |ShowBubble| is called. | 90 // Determines what happens to a bubble when |ShowBubble| is called. |
| 90 ManagerState manager_state_; | 91 ManagerState manager_state_; |
| 91 | 92 |
| 92 // The bubbles that are being managed. | 93 // The bubbles that are being managed. |
| 93 ScopedVector<BubbleController> controllers_; | 94 ScopedVector<BubbleController> controllers_; |
| 94 | 95 |
| 95 DISALLOW_COPY_AND_ASSIGN(BubbleManager); | 96 DISALLOW_COPY_AND_ASSIGN(BubbleManager); |
| 96 }; | 97 }; |
| 97 | 98 |
| 98 #endif // COMPONENTS_BUBBLE_BUBBLE_MANAGER_H_ | 99 #endif // COMPONENTS_BUBBLE_BUBBLE_MANAGER_H_ |
| OLD | NEW |