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_CONTENT_BROWSER_CONTENT_TRANSLATE_DRIVER_H_ | 5 #ifndef COMPONENTS_TRANSLATE_CONTENT_BROWSER_CONTENT_TRANSLATE_DRIVER_H_ |
6 #define COMPONENTS_TRANSLATE_CONTENT_BROWSER_CONTENT_TRANSLATE_DRIVER_H_ | 6 #define COMPONENTS_TRANSLATE_CONTENT_BROWSER_CONTENT_TRANSLATE_DRIVER_H_ |
7 | 7 |
8 #include "components/translate/core/browser/translate_driver.h" | 8 #include "components/translate/core/browser/translate_driver.h" |
9 | 9 |
10 #include "components/translate/core/browser/language_state.h" | 10 #include "components/translate/core/browser/language_state.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 // TranslateDriver methods. | 44 // TranslateDriver methods. |
45 virtual void OnIsPageTranslatedChanged() OVERRIDE; | 45 virtual void OnIsPageTranslatedChanged() OVERRIDE; |
46 virtual void OnTranslateEnabledChanged() OVERRIDE; | 46 virtual void OnTranslateEnabledChanged() OVERRIDE; |
47 virtual bool IsLinkNavigation() OVERRIDE; | 47 virtual bool IsLinkNavigation() OVERRIDE; |
48 virtual LanguageState& GetLanguageState() OVERRIDE; | 48 virtual LanguageState& GetLanguageState() OVERRIDE; |
49 virtual void TranslatePage(const std::string& translate_script, | 49 virtual void TranslatePage(const std::string& translate_script, |
50 const std::string& source_lang, | 50 const std::string& source_lang, |
51 const std::string& target_lang) OVERRIDE; | 51 const std::string& target_lang) OVERRIDE; |
52 virtual void RevertTranslation() OVERRIDE; | 52 virtual void RevertTranslation() OVERRIDE; |
53 virtual bool IsOffTheRecord() OVERRIDE; | 53 virtual bool IsOffTheRecord() OVERRIDE; |
| 54 virtual const std::string& GetContentsMimeType() OVERRIDE; |
| 55 virtual const GURL& GetLastCommittedURL() OVERRIDE; |
| 56 virtual const GURL& GetActiveURL() OVERRIDE; |
| 57 virtual const GURL& GetVisibleURL() OVERRIDE; |
| 58 virtual bool HasCurrentPage() OVERRIDE; |
| 59 virtual int GetCurrentPageID() OVERRIDE; |
54 | 60 |
55 private: | 61 private: |
56 // The navigation controller of the tab we are associated with. | 62 // The navigation controller of the tab we are associated with. |
57 content::NavigationController* navigation_controller_; | 63 content::NavigationController* navigation_controller_; |
58 | 64 |
59 LanguageState language_state_; | 65 LanguageState language_state_; |
60 Observer* observer_; | 66 Observer* observer_; |
61 | 67 |
62 DISALLOW_COPY_AND_ASSIGN(ContentTranslateDriver); | 68 DISALLOW_COPY_AND_ASSIGN(ContentTranslateDriver); |
63 }; | 69 }; |
64 | 70 |
65 #endif // COMPONENTS_TRANSLATE_CONTENT_BROWSER_CONTENT_TRANSLATE_DRIVER_H_ | 71 #endif // COMPONENTS_TRANSLATE_CONTENT_BROWSER_CONTENT_TRANSLATE_DRIVER_H_ |
OLD | NEW |