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

Unified 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, 11 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/ui/views/translate/translate_bubble_view.h
diff --git a/chrome/browser/ui/views/translate/translate_bubble_view.h b/chrome/browser/ui/views/translate/translate_bubble_view.h
index c4bf9ea4ed8e4eca1e5bf82c64ce8f802a23ce13..7981edd5da6e20c92db9489b8a6ad98232d5d34c 100644
--- a/chrome/browser/ui/views/translate/translate_bubble_view.h
+++ b/chrome/browser/ui/views/translate/translate_bubble_view.h
@@ -53,15 +53,17 @@ class TranslateBubbleView : public LocationBarBubbleDelegateView,
~TranslateBubbleView() override;
- // Shows the Translate bubble.
+ // Shows the Translate bubble. Returns the newly created bubble's Widget or
+ // nullptr in cases when the bubble already exists or when the bubble is not
+ // created.
//
- // |is_user_gesture| is true when the bubble is shown on the user's delibarate
+ // |is_user_gesture| is true when the bubble is shown on the user's deliberate
// action.
- static void ShowBubble(views::View* anchor_view,
- content::WebContents* web_contents,
- translate::TranslateStep step,
- translate::TranslateErrors::Type error_type,
- DisplayReason reason);
+ static views::Widget* ShowBubble(views::View* anchor_view,
+ content::WebContents* web_contents,
+ translate::TranslateStep step,
+ translate::TranslateErrors::Type error_type,
+ DisplayReason reason);
// Closes the current bubble if existing.
static void CloseBubble();
« 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