| OLD | NEW |
| 1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 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/translate/translate_tab_helper.h" | 5 #include "chrome/browser/translate/translate_tab_helper.h" |
| 6 | 6 |
| 7 #if defined(CLD2_DYNAMIC_MODE) | 7 #if defined(CLD2_DYNAMIC_MODE) |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
| 10 #endif | 10 #endif |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 #include "chrome/browser/translate/translate_service.h" | 23 #include "chrome/browser/translate/translate_service.h" |
| 24 #include "chrome/browser/ui/browser.h" | 24 #include "chrome/browser/ui/browser.h" |
| 25 #include "chrome/browser/ui/browser_finder.h" | 25 #include "chrome/browser/ui/browser_finder.h" |
| 26 #include "chrome/browser/ui/browser_window.h" | 26 #include "chrome/browser/ui/browser_window.h" |
| 27 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 27 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 28 #include "chrome/browser/ui/translate/translate_bubble_factory.h" | 28 #include "chrome/browser/ui/translate/translate_bubble_factory.h" |
| 29 #if defined(CLD2_DYNAMIC_MODE) | 29 #if defined(CLD2_DYNAMIC_MODE) |
| 30 #include "chrome/common/chrome_paths.h" | 30 #include "chrome/common/chrome_paths.h" |
| 31 #endif | 31 #endif |
| 32 #include "chrome/common/pref_names.h" | 32 #include "chrome/common/pref_names.h" |
| 33 #include "chrome/common/render_messages.h" | 33 #include "components/translate/content/common/translate_messages.h" |
| 34 #include "components/translate/core/browser/page_translated_details.h" | 34 #include "components/translate/core/browser/page_translated_details.h" |
| 35 #include "components/translate/core/browser/translate_accept_languages.h" | 35 #include "components/translate/core/browser/translate_accept_languages.h" |
| 36 #include "components/translate/core/browser/translate_prefs.h" | 36 #include "components/translate/core/browser/translate_prefs.h" |
| 37 #include "components/translate/core/common/language_detection_details.h" | 37 #include "components/translate/core/common/language_detection_details.h" |
| 38 #if defined(CLD2_DYNAMIC_MODE) | 38 #if defined(CLD2_DYNAMIC_MODE) |
| 39 #include "content/public/browser/browser_thread.h" | 39 #include "content/public/browser/browser_thread.h" |
| 40 #endif | 40 #endif |
| 41 #include "content/public/browser/notification_service.h" | 41 #include "content/public/browser/notification_service.h" |
| 42 #if defined(CLD2_DYNAMIC_MODE) | 42 #if defined(CLD2_DYNAMIC_MODE) |
| 43 #include "content/public/browser/render_process_host.h" | 43 #include "content/public/browser/render_process_host.h" |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 if (GetLanguageState().InTranslateNavigation()) | 395 if (GetLanguageState().InTranslateNavigation()) |
| 396 return; | 396 return; |
| 397 } | 397 } |
| 398 | 398 |
| 399 TranslateBubbleFactory::Show( | 399 TranslateBubbleFactory::Show( |
| 400 browser->window(), web_contents(), step, error_type); | 400 browser->window(), web_contents(), step, error_type); |
| 401 #else | 401 #else |
| 402 NOTREACHED(); | 402 NOTREACHED(); |
| 403 #endif | 403 #endif |
| 404 } | 404 } |
| OLD | NEW |