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

Side by Side Diff: chrome/browser/ui/cocoa/passwords/passwords_bubble_controller.h

Issue 2511043002: [Mac] Omnibox icons active states (Closed)
Patch Set: Fixed Bookmark test Created 4 years, 1 month 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef CHROME_BROWSER_UI_COCOA_PASSWORDS_PASSWORDS_BUBBLE_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_PASSWORDS_PASSWORDS_BUBBLE_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_PASSWORDS_PASSWORDS_BUBBLE_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_COCOA_PASSWORDS_PASSWORDS_BUBBLE_CONTROLLER_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/mac/scoped_nsobject.h" 10 #include "base/mac/scoped_nsobject.h"
11 #import "chrome/browser/ui/cocoa/base_bubble_controller.h" 11 #import "chrome/browser/ui/cocoa/omnibox_decoration_bubble_controller.h"
12 #import "chrome/browser/ui/cocoa/passwords/base_passwords_content_view_controlle r.h" 12 #import "chrome/browser/ui/cocoa/passwords/base_passwords_content_view_controlle r.h"
13 #import "chrome/browser/ui/cocoa/passwords/pending_password_view_controller.h" 13 #import "chrome/browser/ui/cocoa/passwords/pending_password_view_controller.h"
14 #include "chrome/browser/ui/passwords/manage_passwords_bubble_model.h" 14 #include "chrome/browser/ui/passwords/manage_passwords_bubble_model.h"
15 15
16 class ManagePasswordsDecoration;
17
16 // Controller for the Cocoa manage passwords bubble. Transitions through several 18 // Controller for the Cocoa manage passwords bubble. Transitions through several
17 // views according to user interaction and updates the password management state 19 // views according to user interaction and updates the password management state
18 // accordingly. 20 // accordingly.
19 @interface ManagePasswordsBubbleController 21 @interface ManagePasswordsBubbleController
20 : BaseBubbleController<BasePasswordsContentViewDelegate> { 22 : OmniboxDecorationBubbleController<BasePasswordsContentViewDelegate> {
21 @private 23 @private
22 ManagePasswordsBubbleModel* model_; 24 ManagePasswordsBubbleModel* model_;
23 base::scoped_nsobject<BasePasswordsContentViewController> currentController_; 25 base::scoped_nsobject<BasePasswordsContentViewController> currentController_;
26
27 // The omnibox decoration the bubble is anchored to.
28 ManagePasswordsDecoration* decoration_; // weak
24 } 29 }
25 - (id)initWithParentWindow:(NSWindow*)parentWindow 30 - (id)initWithParentWindow:(NSWindow*)parentWindow
26 model:(ManagePasswordsBubbleModel*)model; 31 model:(ManagePasswordsBubbleModel*)model;
27 @end 32 @end
28 33
29 @interface ManagePasswordsBubbleController (Testing) 34 @interface ManagePasswordsBubbleController (Testing)
30 @property(readonly) NSViewController* currentController; 35 @property(readonly) NSViewController* currentController;
31 @end 36 @end
32 37
33 #endif // CHROME_BROWSER_UI_COCOA_PASSWORDS_PASSWORDS_BUBBLE_CONTROLLER_H_ 38 #endif // CHROME_BROWSER_UI_COCOA_PASSWORDS_PASSWORDS_BUBBLE_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698