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

Unified Diff: ui/app_list/views/app_list_view.h

Issue 23622020: Fixing the dynamic positioning (move with anchor) for the app launcher (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed Created 7 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
Index: ui/app_list/views/app_list_view.h
diff --git a/ui/app_list/views/app_list_view.h b/ui/app_list/views/app_list_view.h
index 53d08a40dd7c08bea30d3111270834603f8f859c..a6c7def8a500208d8be02bcadd65af981353d64c 100644
--- a/ui/app_list/views/app_list_view.h
+++ b/ui/app_list/views/app_list_view.h
@@ -39,13 +39,22 @@ class APP_LIST_EXPORT AppListView : public views::BubbleDelegateView,
explicit AppListView(AppListViewDelegate* delegate);
virtual ~AppListView();
- // Initializes the widget.
- void InitAsBubble(gfx::NativeView parent,
- PaginationModel* pagination_model,
- views::View* anchor,
- const gfx::Point& anchor_point,
- views::BubbleBorder::Arrow arrow,
- bool border_accepts_events);
+ // Initializes the widget and use a given |anchor| plus an |anchor_offset| for
+ // positioning.
+ void InitAsBubbleAttachedToAnchor(gfx::NativeView parent,
+ PaginationModel* pagination_model,
+ views::View* anchor,
+ const gfx::Point& anchor_offset,
+ views::BubbleBorder::Arrow arrow,
+ bool border_accepts_events);
+
+ // Initializes the widget and use a fixed |anchor_point_in_screen| for
+ // positioning.
+ void InitAsBubbleAtFixedLocation(gfx::NativeView parent,
+ PaginationModel* pagination_model,
+ const gfx::Point& anchor_point_in_screen,
+ views::BubbleBorder::Arrow arrow,
+ bool border_accepts_events);
void SetBubbleArrow(views::BubbleBorder::Arrow arrow);
@@ -89,6 +98,11 @@ class APP_LIST_EXPORT AppListView : public views::BubbleDelegateView,
#endif
private:
+ void InitAsBubbleInternal(gfx::NativeView parent,
+ PaginationModel* pagination_model,
+ views::BubbleBorder::Arrow arrow,
+ bool border_accepts_events);
+
// Overridden from views::WidgetDelegateView:
virtual views::View* GetInitiallyFocusedView() OVERRIDE;
virtual gfx::ImageSkia GetWindowIcon() OVERRIDE;

Powered by Google App Engine
This is Rietveld 408576698