| 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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 131 nibPath = @"ContentBlockedPopups"; break; | 131 nibPath = @"ContentBlockedPopups"; break; |
| 132 case CONTENT_SETTINGS_TYPE_GEOLOCATION: | 132 case CONTENT_SETTINGS_TYPE_GEOLOCATION: |
| 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 // These content types have no bubble: | 138 // These content types have no bubble: |
| 139 case CONTENT_SETTINGS_TYPE_DEFAULT: | 139 case CONTENT_SETTINGS_TYPE_DEFAULT: |
| 140 case CONTENT_SETTINGS_TYPE_NOTIFICATIONS: | 140 case CONTENT_SETTINGS_TYPE_NOTIFICATIONS: |
| 141 case CONTENT_SETTINGS_TYPE_INTENTS: | |
| 142 case CONTENT_SETTINGS_TYPE_AUTO_SELECT_CERTIFICATE: | 141 case CONTENT_SETTINGS_TYPE_AUTO_SELECT_CERTIFICATE: |
| 143 case CONTENT_SETTINGS_TYPE_FULLSCREEN: | 142 case CONTENT_SETTINGS_TYPE_FULLSCREEN: |
| 144 case CONTENT_SETTINGS_TYPE_MOUSELOCK: | 143 case CONTENT_SETTINGS_TYPE_MOUSELOCK: |
| 145 case CONTENT_SETTINGS_TYPE_MEDIASTREAM: | 144 case CONTENT_SETTINGS_TYPE_MEDIASTREAM: |
| 146 case CONTENT_SETTINGS_TYPE_MEDIASTREAM_MIC: | 145 case CONTENT_SETTINGS_TYPE_MEDIASTREAM_MIC: |
| 147 case CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA: | 146 case CONTENT_SETTINGS_TYPE_MEDIASTREAM_CAMERA: |
| 148 case CONTENT_SETTINGS_TYPE_PPAPI_BROKER: | 147 case CONTENT_SETTINGS_TYPE_PPAPI_BROKER: |
| 149 case CONTENT_SETTINGS_NUM_TYPES: | 148 case CONTENT_SETTINGS_NUM_TYPES: |
| 150 NOTREACHED(); | 149 NOTREACHED(); |
| 151 } | 150 } |
| (...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 493 - (IBAction)manageBlocking:(id)sender { | 492 - (IBAction)manageBlocking:(id)sender { |
| 494 contentSettingBubbleModel_->OnManageLinkClicked(); | 493 contentSettingBubbleModel_->OnManageLinkClicked(); |
| 495 } | 494 } |
| 496 | 495 |
| 497 - (IBAction)closeBubble:(id)sender { | 496 - (IBAction)closeBubble:(id)sender { |
| 498 contentSettingBubbleModel_->OnDoneClicked(); | 497 contentSettingBubbleModel_->OnDoneClicked(); |
| 499 [self close]; | 498 [self close]; |
| 500 } | 499 } |
| 501 | 500 |
| 502 @end // ContentSettingBubbleController | 501 @end // ContentSettingBubbleController |
| OLD | NEW |