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

Unified Diff: chrome/browser/translate/translate_bubble_showable.h

Issue 25373009: Translate: New Bubble UX (for the view toolkit) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sky's review (2) Created 7 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/translate/translate_bubble_showable.h
diff --git a/chrome/browser/translate/translate_bubble_showable.h b/chrome/browser/translate/translate_bubble_showable.h
new file mode 100644
index 0000000000000000000000000000000000000000..268a6aaaf4567f5038ce59682303c21f1d97373c
--- /dev/null
+++ b/chrome/browser/translate/translate_bubble_showable.h
@@ -0,0 +1,24 @@
+// Copyright 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_TRANSLATE_TRANSLATE_BUBBLE_SHOWABLE_H_
+#define CHROME_BROWSER_TRANSLATE_TRANSLATE_BUBBLE_SHOWABLE_H_
+
+#include "chrome/browser/ui/translate/translate_bubble_model.h"
+
+namespace content {
+class WebContents;
+}
+
+// The interface to show the translate bubble.
+class TranslateBubbleShowable {
+ public:
+ virtual ~TranslateBubbleShowable() {}
+
+ // Shows the Translate bubble.
+ virtual void Show(content::WebContents* web_contents,
sky 2013/10/22 16:09:22 How about putting this in browser_dialogs and nami
sky 2013/10/22 16:16:00 Also, you could keep the Show method in browser_di
hajimehoshi 2013/10/23 10:45:09 Done. Showing the bubble via BrowserWindow is alre
+ TranslateBubbleModel::ViewState view_state) = 0;
+};
+
+#endif // CHROME_BROWSER_TRANSLATE_TRANSLATE_BUBBLE_SHOWABLE_H_

Powered by Google App Engine
This is Rietveld 408576698