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 #include "chrome/browser/ui/views/infobars/translate_infobar_base.h" | 5 #include "chrome/browser/ui/views/infobars/translate_infobar_base.h" |
6 | 6 |
7 #include "app/resource_bundle.h" | 7 #include "app/resource_bundle.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
9 #include "chrome/browser/translate/translate_infobar_delegate.h" | 9 #include "chrome/browser/translate/translate_infobar_delegate.h" |
10 #include "chrome/browser/ui/views/infobars/after_translate_infobar.h" | 10 #include "chrome/browser/ui/views/infobars/after_translate_infobar.h" |
11 #include "chrome/browser/ui/views/infobars/before_translate_infobar.h" | 11 #include "chrome/browser/ui/views/infobars/before_translate_infobar.h" |
| 12 #include "chrome/browser/ui/views/infobars/infobar_button_border.h" |
12 #include "chrome/browser/ui/views/infobars/translate_message_infobar.h" | 13 #include "chrome/browser/ui/views/infobars/translate_message_infobar.h" |
13 #include "chrome/browser/ui/views/infobars/infobar_button_border.h" | |
14 #include "gfx/canvas_skia.h" | 14 #include "gfx/canvas_skia.h" |
15 #include "grit/theme_resources.h" | 15 #include "grit/theme_resources.h" |
16 #include "ui/base/animation/slide_animation.h" | 16 #include "ui/base/animation/slide_animation.h" |
17 #include "views/controls/button/menu_button.h" | 17 #include "views/controls/button/menu_button.h" |
18 #include "views/controls/image_view.h" | 18 #include "views/controls/image_view.h" |
19 | 19 |
20 TranslateInfoBarBase::TranslateInfoBarBase( | 20 TranslateInfoBarBase::TranslateInfoBarBase( |
21 TranslateInfoBarDelegate* delegate) | 21 TranslateInfoBarDelegate* delegate) |
22 : InfoBar(delegate), | 22 : InfoBar(delegate), |
23 normal_background_(InfoBarDelegate::PAGE_ACTION_TYPE), | 23 normal_background_(InfoBarDelegate::PAGE_ACTION_TYPE), |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 infobar = new TranslateMessageInfoBar(this); | 169 infobar = new TranslateMessageInfoBar(this); |
170 break; | 170 break; |
171 default: | 171 default: |
172 NOTREACHED(); | 172 NOTREACHED(); |
173 } | 173 } |
174 // Set |infobar_view_| so that the model can notify the infobar when it | 174 // Set |infobar_view_| so that the model can notify the infobar when it |
175 // changes. | 175 // changes. |
176 infobar_view_ = infobar; | 176 infobar_view_ = infobar; |
177 return infobar; | 177 return infobar; |
178 } | 178 } |
OLD | NEW |