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

Side by Side Diff: chrome/browser/ui/views/translate/translate_bubble_view.h

Issue 420713003: Translate: Don't show 'Translated' bubble when the user dismisses the bubble (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_VIEWS_TRANSLATE_TRANSLATE_BUBBLE_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_TRANSLATE_TRANSLATE_BUBBLE_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_TRANSLATE_TRANSLATE_BUBBLE_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_TRANSLATE_TRANSLATE_BUBBLE_VIEW_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 27 matching lines...) Expand all
38 public views::ComboboxListener, 38 public views::ComboboxListener,
39 public views::LinkListener, 39 public views::LinkListener,
40 public content::WebContentsObserver { 40 public content::WebContentsObserver {
41 public: 41 public:
42 virtual ~TranslateBubbleView(); 42 virtual ~TranslateBubbleView();
43 43
44 // Shows the Translate bubble. 44 // Shows the Translate bubble.
45 static void ShowBubble(views::View* anchor_view, 45 static void ShowBubble(views::View* anchor_view,
46 content::WebContents* web_contents, 46 content::WebContents* web_contents,
47 translate::TranslateStep step, 47 translate::TranslateStep step,
48 TranslateErrors::Type error_type); 48 TranslateErrors::Type error_type,
49 bool is_explicit);
49 50
50 // If true, the Translate bubble is being shown. 51 // If true, the Translate bubble is being shown.
51 static bool IsShowing(); 52 static bool IsShowing();
52 53
53 // Returns the bubble view currently shown. This may return NULL. 54 // Returns the bubble view currently shown. This may return NULL.
54 static TranslateBubbleView* GetCurrentBubble(); 55 static TranslateBubbleView* GetCurrentBubble();
55 56
56 TranslateBubbleModel* model() { return model_.get(); } 57 TranslateBubbleModel* model() { return model_.get(); }
57 58
58 // views::BubbleDelegateView methods. 59 // views::BubbleDelegateView methods.
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 // Whether the translation is acutually executed. 197 // Whether the translation is acutually executed.
197 bool translate_executed_; 198 bool translate_executed_;
198 199
199 // Whether one of denial buttons is clicked. 200 // Whether one of denial buttons is clicked.
200 bool denial_button_clicked_; 201 bool denial_button_clicked_;
201 202
202 DISALLOW_COPY_AND_ASSIGN(TranslateBubbleView); 203 DISALLOW_COPY_AND_ASSIGN(TranslateBubbleView);
203 }; 204 };
204 205
205 #endif // CHROME_BROWSER_UI_VIEWS_TRANSLATE_TRANSLATE_BUBBLE_VIEW_H_ 206 #endif // CHROME_BROWSER_UI_VIEWS_TRANSLATE_TRANSLATE_BUBBLE_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698