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

Unified Diff: chrome/browser/ui/translate/translate_bubble_model.h

Issue 87503004: Pass the Translate error type to the bubble (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: (rebasing) Created 7 years 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/translate/translate_bubble_model.h
diff --git a/chrome/browser/ui/translate/translate_bubble_model.h b/chrome/browser/ui/translate/translate_bubble_model.h
index fdf5b3a1d66914c05585d4834fc2fd7fec35be38..6b89dffeef3697f0023d6c5692705e5f489384a9 100644
--- a/chrome/browser/ui/translate/translate_bubble_model.h
+++ b/chrome/browser/ui/translate/translate_bubble_model.h
@@ -8,6 +8,7 @@
#include <string>
#include "base/strings/string16.h"
+#include "chrome/common/translate/translate_errors.h"
// The model for the Translate bubble UX. This manages the user's manipulation
// of the bubble and offers the data to show on the bubble.
@@ -39,6 +40,12 @@ class TranslateBubbleModel {
// Transitions the view state.
virtual void SetViewState(ViewState view_state) = 0;
+ // Returns the error type.
+ virtual TranslateErrors::Type GetErrorType() const = 0;
+
+ // Sets the error type.
+ virtual void SetErrorType(TranslateErrors::Type error_type) = 0;
+
// Goes back from the 'Advanced' view state.
virtual void GoBackFromAdvanced() = 0;
« no previous file with comments | « chrome/browser/ui/translate/translate_bubble_factory.cc ('k') | chrome/browser/ui/translate/translate_bubble_model_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698