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

Side by Side Diff: components/translate/core/browser/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
« no previous file with comments | « components/translate/core/browser/language_state_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_CORE_BROWSER_TRANSLATE_DRIVER_H_ 5 #ifndef COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_DRIVER_H_
6 #define COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_DRIVER_H_ 6 #define COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_DRIVER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 class GURL; 10 class GURL;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 // Returns the visible URL, or an empty GURL if there is no visible URL. 51 // Returns the visible URL, or an empty GURL if there is no visible URL.
52 virtual const GURL& GetVisibleURL() = 0; 52 virtual const GURL& GetVisibleURL() = 0;
53 53
54 // Returns whether the driver has access to the current page. 54 // Returns whether the driver has access to the current page.
55 virtual bool HasCurrentPage() = 0; 55 virtual bool HasCurrentPage() = 0;
56 56
57 // Returns an int identifying the current page. Should only be called if 57 // Returns an int identifying the current page. Should only be called if
58 // |HasCurrentPage()| is true. 58 // |HasCurrentPage()| is true.
59 virtual int GetCurrentPageID() = 0; 59 virtual int GetCurrentPageID() = 0;
60
61 // Opens |url| in a new tab.
62 virtual void OpenUrlInNewTab(const GURL& url) = 0;
60 }; 63 };
61 64
62 #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_DRIVER_H_ 65 #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_DRIVER_H_
OLDNEW
« no previous file with comments | « components/translate/core/browser/language_state_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698