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

Unified Diff: ui/views/bubble/bubble_delegate.h

Issue 10937008: Position apps list on Windows near the cursor. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: removed xml file accidentally added Created 8 years, 3 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
« no previous file with comments | « ui/app_list/app_list_view.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/bubble/bubble_delegate.h
diff --git a/ui/views/bubble/bubble_delegate.h b/ui/views/bubble/bubble_delegate.h
index dd29da79bdfce68f26f1b407353a6a101a587dd8..83dd1ea2aa8a0df30de30cdda752043dac511bbd 100644
--- a/ui/views/bubble/bubble_delegate.h
+++ b/ui/views/bubble/bubble_delegate.h
@@ -62,6 +62,9 @@ class VIEWS_EXPORT BubbleDelegateView : public WidgetDelegateView,
View* anchor_view() const { return anchor_view_; }
Widget* anchor_widget() const { return anchor_widget_; }
+ // The anchor point is used in the absence of an anchor view.
+ const gfx::Point& anchor_point() const { return anchor_point_; }
+
BubbleBorder::ArrowLocation arrow_location() const { return arrow_location_; }
void set_arrow_location(BubbleBorder::ArrowLocation arrow_location) {
arrow_location_ = arrow_location;
@@ -127,8 +130,8 @@ class VIEWS_EXPORT BubbleDelegateView : public WidgetDelegateView,
// calling CreateBubble or Show.
void set_anchor_view(View* anchor_view) { anchor_view_ = anchor_view; }
- // Sets the anchor point used in the absence of an anchor view. This
- // (or set_anchor_view) must be set before calling CreateBubble or Show.
+ // The anchor point or anchor view must be set before calling CreateBubble or
+ // Show.
void set_anchor_point(gfx::Point anchor_point) {
anchor_point_ = anchor_point;
}
« no previous file with comments | « ui/app_list/app_list_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698