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

Unified Diff: ui/app_list/app_list_view.cc

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.h ('k') | ui/views/bubble/bubble_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/app_list/app_list_view.cc
diff --git a/ui/app_list/app_list_view.cc b/ui/app_list/app_list_view.cc
index 0cbd42b15bcf71abec24943130d7315614c55b95..0ee3a8fc8e34385df9fc547e8e280b5de5ff622c 100644
--- a/ui/app_list/app_list_view.cc
+++ b/ui/app_list/app_list_view.cc
@@ -108,6 +108,11 @@ void AppListView::SetBubbleArrowLocation(
SizeToContents(); // Recalcuates with new border.
}
+void AppListView::SetAnchorPoint(const gfx::Point& anchor_point) {
+ set_anchor_point(anchor_point);
+ SizeToContents(); // Repositions view relative to the anchor.
+}
+
void AppListView::Close() {
if (delegate_.get())
delegate_->Close();
« no previous file with comments | « ui/app_list/app_list_view.h ('k') | ui/views/bubble/bubble_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698