| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_DRIVER_H_ |
| 6 #define COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_DRIVER_H_ |
| 7 |
| 8 // Interface that allows Translate core code to interact with its driver (i.e., |
| 9 // obtain information from it and give information to it). A concrete |
| 10 // implementation must be provided by the driver. |
| 11 class TranslateDriver { |
| 12 public: |
| 13 // Returns true if the current page was navigated through a link. |
| 14 virtual bool IsLinkNavigation() = 0; |
| 15 |
| 16 // Called when Translate is enabled or disabled. |
| 17 virtual void OnTranslateEnabledChanged() = 0; |
| 18 |
| 19 // Called when the page is "translated" state of the page changed. |
| 20 virtual void OnIsPageTranslatedChanged() = 0; |
| 21 }; |
| 22 |
| 23 #endif // COMPONENTS_TRANSLATE_CORE_BROWSER_TRANSLATE_DRIVER_H_ |
| OLD | NEW |