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

Side by Side Diff: chrome/browser/ui/translate/translate_bubble_model.h

Issue 378253002: Fix translate namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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
OLDNEW
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 23 matching lines...) Expand all
34 34
35 virtual ~TranslateBubbleModel() {} 35 virtual ~TranslateBubbleModel() {}
36 36
37 // Returns the current view state. 37 // Returns the current view state.
38 virtual ViewState GetViewState() const = 0; 38 virtual ViewState GetViewState() const = 0;
39 39
40 // Transitions the view state. 40 // Transitions the view state.
41 virtual void SetViewState(ViewState view_state) = 0; 41 virtual void SetViewState(ViewState view_state) = 0;
42 42
43 // Shows an error. 43 // Shows an error.
44 virtual void ShowError(TranslateErrors::Type error_type) = 0; 44 virtual void ShowError(translate::TranslateErrors::Type error_type) = 0;
45 45
46 // Goes back from the 'Advanced' view state. 46 // Goes back from the 'Advanced' view state.
47 virtual void GoBackFromAdvanced() = 0; 47 virtual void GoBackFromAdvanced() = 0;
48 48
49 // Returns the number of languages supported. 49 // Returns the number of languages supported.
50 virtual int GetNumberOfLanguages() const = 0; 50 virtual int GetNumberOfLanguages() const = 0;
51 51
52 // Returns the displayable name for the language at |index|. 52 // Returns the displayable name for the language at |index|.
53 virtual base::string16 GetLanguageNameAt(int index) const = 0; 53 virtual base::string16 GetLanguageNameAt(int index) const = 0;
54 54
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 // |explicitly_closed| is true if the user explicitly closed the UI, for 90 // |explicitly_closed| is true if the user explicitly closed the UI, for
91 // example, clicking 'Nope' button. 91 // example, clicking 'Nope' button.
92 virtual void TranslationDeclined(bool explicitly_closed) = 0; 92 virtual void TranslationDeclined(bool explicitly_closed) = 0;
93 93
94 // Returns true if the page is translated in the currently selected source 94 // Returns true if the page is translated in the currently selected source
95 // and target language. 95 // and target language.
96 virtual bool IsPageTranslatedInCurrentLanguages() const = 0; 96 virtual bool IsPageTranslatedInCurrentLanguages() const = 0;
97 }; 97 };
98 98
99 #endif // CHROME_BROWSER_UI_TRANSLATE_TRANSLATE_BUBBLE_MODEL_H_ 99 #endif // CHROME_BROWSER_UI_TRANSLATE_TRANSLATE_BUBBLE_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698