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

Unified Diff: chrome/browser/ui/cocoa/autofill/autofill_suggestion_container.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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/autofill/autofill_suggestion_container.h
diff --git a/chrome/browser/ui/cocoa/autofill/autofill_suggestion_container.h b/chrome/browser/ui/cocoa/autofill/autofill_suggestion_container.h
deleted file mode 100644
index 0d964a178c190a5e4b8a836c63527a8ace6a35a2..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/cocoa/autofill/autofill_suggestion_container.h
+++ /dev/null
@@ -1,56 +0,0 @@
-// Copyright 2013 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_AUTOFILL_AUTOFILL_SUGGESTION_CONTAINER_H_
-#define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_SUGGESTION_CONTAINER_H_
-
-#import <Cocoa/Cocoa.h>
-
-#include "base/mac/scoped_nsobject.h"
-#import "chrome/browser/ui/cocoa/autofill/autofill_layout.h"
-
-namespace autofill {
- class AutofillDialogViewDelegate;
-}
-
-@class AutofillTextField;
-
-// Container for the data suggested for a particular input section.
-@interface AutofillSuggestionContainer : NSViewController<AutofillLayout> {
- @private
- // The spacer at the top of the suggestion.
- base::scoped_nsobject<NSBox> spacer_;
-
- // The label that holds the suggestion description text.
- base::scoped_nsobject<NSTextView> label_;
-
- // The input set by ShowTextfield.
- base::scoped_nsobject<AutofillTextField> inputField_;
-
- autofill::AutofillDialogViewDelegate* delegate_; // Not owned.
-}
-
-// Auxiliary textfield. See showInputField: for details.
-@property (readonly, nonatomic) AutofillTextField* inputField;
-
-// Set the main suggestion text and the corresponding |icon|. The text is set to
-// |verticallyCompactText| if that can fit without wrapping. Otherwise, the text
-// is set to |horizontallyCompactText|, with possibly additional wrapping
-// imposed by the dialog's size constraints.
-// NOTE: The implementation assumes that all other elements' sizes are already
-// known. Hence, -showInputField:withIcon: should be called prior to calling
-// this method, if it is going to be called at all.
-- (void)
- setSuggestionWithVerticallyCompactText:(NSString*)verticallyCompactText
- horizontallyCompactText:(NSString*)horizontallyCompactText
- icon:(NSImage*)icon
- maxWidth:(CGFloat)maxWidth;
-
-// Shows an auxiliary textfield to the right of the suggestion icon and
-// text. This is currently only used to show a CVC field for the CC section.
-- (void)showInputField:(NSString*)text withIcon:(NSImage*)icon;
-
-@end
-
-#endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_SUGGESTION_CONTAINER_H_

Powered by Google App Engine
This is Rietveld 408576698