OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_INFOBARS_CORE_INFOBAR_H_ | 5 #ifndef COMPONENTS_INFOBARS_CORE_INFOBAR_H_ |
6 #define COMPONENTS_INFOBARS_CORE_INFOBAR_H_ | 6 #define COMPONENTS_INFOBARS_CORE_INFOBAR_H_ |
7 | 7 |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "components/infobars/core/infobar_delegate.h" | 11 #include "components/infobars/core/infobar_delegate.h" |
12 #include "third_party/skia/include/core/SkColor.h" | 12 #include "third_party/skia/include/core/SkColor.h" |
13 #include "ui/gfx/animation/animation_delegate.h" | 13 #include "ui/gfx/animation/animation_delegate.h" |
14 #include "ui/gfx/animation/slide_animation.h" | 14 #include "ui/gfx/animation/slide_animation.h" |
15 #include "ui/gfx/size.h" | 15 #include "ui/gfx/geometry/size.h" |
16 | 16 |
17 namespace infobars { | 17 namespace infobars { |
18 | 18 |
19 class InfoBarContainer; | 19 class InfoBarContainer; |
20 class InfoBarManager; | 20 class InfoBarManager; |
21 | 21 |
22 // InfoBar is a cross-platform base class for an infobar "view" (in the MVC | 22 // InfoBar is a cross-platform base class for an infobar "view" (in the MVC |
23 // sense), which owns a corresponding InfoBarDelegate "model". Typically, | 23 // sense), which owns a corresponding InfoBarDelegate "model". Typically, |
24 // a caller will call XYZInfoBarDelegate::Create() and pass in the | 24 // a caller will call XYZInfoBarDelegate::Create() and pass in the |
25 // InfoBarManager for the relevant tab. This will create an XYZInfoBarDelegate, | 25 // InfoBarManager for the relevant tab. This will create an XYZInfoBarDelegate, |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 int arrow_half_width_; // Includes only fill. | 133 int arrow_half_width_; // Includes only fill. |
134 int bar_height_; // Includes both fill and bottom separator. | 134 int bar_height_; // Includes both fill and bottom separator. |
135 int bar_target_height_; // May be left as -1, meaning "use default". | 135 int bar_target_height_; // May be left as -1, meaning "use default". |
136 | 136 |
137 DISALLOW_COPY_AND_ASSIGN(InfoBar); | 137 DISALLOW_COPY_AND_ASSIGN(InfoBar); |
138 }; | 138 }; |
139 | 139 |
140 } // namespace infobars | 140 } // namespace infobars |
141 | 141 |
142 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_H_ | 142 #endif // COMPONENTS_INFOBARS_CORE_INFOBAR_H_ |
OLD | NEW |