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

Unified Diff: chrome/browser/ui/translate/translate_bubble_factory.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_factory.h
diff --git a/chrome/browser/ui/translate/translate_bubble_factory.h b/chrome/browser/ui/translate/translate_bubble_factory.h
index 1c170441b9442b305edd15c62201a2fe8edd0a19..ebde9b676442fff9379c60f68394206f482688f6 100644
--- a/chrome/browser/ui/translate/translate_bubble_factory.h
+++ b/chrome/browser/ui/translate/translate_bubble_factory.h
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_UI_TRANSLATE_TRANSLATE_BUBBLE_FACTORY_H_
#include "chrome/browser/ui/translate/translate_bubble_model.h"
+#include "chrome/common/translate/translate_errors.h"
class BrowserWindow;
@@ -22,7 +23,8 @@ class TranslateBubbleFactory {
// implementation.
static void Show(BrowserWindow* window,
content::WebContents* web_contents,
- TranslateBubbleModel::ViewState view_state);
+ TranslateBubbleModel::ViewState view_state,
+ TranslateErrors::Type error_type);
// Sets the factory to change the behavior how to show the bubble.
// TranslateBubbleFactory doesn't take the ownership of |factory|.
@@ -33,7 +35,8 @@ class TranslateBubbleFactory {
virtual void ShowImplementation(
BrowserWindow* window,
content::WebContents* web_contents,
- TranslateBubbleModel::ViewState view_state) = 0;
+ TranslateBubbleModel::ViewState view_state,
+ TranslateErrors::Type error_type) = 0;
private:
static TranslateBubbleFactory* current_factory_;
« no previous file with comments | « chrome/browser/ui/gtk/browser_window_gtk.cc ('k') | chrome/browser/ui/translate/translate_bubble_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698