| 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_TRANSLATE_CORE_BROWSER_TRANSLATE_INFOBAR_DELEGATE_H_ | 5 #ifndef COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_INFOBAR_DELEGATE_H_ |
| 6 #define COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_INFOBAR_DELEGATE_H_ | 6 #define COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_INFOBAR_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <stddef.h> |
| 9 |
| 8 #include <string> | 10 #include <string> |
| 9 #include <utility> | 11 #include <utility> |
| 10 #include <vector> | 12 #include <vector> |
| 11 | 13 |
| 12 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "base/macros.h" |
| 13 #include "base/memory/scoped_ptr.h" | 16 #include "base/memory/scoped_ptr.h" |
| 14 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
| 18 #include "build/build_config.h" |
| 15 #include "components/infobars/core/infobar_delegate.h" | 19 #include "components/infobars/core/infobar_delegate.h" |
| 16 #include "components/translate/core/browser/translate_prefs.h" | 20 #include "components/translate/core/browser/translate_prefs.h" |
| 17 #include "components/translate/core/browser/translate_step.h" | 21 #include "components/translate/core/browser/translate_step.h" |
| 18 #include "components/translate/core/browser/translate_ui_delegate.h" | 22 #include "components/translate/core/browser/translate_ui_delegate.h" |
| 19 #include "components/translate/core/common/translate_constants.h" | 23 #include "components/translate/core/common/translate_constants.h" |
| 20 #include "components/translate/core/common/translate_errors.h" | 24 #include "components/translate/core/common/translate_errors.h" |
| 21 | 25 |
| 22 namespace infobars { | 26 namespace infobars { |
| 23 class InfoBarManager; | 27 class InfoBarManager; |
| 24 } | 28 } |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 222 | 226 |
| 223 // Whether the translation was triggered via a menu click vs automatically | 227 // Whether the translation was triggered via a menu click vs automatically |
| 224 // (due to language detection, preferences...) | 228 // (due to language detection, preferences...) |
| 225 bool triggered_from_menu_; | 229 bool triggered_from_menu_; |
| 226 DISALLOW_COPY_AND_ASSIGN(TranslateInfoBarDelegate); | 230 DISALLOW_COPY_AND_ASSIGN(TranslateInfoBarDelegate); |
| 227 }; | 231 }; |
| 228 | 232 |
| 229 } // namespace translate | 233 } // namespace translate |
| 230 | 234 |
| 231 #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_INFOBAR_DELEGATE_H_ | 235 #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_INFOBAR_DELEGATE_H_ |
| OLD | NEW |