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

Unified Diff: chrome/browser/autofill/autofill_credit_card_sheet_controller_mac.h

Issue 6621076: [Mac] Remove native/Cocoa preferences. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase switch removal Created 9 years, 9 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/autofill/autofill_credit_card_sheet_controller_mac.h
diff --git a/chrome/browser/autofill/autofill_credit_card_sheet_controller_mac.h b/chrome/browser/autofill/autofill_credit_card_sheet_controller_mac.h
deleted file mode 100644
index 3015c9b4df60cf87a7f9d67e4b738ce552bb4991..0000000000000000000000000000000000000000
--- a/chrome/browser/autofill/autofill_credit_card_sheet_controller_mac.h
+++ /dev/null
@@ -1,79 +0,0 @@
-// Copyright (c) 2010 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_AUTOFILL_AUTOFILL_CREDIT_CARD_SHEET_CONTROLLER_MAC_
-#define CHROME_BROWSER_AUTOFILL_AUTOFILL_CREDIT_CARD_SHEET_CONTROLLER_MAC_
-#pragma once
-
-#import <Cocoa/Cocoa.h>
-#include <vector>
-
-@class AutoFillCreditCardModel;
-@class AutoFillDialogController;
-class CreditCard;
-
-// The sheet can be invoked in "Add" or "Edit" mode. This dictates the caption
-// seen at the top of the sheet.
-enum {
- kAutoFillCreditCardAddMode = 0,
- kAutoFillCreditCardEditMode = 1
-};
-typedef NSInteger AutoFillCreditCardMode;
-
-// A class that coordinates the |creditCardModel| and the associated view
-// held in AutoFillCreditCardSheet.xib.
-// |initWithCreditCard:| is the designated initializer. It takes |creditCard|
-// and transcribes it to |creditCardModel| to which the view is bound.
-@interface AutoFillCreditCardSheetController : NSWindowController {
- @private
- IBOutlet NSPopUpButton* expirationMonthPopup_;
- IBOutlet NSPopUpButton* expirationYearPopup_;
-
- // The caption at top of dialog. Text changes according to usage. Either
- // "New credit card" or "Edit credit card" depending on context.
- IBOutlet NSTextField* caption_;
-
- // The credit card number field. This is here for unit testing purposes.
- // The text of this field is obfuscated until edited.
- IBOutlet NSTextField* creditCardNumberField_;
-
- // The primary model for this controller. The model is instantiated
- // from within |initWithCreditCard:|. We do not hold it as a scoped_nsobject
- // because it is exposed as a KVO compliant property.
- AutoFillCreditCardModel* creditCardModel_;
-
- // Contents of the expiration month and year popups. Strongly owned. We do
- // not hold them as scoped_nsobjects because they are exposed as KVO compliant
- // properties.
- NSArray* expirationMonthContents_;
- NSArray* expirationYearContents_;
-
- // Either "Add" or "Edit" mode of sheet.
- AutoFillCreditCardMode mode_;
-}
-
-@property(nonatomic, retain) AutoFillCreditCardModel* creditCardModel;
-@property(nonatomic, retain) NSArray* expirationMonthContents;
-@property(nonatomic, retain) NSArray* expirationYearContents;
-
-// Designated initializer. Takes a copy of the data in |creditCard|,
-// it is not held as a reference.
-- (id)initWithCreditCard:(const CreditCard&)creditCard
- mode:(AutoFillCreditCardMode)mode;
-
-// IBActions for save and cancel buttons. Both invoke |endSheet:|.
-- (IBAction)save:(id)sender;
-- (IBAction)cancel:(id)sender;
-
-// Copy data from internal model to |creditCard|.
-- (void)copyModelToCreditCard:(CreditCard*)creditCard;
-
-@end
-
-// Interface exposed for unit testing.
-@interface AutoFillCreditCardSheetController (ExposedForUnitTests)
-- (NSTextField*)creditCardNumberField;
-@end
-
-#endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_CREDIT_CARD_SHEET_CONTROLLER_MAC_

Powered by Google App Engine
This is Rietveld 408576698