| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "chrome/common/notification_observer.h" |
| 5 #include "chrome/common/notification_registrar.h" | 6 #include "chrome/common/notification_registrar.h" |
| 6 #include "chrome/common/notification_service.h" | 7 #include "chrome/common/notification_service.h" |
| 7 | 8 |
| 8 @class NSWindow; | 9 @class NSWindow; |
| 9 @class ThemeInstallBubbleViewCocoa; | 10 @class ThemeInstallBubbleViewCocoa; |
| 10 | 11 |
| 11 // ThemeInstallBubbleView is a view that provides a "Loading..." bubble in the | 12 // ThemeInstallBubbleView is a view that provides a "Loading..." bubble in the |
| 12 // center of a browser window for use when an extension or theme is loaded. | 13 // center of a browser window for use when an extension or theme is loaded. |
| 13 // (The Browser class only calls it to install itself into the currently active | 14 // (The Browser class only calls it to install itself into the currently active |
| 14 // browser window.) If an extension is being applied, the bubble goes away | 15 // browser window.) If an extension is being applied, the bubble goes away |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 | 48 |
| 48 // The actual Cocoa view implementing the bubble. | 49 // The actual Cocoa view implementing the bubble. |
| 49 ThemeInstallBubbleViewCocoa* cocoa_view_; | 50 ThemeInstallBubbleViewCocoa* cocoa_view_; |
| 50 | 51 |
| 51 // Multiple loads can be started at once. Only show one bubble, and keep | 52 // Multiple loads can be started at once. Only show one bubble, and keep |
| 52 // track of number of loads happening. Close bubble when num_loads < 1. | 53 // track of number of loads happening. Close bubble when num_loads < 1. |
| 53 int num_loads_extant_; | 54 int num_loads_extant_; |
| 54 | 55 |
| 55 DISALLOW_COPY_AND_ASSIGN(ThemeInstallBubbleView); | 56 DISALLOW_COPY_AND_ASSIGN(ThemeInstallBubbleView); |
| 56 }; | 57 }; |
| OLD | NEW |