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

Unified Diff: views/bubble/bubble_delegate.h

Issue 8368016: Rebase BookmarkBubble on the new views bubble. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Only SelectAll on the title textfield when the buble is first shown. Created 9 years, 1 month 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
« no previous file with comments | « ui/aura_shell/examples/window_type_launcher.cc ('k') | views/bubble/bubble_delegate.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/bubble/bubble_delegate.h
diff --git a/views/bubble/bubble_delegate.h b/views/bubble/bubble_delegate.h
index 13da32f1dabaf718cc2a7a7ba6d77afe40521309..be02e44824c78f872f042c5e34de1f2338955e29 100644
--- a/views/bubble/bubble_delegate.h
+++ b/views/bubble/bubble_delegate.h
@@ -29,14 +29,13 @@ class VIEWS_EXPORT BubbleDelegateView : public WidgetDelegateView,
public Widget::Observer {
public:
BubbleDelegateView();
- BubbleDelegateView(const gfx::Point& anchor_point,
+ BubbleDelegateView(View* anchor_view,
BubbleBorder::ArrowLocation arrow_location,
const SkColor& color);
virtual ~BubbleDelegateView();
// Create and initialize the bubble Widget(s) with proper bounds.
- static Widget* CreateBubble(BubbleDelegateView* bubble_delegate,
- Widget* parent_widget);
+ static Widget* CreateBubble(BubbleDelegateView* bubble_delegate);
// WidgetDelegate overrides:
virtual View* GetInitiallyFocusedView() OVERRIDE;
@@ -60,6 +59,8 @@ class VIEWS_EXPORT BubbleDelegateView : public WidgetDelegateView,
allow_bubble_offscreen_ = allow_bubble_offscreen;
}
+ View* anchor_view() const { return anchor_view_; }
+
bool use_focusless() const { return use_focusless_; }
void set_use_focusless(bool use_focusless) {
use_focusless_ = use_focusless;
@@ -124,8 +125,8 @@ class VIEWS_EXPORT BubbleDelegateView : public WidgetDelegateView,
// re-positioning should be performed.
bool allow_bubble_offscreen_;
- // The screen point where this bubble's arrow is anchored.
- gfx::Point anchor_point_;
+ // The view hosting this bubble; the arrow is anchored to this view.
+ View* anchor_view_;
// The arrow's location on the bubble.
BubbleBorder::ArrowLocation arrow_location_;
« no previous file with comments | « ui/aura_shell/examples/window_type_launcher.cc ('k') | views/bubble/bubble_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698