Chromium Code Reviews| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 77 virtual void SetAlwaysTranslate(bool value) = 0; | 77 virtual void SetAlwaysTranslate(bool value) = 0; |
| 78 | 78 |
| 79 // Starts translating the current page. | 79 // Starts translating the current page. |
| 80 virtual void Translate() = 0; | 80 virtual void Translate() = 0; |
| 81 | 81 |
| 82 // Reverts translation. | 82 // Reverts translation. |
| 83 virtual void RevertTranslation() = 0; | 83 virtual void RevertTranslation() = 0; |
| 84 | 84 |
| 85 // Processes when the user declines translation. | 85 // Processes when the user declines translation. |
| 86 virtual void TranslationDeclined() = 0; | 86 virtual void TranslationDeclined() = 0; |
| 87 | |
| 88 // Returns true if the page is translated in the current language pair. | |
| 89 virtual bool IsPageTranslatedInCurrentPair() const = 0; | |
|
sky
2013/12/02 21:43:58
'pair'? No where do you talk about what 'pair' mea
hajimehoshi
2013/12/03 03:26:06
Sure, I avoided to use the word 'pair'.
| |
| 87 }; | 90 }; |
| 88 | 91 |
| 89 #endif // CHROME_BROWSER_UI_TRANSLATE_TRANSLATE_BUBBLE_MODEL_H_ | 92 #endif // CHROME_BROWSER_UI_TRANSLATE_TRANSLATE_BUBBLE_MODEL_H_ |
| OLD | NEW |