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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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; | 54 virtual const std::string& GetContentsMimeType() OVERRIDE; |
55 virtual const GURL& GetLastCommittedURL() OVERRIDE; | 55 virtual const GURL& GetLastCommittedURL() OVERRIDE; |
56 virtual const GURL& GetActiveURL() OVERRIDE; | 56 virtual const GURL& GetActiveURL() OVERRIDE; |
57 virtual const GURL& GetVisibleURL() OVERRIDE; | 57 virtual const GURL& GetVisibleURL() OVERRIDE; |
58 virtual bool HasCurrentPage() OVERRIDE; | 58 virtual bool HasCurrentPage() OVERRIDE; |
59 virtual int GetCurrentPageID() OVERRIDE; | 59 virtual int GetCurrentPageID() OVERRIDE; |
| 60 virtual void OpenUrlInNewTab(const GURL& url) OVERRIDE; |
60 | 61 |
61 private: | 62 private: |
62 // The navigation controller of the tab we are associated with. | 63 // The navigation controller of the tab we are associated with. |
63 content::NavigationController* navigation_controller_; | 64 content::NavigationController* navigation_controller_; |
64 | 65 |
65 LanguageState language_state_; | 66 LanguageState language_state_; |
66 Observer* observer_; | 67 Observer* observer_; |
67 | 68 |
68 DISALLOW_COPY_AND_ASSIGN(ContentTranslateDriver); | 69 DISALLOW_COPY_AND_ASSIGN(ContentTranslateDriver); |
69 }; | 70 }; |
70 | 71 |
71 #endif // COMPONENTS_TRANSLATE_CONTENT_BROWSER_CONTENT_TRANSLATE_DRIVER_H_ | 72 #endif // COMPONENTS_TRANSLATE_CONTENT_BROWSER_CONTENT_TRANSLATE_DRIVER_H_ |
OLD | NEW |