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

Unified Diff: ui/views/bubble/bubble_delegate.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: ui/views/bubble/bubble_delegate.h
diff --git a/ui/views/bubble/bubble_delegate.h b/ui/views/bubble/bubble_delegate.h
index 4bc7f4a9d63199a268b2d2079ee6f5ada220a59c..15ce021f40b59e778a27ec9b324a0cc119954306 100644
--- a/ui/views/bubble/bubble_delegate.h
+++ b/ui/views/bubble/bubble_delegate.h
@@ -11,6 +11,7 @@
#include "ui/views/widget/widget.h"
#include "ui/views/widget/widget_delegate.h"
#include "ui/views/widget/widget_observer.h"
+#include "ui/views/widget/widget_observer_view.h"
namespace gfx {
class FontList;
@@ -37,6 +38,8 @@ class VIEWS_EXPORT BubbleDelegateView : public WidgetDelegateView,
};
BubbleDelegateView();
+ BubbleDelegateView(WidgetObserverView* anchor_view,
varkha 2016/01/28 00:11:10 msw@, pkasting@, did you have in mind something li
+ BubbleBorder::Arrow arrow);
BubbleDelegateView(View* anchor_view, BubbleBorder::Arrow arrow);
~BubbleDelegateView() override;
@@ -173,6 +176,10 @@ class VIEWS_EXPORT BubbleDelegateView : public WidgetDelegateView,
const int anchor_view_storage_id_;
Widget* anchor_widget_;
+ // True if anchor_view_storage_id_ refers to a View that implements
+ // WidgetObserver;
+ bool anchor_view_has_widget_observer_;
+
// The anchor rect used in the absence of an anchor view.
mutable gfx::Rect anchor_rect_;

Powered by Google App Engine
This is Rietveld 408576698