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

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

Issue 1931043002: Remove requestAutocomplete (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 7 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 unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_NOTIFICATION_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_NOTIFICATION_CONTROLLER_H_
7
8 #import <Cocoa/Cocoa.h>
9
10 #include "base/mac/scoped_nsobject.h"
11 #include "chrome/browser/ui/autofill/autofill_dialog_types.h"
12 #import "chrome/browser/ui/cocoa/autofill/autofill_layout.h"
13 #include "url/gurl.h"
14
15 @class AutofillTooltipController;
16 @class HyperlinkTextView;
17
18 namespace autofill {
19 class AutofillDialogViewDelegate;
20 }
21
22 // Contains a single notification for requestAutocomplete dialog.
23 @interface AutofillNotificationController :
24 NSViewController<AutofillLayout, NSTextViewDelegate> {
25 @private
26 // Text view for label.
27 base::scoped_nsobject<HyperlinkTextView> textview_;
28
29 // Optional tooltip icon.
30 base::scoped_nsobject<AutofillTooltipController> tooltipController_;
31
32 // Optional link target.
33 GURL linkURL_;
34
35 // Notification type.
36 autofill::DialogNotification::Type notificationType_;
37
38 // Main delegate for the dialog. Weak, owns dialog.
39 autofill::AutofillDialogViewDelegate* delegate_;
40 }
41
42 @property(nonatomic, readonly) NSTextView* textview;
43 @property(nonatomic, readonly) NSView* tooltipView;
44
45 // Designated initializer. Initializes the controller as specified by
46 // |notification|.
47 - (id)initWithNotification:(const autofill::DialogNotification*)notification
48 delegate:(autofill::AutofillDialogViewDelegate*)delegate;
49
50 // Compute preferred size for given width.
51 - (NSSize)preferredSizeForWidth:(CGFloat)width;
52
53 @end
54
55 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_NOTIFICATION_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698