| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_H_ | 5 #ifndef CHROME_BROWSER_INFOBARS_INFOBAR_H_ |
| 6 #define CHROME_BROWSER_INFOBARS_INFOBAR_H_ | 6 #define CHROME_BROWSER_INFOBARS_INFOBAR_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/memory/scoped_ptr.h" | 12 #include "base/compiler_specific.h" |
| 13 #include "build/build_config.h" | 13 #include "build/build_config.h" |
| 14 #include "chrome/browser/infobars/infobar_delegate.h" | 14 #include "chrome/browser/infobars/infobar_delegate.h" |
| 15 #include "third_party/skia/include/core/SkColor.h" | 15 #include "third_party/skia/include/core/SkColor.h" |
| 16 #include "ui/base/animation/animation_delegate.h" | 16 #include "ui/base/animation/animation_delegate.h" |
| 17 #include "ui/base/animation/slide_animation.h" | 17 #include "ui/base/animation/slide_animation.h" |
| 18 #include "ui/gfx/size.h" | 18 #include "ui/gfx/size.h" |
| 19 | 19 |
| 20 // TODO(sail): These functions should be static methods in the InfoBar class | 20 // TODO(sail): These functions should be static methods in the InfoBar class |
| 21 // below once all platforms use that class. | 21 // below once all platforms use that class. |
| 22 SkColor GetInfoBarTopColor(InfoBarDelegate::Type infobar_type); | 22 SkColor GetInfoBarTopColor(InfoBarDelegate::Type infobar_type); |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 int bar_target_height_; | 134 int bar_target_height_; |
| 135 | 135 |
| 136 DISALLOW_COPY_AND_ASSIGN(InfoBar); | 136 DISALLOW_COPY_AND_ASSIGN(InfoBar); |
| 137 }; | 137 }; |
| 138 | 138 |
| 139 #elif defined(OS_MACOSX) | 139 #elif defined(OS_MACOSX) |
| 140 #include "chrome/browser/ui/cocoa/infobars/infobar.h" | 140 #include "chrome/browser/ui/cocoa/infobars/infobar.h" |
| 141 #endif | 141 #endif |
| 142 | 142 |
| 143 #endif // CHROME_BROWSER_INFOBARS_INFOBAR_H_ | 143 #endif // CHROME_BROWSER_INFOBARS_INFOBAR_H_ |
| OLD | NEW |