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

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

Issue 1518543002: Adds MD ink ripple animations to buttons within location bar (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adds MD ink ripple animations to buttons within location bar (missing member init) Created 4 years, 10 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 // position in the combobox menu. Gaps will become separators. 46 // position in the combobox menu. Gaps will become separators.
47 enum class DenialComboboxIndex { 47 enum class DenialComboboxIndex {
48 DONT_TRANSLATE = 0, 48 DONT_TRANSLATE = 0,
49 NEVER_TRANSLATE_LANGUAGE = 1, 49 NEVER_TRANSLATE_LANGUAGE = 1,
50 NEVER_TRANSLATE_SITE = 3, 50 NEVER_TRANSLATE_SITE = 3,
51 MENU_SIZE = 4, 51 MENU_SIZE = 4,
52 }; 52 };
53 53
54 ~TranslateBubbleView() override; 54 ~TranslateBubbleView() override;
55 55
56 // Shows the Translate bubble. 56 // Shows the Translate bubble. Returns the newly created bubble's Widget or
57 // nullptr in cases when the bubble already exists or when the bubble is not
58 // created.
57 // 59 //
58 // |is_user_gesture| is true when the bubble is shown on the user's delibarate 60 // |is_user_gesture| is true when the bubble is shown on the user's deliberate
59 // action. 61 // action.
60 static void ShowBubble(views::View* anchor_view, 62 static views::Widget* ShowBubble(views::View* anchor_view,
61 content::WebContents* web_contents, 63 content::WebContents* web_contents,
62 translate::TranslateStep step, 64 translate::TranslateStep step,
63 translate::TranslateErrors::Type error_type, 65 translate::TranslateErrors::Type error_type,
64 DisplayReason reason); 66 DisplayReason reason);
65 67
66 // Closes the current bubble if existing. 68 // Closes the current bubble if existing.
67 static void CloseBubble(); 69 static void CloseBubble();
68 70
69 // Returns the bubble view currently shown. This may return NULL. 71 // Returns the bubble view currently shown. This may return NULL.
70 static TranslateBubbleView* GetCurrentBubble(); 72 static TranslateBubbleView* GetCurrentBubble();
71 73
72 TranslateBubbleModel* model() { return model_.get(); } 74 TranslateBubbleModel* model() { return model_.get(); }
73 75
74 // views::BubbleDelegateView methods. 76 // views::BubbleDelegateView methods.
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 // Whether the translation is acutually executed. 214 // Whether the translation is acutually executed.
213 bool translate_executed_; 215 bool translate_executed_;
214 216
215 // Whether one of denial buttons is clicked. 217 // Whether one of denial buttons is clicked.
216 bool denial_button_clicked_; 218 bool denial_button_clicked_;
217 219
218 DISALLOW_COPY_AND_ASSIGN(TranslateBubbleView); 220 DISALLOW_COPY_AND_ASSIGN(TranslateBubbleView);
219 }; 221 };
220 222
221 #endif // CHROME_BROWSER_UI_VIEWS_TRANSLATE_TRANSLATE_BUBBLE_VIEW_H_ 223 #endif // CHROME_BROWSER_UI_VIEWS_TRANSLATE_TRANSLATE_BUBBLE_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/toolbar/toolbar_view.cc ('k') | chrome/browser/ui/views/translate/translate_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698