| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #import "chrome/browser/autofill/autofill_dialog_controller_mac.h" | 5 #import "chrome/browser/autofill/autofill_dialog_controller_mac.h" |
| 6 #include "app/l10n_util.h" | 6 #include "app/l10n_util.h" |
| 7 #include "app/resource_bundle.h" | 7 #include "app/resource_bundle.h" |
| 8 #include "base/mac_util.h" | 8 #include "base/mac_util.h" |
| 9 #include "base/sys_string_conversions.h" | 9 #include "base/sys_string_conversions.h" |
| 10 #include "chrome/browser/browser.h" | 10 #include "chrome/browser/browser.h" |
| 11 #include "chrome/browser/browser_list.h" | 11 #include "chrome/browser/browser_list.h" |
| 12 #import "chrome/browser/autofill/autofill_address_model_mac.h" | 12 #import "chrome/browser/autofill/autofill_address_model_mac.h" |
| 13 #import "chrome/browser/autofill/autofill_address_sheet_controller_mac.h" | 13 #import "chrome/browser/autofill/autofill_address_sheet_controller_mac.h" |
| 14 #import "chrome/browser/autofill/autofill_credit_card_model_mac.h" | 14 #import "chrome/browser/autofill/autofill_credit_card_model_mac.h" |
| 15 #import "chrome/browser/autofill/autofill_credit_card_sheet_controller_mac.h" | 15 #import "chrome/browser/autofill/autofill_credit_card_sheet_controller_mac.h" |
| 16 #import "chrome/browser/autofill/personal_data_manager.h" | 16 #import "chrome/browser/autofill/personal_data_manager.h" |
| 17 #include "chrome/browser/browser_process.h" | 17 #include "chrome/browser/browser_process.h" |
| 18 #import "chrome/browser/cocoa/window_size_autosaver.h" | 18 #import "chrome/browser/cocoa/window_size_autosaver.h" |
| 19 #include "chrome/browser/pref_service.h" | 19 #include "chrome/browser/pref_service.h" |
| 20 #include "chrome/browser/profile.h" | 20 #include "chrome/browser/profile.h" |
| 21 #include "chrome/common/pref_names.h" | 21 #include "chrome/common/pref_names.h" |
| 22 #include "grit/generated_resources.h" | 22 #include "grit/generated_resources.h" |
| 23 #include "grit/app_resources.h" | 23 #include "grit/app_resources.h" |
| 24 #include "grit/theme_resources.h" |
| 24 | 25 |
| 25 // Delegate protocol that needs to be in place for the AutoFillTableView's | 26 // Delegate protocol that needs to be in place for the AutoFillTableView's |
| 26 // handling of delete and backspace keys. | 27 // handling of delete and backspace keys. |
| 27 @protocol DeleteKeyDelegate | 28 @protocol DeleteKeyDelegate |
| 28 - (IBAction)deleteSelection:(id)sender; | 29 - (IBAction)deleteSelection:(id)sender; |
| 29 @end | 30 @end |
| 30 | 31 |
| 31 // A subclass of NSTableView that allows for deleting selected elements using | 32 // A subclass of NSTableView that allows for deleting selected elements using |
| 32 // the delete or backspace keys. | 33 // the delete or backspace keys. |
| 33 @interface AutoFillTableView : NSTableView { | 34 @interface AutoFillTableView : NSTableView { |
| (...skipping 771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 805 if (!image) { | 806 if (!image) { |
| 806 image = rb.GetNSImageNamed(IDR_INPUT_GOOD); | 807 image = rb.GetNSImageNamed(IDR_INPUT_GOOD); |
| 807 DCHECK(image); | 808 DCHECK(image); |
| 808 return image; | 809 return image; |
| 809 } | 810 } |
| 810 | 811 |
| 811 return nil; | 812 return nil; |
| 812 } | 813 } |
| 813 | 814 |
| 814 @end | 815 @end |
| OLD | NEW |