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

Side by Side Diff: chrome/browser/ui/views/avatar_menu_button.cc

Issue 7003080: Change profile menu button to avatar button (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Change profile menu button to avatar button Created 9 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/views/avatar_menu_button.h" 5 #include "chrome/browser/ui/views/avatar_menu_button.h"
6 6
7 #include "ui/gfx/canvas_skia.h" 7 #include "ui/gfx/canvas_skia.h"
8 #include "views/controls/menu/menu_model_adapter.h" 8 #include "views/controls/menu/menu_model_adapter.h"
9 #include "views/window/window.h" 9 #include "views/window/window.h"
10 10
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 views::MenuModelAdapter menu_model_adapter(menu_model_.get()); 62 views::MenuModelAdapter menu_model_adapter(menu_model_.get());
63 views::MenuItemView menu(&menu_model_adapter); 63 views::MenuItemView menu(&menu_model_adapter);
64 menu_model_adapter.BuildMenu(&menu); 64 menu_model_adapter.BuildMenu(&menu);
65 65
66 gfx::Point menu_point(pt.x(), pt.y() + kMenuDisplayOffset); 66 gfx::Point menu_point(pt.x(), pt.y() + kMenuDisplayOffset);
67 menu.RunMenuAt(source->GetWindow()->GetNativeWindow(), NULL, 67 menu.RunMenuAt(source->GetWindow()->GetNativeWindow(), NULL,
68 gfx::Rect(pt, gfx::Size(0, 0)), 68 gfx::Rect(pt, gfx::Size(0, 0)),
69 views::MenuItemView::TOPRIGHT, 69 views::MenuItemView::TOPRIGHT,
70 true); 70 true);
71 } 71 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/avatar_menu_button.h ('k') | chrome/browser/ui/views/frame/browser_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698