OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CHROME_BROWSER_INFOBARS_INFOBAR_CONTAINER_H_ | 5 #ifndef COMPONENTS_INFOBARS_CORE_INFOBAR_CONTAINER_H_ |
6 #define CHROME_BROWSER_INFOBARS_INFOBAR_CONTAINER_H_ | 6 #define COMPONENTS_INFOBARS_CORE_INFOBAR_CONTAINER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/time/time.h" | 11 #include "base/time/time.h" |
12 #include "chrome/browser/infobars/infobar_manager.h" | 12 #include "components/infobars/core/infobar_manager.h" |
13 #include "third_party/skia/include/core/SkColor.h" | 13 #include "third_party/skia/include/core/SkColor.h" |
14 | 14 |
| 15 namespace infobars { |
| 16 |
15 class InfoBar; | 17 class InfoBar; |
16 | 18 |
17 // InfoBarContainer is a cross-platform base class to handle the visibility- | 19 // InfoBarContainer is a cross-platform base class to handle the visibility- |
18 // related aspects of InfoBars. While InfoBarManager owns the InfoBars, the | 20 // related aspects of InfoBars. While InfoBarManager owns the InfoBars, the |
19 // InfoBarContainer is responsible for telling particular InfoBars that they | 21 // InfoBarContainer is responsible for telling particular InfoBars that they |
20 // should be hidden or visible. | 22 // should be hidden or visible. |
21 // | 23 // |
22 // Platforms need to subclass this to implement a few platform-specific | 24 // Platforms need to subclass this to implement a few platform-specific |
23 // functions, which are pure virtual here. | 25 // functions, which are pure virtual here. |
24 class InfoBarContainer : public InfoBarManager::Observer { | 26 class InfoBarContainer : public InfoBarManager::Observer { |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 Delegate* delegate_; | 125 Delegate* delegate_; |
124 InfoBarManager* infobar_manager_; | 126 InfoBarManager* infobar_manager_; |
125 InfoBars infobars_; | 127 InfoBars infobars_; |
126 | 128 |
127 // Calculated in SetMaxTopArrowHeight(). | 129 // Calculated in SetMaxTopArrowHeight(). |
128 int top_arrow_target_height_; | 130 int top_arrow_target_height_; |
129 | 131 |
130 DISALLOW_COPY_AND_ASSIGN(InfoBarContainer); | 132 DISALLOW_COPY_AND_ASSIGN(InfoBarContainer); |
131 }; | 133 }; |
132 | 134 |
133 #endif // CHROME_BROWSER_INFOBARS_INFOBAR_CONTAINER_H_ | 135 } // namespace infobars |
| 136 |
| 137 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_CONTAINER_H_ |
OLD | NEW |