OLD | NEW |
1 // Copyright (c) 2010 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/gtk/translate/before_translate_infobar_gtk.h" | 5 #include "chrome/browser/gtk/translate/before_translate_infobar_gtk.h" |
6 | 6 |
7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
9 #include "chrome/browser/gtk/gtk_util.h" | 9 #include "chrome/browser/gtk/gtk_util.h" |
10 #include "chrome/browser/translate/translate_infobar_delegate.h" | 10 #include "chrome/browser/translate/translate_infobar_delegate.h" |
11 #include "grit/generated_resources.h" | 11 #include "grit/generated_resources.h" |
(...skipping 84 matching lines...) Loading... |
96 RemoveInfoBar(); | 96 RemoveInfoBar(); |
97 } | 97 } |
98 | 98 |
99 void BeforeTranslateInfoBar::OnNeverTranslatePressed(GtkWidget* sender) { | 99 void BeforeTranslateInfoBar::OnNeverTranslatePressed(GtkWidget* sender) { |
100 GetDelegate()->NeverTranslatePageLanguage(); | 100 GetDelegate()->NeverTranslatePageLanguage(); |
101 } | 101 } |
102 | 102 |
103 void BeforeTranslateInfoBar::OnAlwaysTranslatePressed(GtkWidget* sender) { | 103 void BeforeTranslateInfoBar::OnAlwaysTranslatePressed(GtkWidget* sender) { |
104 GetDelegate()->AlwaysTranslatePageLanguage(); | 104 GetDelegate()->AlwaysTranslatePageLanguage(); |
105 } | 105 } |
OLD | NEW |