Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(153)

Side by Side Diff: components/translate/content/browser/content_translate_driver.h

Issue 292513002: Remove dependency of TranslateInfobarDelegate on chrome/ and content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « chrome/common/url_constants.cc ('k') | components/translate/content/browser/content_translate_driver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698