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

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 (with WidgetObserver) 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..ee87f6197f9103200d3af9e94e6e1c5edea93a36 100644
--- a/chrome/browser/ui/views/translate/translate_bubble_view.h
+++ b/chrome/browser/ui/views/translate/translate_bubble_view.h
@@ -20,6 +20,7 @@
#include "ui/views/controls/button/button.h"
#include "ui/views/controls/combobox/combobox_listener.h"
#include "ui/views/controls/link_listener.h"
+#include "ui/views/widget/widget_observer_view.h"
class Browser;
class PrefService;
@@ -57,7 +58,7 @@ class TranslateBubbleView : public LocationBarBubbleDelegateView,
//
// |is_user_gesture| is true when the bubble is shown on the user's delibarate
// action.
- static void ShowBubble(views::View* anchor_view,
+ static void ShowBubble(views::WidgetObserverView* anchor_view,
content::WebContents* web_contents,
translate::TranslateStep step,
translate::TranslateErrors::Type error_type,
@@ -134,7 +135,7 @@ class TranslateBubbleView : public LocationBarBubbleDelegateView,
CancelButtonReturningAfterTranslate);
FRIEND_TEST_ALL_PREFIXES(TranslateBubbleViewTest, CancelButtonReturningError);
- TranslateBubbleView(views::View* anchor_view,
+ TranslateBubbleView(views::WidgetObserverView* anchor_view,
scoped_ptr<TranslateBubbleModel> model,
translate::TranslateErrors::Type error_type,
content::WebContents* web_contents);

Powered by Google App Engine
This is Rietveld 408576698