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 class InfoBar; | 15 class InfoBar; |
16 | 16 |
17 // InfoBarContainer is a cross-platform base class to handle the visibility- | 17 // InfoBarContainer is a cross-platform base class to handle the visibility- |
18 // related aspects of InfoBars. While InfoBarManager owns the InfoBars, the | 18 // related aspects of InfoBars. While InfoBarManager owns the InfoBars, the |
19 // InfoBarContainer is responsible for telling particular InfoBars that they | 19 // InfoBarContainer is responsible for telling particular InfoBars that they |
20 // should be hidden or visible. | 20 // should be hidden or visible. |
21 // | 21 // |
22 // Platforms need to subclass this to implement a few platform-specific | 22 // Platforms need to subclass this to implement a few platform-specific |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 Delegate* delegate_; | 123 Delegate* delegate_; |
124 InfoBarManager* infobar_manager_; | 124 InfoBarManager* infobar_manager_; |
125 InfoBars infobars_; | 125 InfoBars infobars_; |
126 | 126 |
127 // Calculated in SetMaxTopArrowHeight(). | 127 // Calculated in SetMaxTopArrowHeight(). |
128 int top_arrow_target_height_; | 128 int top_arrow_target_height_; |
129 | 129 |
130 DISALLOW_COPY_AND_ASSIGN(InfoBarContainer); | 130 DISALLOW_COPY_AND_ASSIGN(InfoBarContainer); |
131 }; | 131 }; |
132 | 132 |
133 #endif // CHROME_BROWSER_INFOBARS_INFOBAR_CONTAINER_H_ | 133 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_CONTAINER_H_ |
OLD | NEW |