| 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_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 Loading... |
| 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_ |
| OLD | NEW |