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

Side by Side Diff: chrome/browser/ui/translate/translate_bubble_factory.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 (3) Created 7 years, 1 month 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_TRANSLATE_TRANSLATE_BUBBLE_FACTORY_H_
6 #define CHROME_BROWSER_UI_TRANSLATE_TRANSLATE_BUBBLE_FACTORY_H_
7
8 #include "chrome/browser/ui/translate/translate_bubble_model.h"
9
10 class BrowserWindow;
11
12 namespace content {
13 class WebContents;
14 }
15
16 // Factory to show the Translate bubble.
17 class TranslateBubbleFactory {
18 public:
19 virtual ~TranslateBubbleFactory();
20
21 // Shows the translate bubble. The behavior depends on the current factory's
22 // implementation.
23 static void Show(BrowserWindow* window,
24 content::WebContents* web_contents,
25 TranslateBubbleModel::ViewState view_state);
26
27 // Sets the factory to change the behavior how to show the bubble.
28 static void SetFactory(TranslateBubbleFactory* factory);
29
30 protected:
31 // Shows the translate bubble.
32 virtual void ShowImplementation(
33 BrowserWindow* window,
34 content::WebContents* web_contents,
35 TranslateBubbleModel::ViewState view_state) = 0;
36
37 private:
38 static TranslateBubbleFactory* current_factory_;
39 };
40
41 #endif // CHROME_BROWSER_UI_TRANSLATE_TRANSLATE_BUBBLE_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698