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

Side by Side Diff: chrome/browser/ui/cocoa/autofill/autofill_overlay_controller.h

Issue 82933002: [rAc OSX] Simplify the overlay controller. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_AUTOFILL_AUTOFILL_OVERLAY_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_OVERLAY_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_OVERLAY_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_OVERLAY_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 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #import "chrome/browser/ui/cocoa/autofill/autofill_layout.h" 12 #import "chrome/browser/ui/cocoa/autofill/autofill_layout.h"
13 13
14 namespace autofill { 14 namespace autofill {
15 class AutofillDialogViewDelegate; 15 class AutofillDialogViewDelegate;
16 struct DialogOverlayState; 16 struct DialogOverlayState;
17 } // autofill 17 } // autofill
18 18
19 @class AutofillMessageView; 19 @class AutofillMessageView;
20 20
21 @interface AutofillOverlayController : NSViewController<AutofillLayout> { 21 @interface AutofillOverlayController : NSViewController<AutofillLayout> {
22 @private 22 @private
23 // |childView_| contains all overlay UI elements. This is used to fade out
24 // UI elements first, before making the main view transparent to fade out the
25 // overlay shield.
26 base::scoped_nsobject<NSView> childView_;
groby-ooo-7-16 2013/11/22 14:24:03 All that pain, for naught... Since we're not doin
27 base::scoped_nsobject<NSImageView> imageView_; 23 base::scoped_nsobject<NSImageView> imageView_;
28 base::scoped_nsobject<AutofillMessageView> messageView_; 24 base::scoped_nsobject<AutofillMessageView> messageView_;
29 25
30 autofill::AutofillDialogViewDelegate* delegate_; // not owned, owns dialog. 26 autofill::AutofillDialogViewDelegate* delegate_; // not owned, owns dialog.
31 } 27 }
32 28
33 // Designated initializer. 29 // Designated initializer.
34 - (id)initWithDelegate:(autofill::AutofillDialogViewDelegate*)delegate; 30 - (id)initWithDelegate:(autofill::AutofillDialogViewDelegate*)delegate;
35 31
36 // Updates the state from the dialog controller. 32 // Updates the state from the dialog controller.
37 - (void)updateState; 33 - (void)updateState;
38 34
39 // Get the preferred view height for a given width. 35 // Get the preferred view height for a given width.
40 - (CGFloat)heightForWidth:(int)width; 36 - (CGFloat)heightForWidth:(int)width;
41 37
42 @end 38 @end
43 39
44 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_OVERLAY_CONTROLLER_H_ 40 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_OVERLAY_CONTROLLER_H_
45
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698