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

Unified Diff: chrome/browser/ui/cocoa/browser/avatar_button.h

Issue 8172011: [Mac] Properly show and hide the avatar button for the one-profile case. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test Created 9 years, 2 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 | « no previous file | chrome/browser/ui/cocoa/browser/avatar_button.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/browser/avatar_button.h
diff --git a/chrome/browser/ui/cocoa/browser/avatar_button.h b/chrome/browser/ui/cocoa/browser/avatar_button.h
deleted file mode 100644
index dd9dfa8458c6d332b8e3b49c3df49f0c5107ee0d..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/cocoa/browser/avatar_button.h
+++ /dev/null
@@ -1,47 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_BROWSER_UI_COCOA_BROWSER_AVATAR_BUTTON_H_
-#define CHROME_BROWSER_UI_COCOA_BROWSER_AVATAR_BUTTON_H_
-#pragma once
-
-#import <AppKit/AppKit.h>
-
-#include "base/memory/scoped_nsobject.h"
-#include "base/memory/scoped_ptr.h"
-
-class Browser;
-
-namespace AvatarButtonInternal {
-class Observer;
-}
-
-// The AvatarButton sits in the top of the window frame when using multi-
-// profiles. It shows the current profile's avatar, or, when in Incognito, the
-// spy dude. With multi-profiles, clicking will open the profile menu; in
-// Incognito, clicking will do nothing.
-@interface AvatarButton : NSView {
- @private
- Browser* browser_;
-
- // The button child view of this view.
- scoped_nsobject<NSButton> button_;
-
- // Notification bridge for profile info updates.
- scoped_ptr<AvatarButtonInternal::Observer> observer_;
-}
-
-// Designated initializer.
-- (id)initWithBrowser:(Browser*)browser;
-
-// Whether or not to open the menu when clicked.
-- (void)setOpenMenuOnClick:(BOOL)flag;
-
-// Sets the image to be used as the avatar. This will have a drop shadow applied
-// and will be resized to the frame of the button.
-- (void)setImage:(NSImage*)image;
-
-@end
-
-#endif // CHROME_BROWSER_UI_COCOA_BROWSER_AVATAR_BUTTON_H_
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/browser/avatar_button.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698