| 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();
|
|
|