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_CONTROLLER_H_ | 5 #ifndef COMPONENTS_BUBBLE_BUBBLE_CONTROLLER_H_ |
6 #define COMPONENTS_BUBBLE_BUBBLE_CONTROLLER_H_ | 6 #define COMPONENTS_BUBBLE_BUBBLE_CONTROLLER_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/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
10 #include "base/threading/thread_checker.h" | 11 #include "base/threading/thread_checker.h" |
11 #include "components/bubble/bubble_close_reason.h" | 12 #include "components/bubble/bubble_close_reason.h" |
12 | 13 |
13 class BubbleDelegate; | 14 class BubbleDelegate; |
14 class BubbleManager; | 15 class BubbleManager; |
15 class BubbleUi; | 16 class BubbleUi; |
16 | 17 |
17 // BubbleController is responsible for the lifetime of the delegate and its UI. | 18 // BubbleController is responsible for the lifetime of the delegate and its UI. |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 // Verify that functions that affect the UI are done on the same thread. | 58 // Verify that functions that affect the UI are done on the same thread. |
58 base::ThreadChecker thread_checker_; | 59 base::ThreadChecker thread_checker_; |
59 | 60 |
60 // To keep track of the amount of time a bubble was visible. | 61 // To keep track of the amount of time a bubble was visible. |
61 base::TimeTicks show_time_; | 62 base::TimeTicks show_time_; |
62 | 63 |
63 DISALLOW_COPY_AND_ASSIGN(BubbleController); | 64 DISALLOW_COPY_AND_ASSIGN(BubbleController); |
64 }; | 65 }; |
65 | 66 |
66 #endif // COMPONENTS_BUBBLE_BUBBLE_CONTROLLER_H_ | 67 #endif // COMPONENTS_BUBBLE_BUBBLE_CONTROLLER_H_ |
OLD | NEW |