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

Unified Diff: chrome/browser/ui/views/frame/browser_non_client_frame_view_mus.cc

Issue 1608843002: Start untangling the avatar switcher from BrowserNonClientFrameView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@20160119-MacViewsBrowser-Compile
Patch Set: rename, enum class Created 4 years, 11 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: chrome/browser/ui/views/frame/browser_non_client_frame_view_mus.cc
diff --git a/chrome/browser/ui/views/frame/browser_non_client_frame_view_mus.cc b/chrome/browser/ui/views/frame/browser_non_client_frame_view_mus.cc
index 191a03a512377373f533229b76f5aadfb12a427d..6b59f2f1948850074e8d7fd63f5e05f431270907 100644
--- a/chrome/browser/ui/views/frame/browser_non_client_frame_view_mus.cc
+++ b/chrome/browser/ui/views/frame/browser_non_client_frame_view_mus.cc
@@ -364,32 +364,13 @@ gfx::ImageSkia BrowserNonClientFrameViewMus::GetFaviconForTabIconView() {
return gfx::ImageSkia();
return delegate->GetWindowIcon();
}
-
-///////////////////////////////////////////////////////////////////////////////
-// views::ButtonListener:
-
-void BrowserNonClientFrameViewMus::ButtonPressed(views::Button* sender,
- const ui::Event& event) {
-#if !defined(FRAME_AVATAR_BUTTON)
- NOTREACHED();
-#else
- DCHECK(sender == new_avatar_button());
- int command = IDC_SHOW_AVATAR_MENU;
- if (event.IsMouseEvent() &&
- static_cast<const ui::MouseEvent&>(event).IsRightMouseButton()) {
- command = IDC_SHOW_FAST_USER_SWITCHER;
- }
- chrome::ExecuteCommand(browser_view()->browser(), command);
-#endif
-}
-
///////////////////////////////////////////////////////////////////////////////
// BrowserNonClientFrameViewMus, protected:
// BrowserNonClientFrameView:
void BrowserNonClientFrameViewMus::UpdateNewAvatarButtonImpl() {
#if defined(FRAME_AVATAR_BUTTON)
- UpdateNewAvatarButton(this, NewAvatarButton::NATIVE_BUTTON);
+ UpdateNewAvatarButton(AvatarButtonStyle::NATIVE);
#endif
}

Powered by Google App Engine
This is Rietveld 408576698