| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/ui/cocoa/content_settings/content_setting_bubble_cocoa.h
" | 5 #import "chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa.h
" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/sys_string_conversions.h" | 9 #include "base/sys_string_conversions.h" |
| 10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 nibPath = @"ContentBlockedGeolocation"; break; | 133 nibPath = @"ContentBlockedGeolocation"; break; |
| 134 case CONTENT_SETTINGS_TYPE_MIXEDSCRIPT: | 134 case CONTENT_SETTINGS_TYPE_MIXEDSCRIPT: |
| 135 nibPath = @"ContentBlockedMixedScript"; break; | 135 nibPath = @"ContentBlockedMixedScript"; break; |
| 136 case CONTENT_SETTINGS_TYPE_PROTOCOL_HANDLERS: | 136 case CONTENT_SETTINGS_TYPE_PROTOCOL_HANDLERS: |
| 137 nibPath = @"ContentProtocolHandlers"; break; | 137 nibPath = @"ContentProtocolHandlers"; break; |
| 138 case CONTENT_SETTINGS_TYPE_MEDIASTREAM: | 138 case CONTENT_SETTINGS_TYPE_MEDIASTREAM: |
| 139 nibPath = @"ContentBlockedMedia"; break; | 139 nibPath = @"ContentBlockedMedia"; break; |
| 140 // These content types have no bubble: | 140 // These content types have no bubble: |
| 141 case CONTENT_SETTINGS_TYPE_DEFAULT: | 141 case CONTENT_SETTINGS_TYPE_DEFAULT: |
| 142 case CONTENT_SETTINGS_TYPE_NOTIFICATIONS: | 142 case CONTENT_SETTINGS_TYPE_NOTIFICATIONS: |
| 143 case CONTENT_SETTINGS_TYPE_INTENTS: | |
| 144 case CONTENT_SETTINGS_TYPE_AUTO_SELECT_CERTIFICATE: | 143 case CONTENT_SETTINGS_TYPE_AUTO_SELECT_CERTIFICATE: |
| 145 case CONTENT_SETTINGS_TYPE_FULLSCREEN: | 144 case CONTENT_SETTINGS_TYPE_FULLSCREEN: |
| 146 case CONTENT_SETTINGS_TYPE_MOUSELOCK: | 145 case CONTENT_SETTINGS_TYPE_MOUSELOCK: |
| 147 case CONTENT_SETTINGS_TYPE_MEDIASTREAM_MIC: | 146 case CONTENT_SETTINGS_TYPE_MEDIASTREAM_MIC: |
| 148 case CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA: | 147 case CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA: |
| 149 case CONTENT_SETTINGS_NUM_TYPES: | 148 case CONTENT_SETTINGS_NUM_TYPES: |
| 150 NOTREACHED(); | 149 NOTREACHED(); |
| 151 } | 150 } |
| 152 if ((self = [super initWithWindowNibPath:nibPath | 151 if ((self = [super initWithWindowNibPath:nibPath |
| 153 parentWindow:parentWindow | 152 parentWindow:parentWindow |
| (...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 498 - (IBAction)manageBlocking:(id)sender { | 497 - (IBAction)manageBlocking:(id)sender { |
| 499 contentSettingBubbleModel_->OnManageLinkClicked(); | 498 contentSettingBubbleModel_->OnManageLinkClicked(); |
| 500 } | 499 } |
| 501 | 500 |
| 502 - (IBAction)closeBubble:(id)sender { | 501 - (IBAction)closeBubble:(id)sender { |
| 503 contentSettingBubbleModel_->OnDoneClicked(); | 502 contentSettingBubbleModel_->OnDoneClicked(); |
| 504 [self close]; | 503 [self close]; |
| 505 } | 504 } |
| 506 | 505 |
| 507 @end // ContentSettingBubbleController | 506 @end // ContentSettingBubbleController |
| OLD | NEW |