| 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_UI_GTK_TRANSLATE_TRANSLATE_INFOBAR_BASE_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_TRANSLATE_TRANSLATE_INFOBAR_BASE_GTK_H_ |
| 6 #define CHROME_BROWSER_UI_GTK_TRANSLATE_TRANSLATE_INFOBAR_BASE_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_TRANSLATE_TRANSLATE_INFOBAR_BASE_GTK_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/translate/translate_infobar_view.h" | 9 #include "chrome/browser/translate/translate_infobar_view.h" |
| 10 #include "chrome/browser/gtk/infobar_gtk.h" | 10 #include "chrome/browser/ui/gtk/infobar_gtk.h" |
| 11 #include "ui/base/animation/animation_delegate.h" | 11 #include "ui/base/animation/animation_delegate.h" |
| 12 | 12 |
| 13 class MenuGtk; | 13 class MenuGtk; |
| 14 class OptionsMenuModel; | 14 class OptionsMenuModel; |
| 15 class TranslateInfoBarDelegate; | 15 class TranslateInfoBarDelegate; |
| 16 | 16 |
| 17 // This class contains some of the base functionality that translate infobars | 17 // This class contains some of the base functionality that translate infobars |
| 18 // use. | 18 // use. |
| 19 class TranslateInfoBarBase : public TranslateInfoBarView, | 19 class TranslateInfoBarBase : public TranslateInfoBarView, |
| 20 public InfoBar, | 20 public InfoBar, |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 // When 1, the infobar background should be pure WARNING_TYPE. | 80 // When 1, the infobar background should be pure WARNING_TYPE. |
| 81 double background_error_percent_; | 81 double background_error_percent_; |
| 82 | 82 |
| 83 // Changes the color of the background from normal to error color and back. | 83 // Changes the color of the background from normal to error color and back. |
| 84 scoped_ptr<ui::SlideAnimation> background_color_animation_; | 84 scoped_ptr<ui::SlideAnimation> background_color_animation_; |
| 85 | 85 |
| 86 DISALLOW_COPY_AND_ASSIGN(TranslateInfoBarBase); | 86 DISALLOW_COPY_AND_ASSIGN(TranslateInfoBarBase); |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 #endif // CHROME_BROWSER_UI_GTK_TRANSLATE_TRANSLATE_INFOBAR_BASE_GTK_H_ | 89 #endif // CHROME_BROWSER_UI_GTK_TRANSLATE_TRANSLATE_INFOBAR_BASE_GTK_H_ |
| OLD | NEW |