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

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

Issue 1759453002: Convert location bar bubble delegates to bubble dialog delegates (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix ImmersiveFullscreenController Created 4 years, 9 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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // created. 58 // created.
59 // 59 //
60 // |is_user_gesture| is true when the bubble is shown on the user's deliberate 60 // |is_user_gesture| is true when the bubble is shown on the user's deliberate
61 // action. 61 // action.
62 static views::Widget* ShowBubble(views::View* anchor_view, 62 static views::Widget* ShowBubble(views::View* anchor_view,
63 content::WebContents* web_contents, 63 content::WebContents* web_contents,
64 translate::TranslateStep step, 64 translate::TranslateStep step,
65 translate::TranslateErrors::Type error_type, 65 translate::TranslateErrors::Type error_type,
66 DisplayReason reason); 66 DisplayReason reason);
67 67
68 // Closes the current bubble if existing. 68 // Closes the current bubble if it exists.
69 static void CloseBubble(); 69 static void CloseCurrentBubble();
70 70
71 // Returns the bubble view currently shown. This may return NULL. 71 // Returns the bubble view currently shown. This may return NULL.
72 static TranslateBubbleView* GetCurrentBubble(); 72 static TranslateBubbleView* GetCurrentBubble();
73 73
74 TranslateBubbleModel* model() { return model_.get(); } 74 TranslateBubbleModel* model() { return model_.get(); }
75 75
76 // views::BubbleDelegateView methods. 76 // views::BubbleDelegateView methods.
77 void Init() override; 77 void Init() override;
78 void ButtonPressed(views::Button* sender, const ui::Event& event) override; 78 void ButtonPressed(views::Button* sender, const ui::Event& event) override;
79 79
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 // Whether the translation is acutually executed. 214 // Whether the translation is acutually executed.
215 bool translate_executed_; 215 bool translate_executed_;
216 216
217 // Whether one of denial buttons is clicked. 217 // Whether one of denial buttons is clicked.
218 bool denial_button_clicked_; 218 bool denial_button_clicked_;
219 219
220 DISALLOW_COPY_AND_ASSIGN(TranslateBubbleView); 220 DISALLOW_COPY_AND_ASSIGN(TranslateBubbleView);
221 }; 221 };
222 222
223 #endif // CHROME_BROWSER_UI_VIEWS_TRANSLATE_TRANSLATE_BUBBLE_VIEW_H_ 223 #endif // CHROME_BROWSER_UI_VIEWS_TRANSLATE_TRANSLATE_BUBBLE_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698