| OLD | NEW | 
|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "base/mac/bundle_locations.h" | 5 #import "base/mac/bundle_locations.h" | 
| 6 #include "base/strings/sys_string_conversions.h" | 6 #include "base/strings/sys_string_conversions.h" | 
| 7 #import "chrome/browser/ui/cocoa/extensions/device_permissions_dialog_controller
    .h" | 7 #import "chrome/browser/ui/cocoa/extensions/device_permissions_dialog_controller
    .h" | 
| 8 #import "chrome/browser/ui/cocoa/extensions/device_permissions_view_controller.h
    " | 8 #import "chrome/browser/ui/cocoa/extensions/device_permissions_view_controller.h
    " | 
| 9 #include "chrome/grit/generated_resources.h" | 9 #include "chrome/grit/generated_resources.h" | 
| 10 #include "grit/components_strings.h" | 10 #include "components/strings/grit/components_strings.h" | 
| 11 #import "ui/base/l10n/l10n_util_mac.h" | 11 #import "ui/base/l10n/l10n_util_mac.h" | 
| 12 | 12 | 
| 13 using extensions::DevicePermissionsPrompt; | 13 using extensions::DevicePermissionsPrompt; | 
| 14 | 14 | 
| 15 @implementation DevicePermissionsViewController | 15 @implementation DevicePermissionsViewController | 
| 16 | 16 | 
| 17 - (id)initWithController:(DevicePermissionsDialogController*)controller | 17 - (id)initWithController:(DevicePermissionsDialogController*)controller | 
| 18                   prompt: | 18                   prompt: | 
| 19                       (scoped_refptr<DevicePermissionsPrompt::Prompt>)prompt { | 19                       (scoped_refptr<DevicePermissionsPrompt::Prompt>)prompt { | 
| 20   if ((self = [super initWithNibName:@"DevicePermissionsPrompt" | 20   if ((self = [super initWithNibName:@"DevicePermissionsPrompt" | 
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 76     NOTREACHED(); | 76     NOTREACHED(); | 
| 77     return @""; | 77     return @""; | 
| 78   } | 78   } | 
| 79 } | 79 } | 
| 80 | 80 | 
| 81 - (void)tableViewSelectionDidChange:(NSNotification*)aNotification { | 81 - (void)tableViewSelectionDidChange:(NSNotification*)aNotification { | 
| 82   [okButton_ setEnabled:[tableView_ numberOfSelectedRows] > 0]; | 82   [okButton_ setEnabled:[tableView_ numberOfSelectedRows] > 0]; | 
| 83 } | 83 } | 
| 84 | 84 | 
| 85 @end | 85 @end | 
| OLD | NEW | 
|---|