| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CHROME_BROWSER_UI_TRANSLATE_TRANSLATE_BUBBLE_MODEL_H_ | 5 #ifndef CHROME_BROWSER_UI_TRANSLATE_TRANSLATE_BUBBLE_MODEL_H_ |
| 6 #define CHROME_BROWSER_UI_TRANSLATE_TRANSLATE_BUBBLE_MODEL_H_ | 6 #define CHROME_BROWSER_UI_TRANSLATE_TRANSLATE_BUBBLE_MODEL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 virtual void SetNeverTranslateLanguage(bool value) = 0; | 75 virtual void SetNeverTranslateLanguage(bool value) = 0; |
| 76 | 76 |
| 77 // Sets the value if the user doesn't want to have the page translated the | 77 // Sets the value if the user doesn't want to have the page translated the |
| 78 // current page's domain. | 78 // current page's domain. |
| 79 virtual void SetNeverTranslateSite(bool value) = 0; | 79 virtual void SetNeverTranslateSite(bool value) = 0; |
| 80 | 80 |
| 81 // Returns true if the webpage in the current original language should be | 81 // Returns true if the webpage in the current original language should be |
| 82 // translated into the current target language automatically. | 82 // translated into the current target language automatically. |
| 83 virtual bool ShouldAlwaysTranslate() const = 0; | 83 virtual bool ShouldAlwaysTranslate() const = 0; |
| 84 | 84 |
| 85 // Returns true if the Always Translate checkbox should be checked by default. |
| 86 virtual bool ShouldAlwaysTranslateBeCheckedByDefault() const = 0; |
| 87 |
| 85 // Sets the value if the webpage in the current original language should be | 88 // Sets the value if the webpage in the current original language should be |
| 86 // translated into the current target language automatically. | 89 // translated into the current target language automatically. |
| 87 virtual void SetAlwaysTranslate(bool value) = 0; | 90 virtual void SetAlwaysTranslate(bool value) = 0; |
| 88 | 91 |
| 89 // Starts translating the current page. | 92 // Starts translating the current page. |
| 90 virtual void Translate() = 0; | 93 virtual void Translate() = 0; |
| 91 | 94 |
| 92 // Reverts translation. | 95 // Reverts translation. |
| 93 virtual void RevertTranslation() = 0; | 96 virtual void RevertTranslation() = 0; |
| 94 | 97 |
| 95 // Called when the translate bubble is closed. Allows final cleanup and | 98 // Called when the translate bubble is closed. Allows final cleanup and |
| 96 // notification of delegates. | 99 // notification of delegates. |
| 97 virtual void OnBubbleClosing() = 0; | 100 virtual void OnBubbleClosing() = 0; |
| 98 | 101 |
| 99 // Returns true if the page is translated in the currently selected source | 102 // Returns true if the page is translated in the currently selected source |
| 100 // and target language. | 103 // and target language. |
| 101 virtual bool IsPageTranslatedInCurrentLanguages() const = 0; | 104 virtual bool IsPageTranslatedInCurrentLanguages() const = 0; |
| 102 }; | 105 }; |
| 103 | 106 |
| 104 #endif // CHROME_BROWSER_UI_TRANSLATE_TRANSLATE_BUBBLE_MODEL_H_ | 107 #endif // CHROME_BROWSER_UI_TRANSLATE_TRANSLATE_BUBBLE_MODEL_H_ |
| OLD | NEW |