| Index: chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_cocoa.h
|
| diff --git a/chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_cocoa.h b/chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_cocoa.h
|
| index 03edd4f7794e25df5964f9a7a8789a7c45e28f71..68f885a8a657eea766eebd99b3d24f253e09ed94 100644
|
| --- a/chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_cocoa.h
|
| +++ b/chrome/browser/ui/cocoa/passwords/manage_passwords_bubble_cocoa.h
|
| @@ -16,6 +16,7 @@ class WebContents;
|
|
|
| @class ManagePasswordsBubbleController;
|
| @class ManagePasswordsBubbleCocoaNotificationBridge;
|
| +class ManagePasswordsIcon;
|
|
|
| // Cocoa implementation of the platform-independent password bubble interface.
|
| class ManagePasswordsBubbleCocoa : public ManagePasswordsBubble {
|
| @@ -23,7 +24,8 @@ class ManagePasswordsBubbleCocoa : public ManagePasswordsBubble {
|
| // Creates and shows the bubble, which owns itself. Does nothing if the bubble
|
| // is already shown.
|
| static void ShowBubble(content::WebContents* webContents,
|
| - DisplayReason displayReason);
|
| + DisplayReason displayReason,
|
| + ManagePasswordsIcon* icon);
|
|
|
| // Closes and deletes the bubble.
|
| void Close();
|
| @@ -33,16 +35,21 @@ class ManagePasswordsBubbleCocoa : public ManagePasswordsBubble {
|
|
|
| private:
|
| friend class ManagePasswordsBubbleCocoaTest;
|
| + friend class ManagePasswordsBubbleTest;
|
|
|
| // Instance-specific logic. Clients should use the static interface.
|
| ManagePasswordsBubbleCocoa(content::WebContents* webContents,
|
| - DisplayReason displayReason);
|
| + DisplayReason displayReason,
|
| + ManagePasswordsIcon* icon);
|
| virtual ~ManagePasswordsBubbleCocoa();
|
| void Show();
|
|
|
| // Cleans up state and deletes itself. Called when the bubble is closed.
|
| void OnClose();
|
|
|
| + // The location bar icon corresponding to the bubble.
|
| + ManagePasswordsIcon* icon_;
|
| +
|
| // Whether there is currently a close operation taking place. Prevents
|
| // multiple attempts to close the window.
|
| bool closing_;
|
|
|