| 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/cocoa/content_blocked_bubble_controller.h" | 5 #import "chrome/browser/cocoa/content_blocked_bubble_controller.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/sys_string_conversions.h" | 10 #include "base/sys_string_conversions.h" |
| 11 #include "base/utf_string_conversions.h" |
| 11 #include "chrome/browser/blocked_popup_container.h" | 12 #include "chrome/browser/blocked_popup_container.h" |
| 12 #import "chrome/browser/cocoa/content_settings_dialog_controller.h" | 13 #import "chrome/browser/cocoa/content_settings_dialog_controller.h" |
| 13 #import "chrome/browser/cocoa/hyperlink_button_cell.h" | 14 #import "chrome/browser/cocoa/hyperlink_button_cell.h" |
| 14 #import "chrome/browser/cocoa/info_bubble_view.h" | 15 #import "chrome/browser/cocoa/info_bubble_view.h" |
| 15 #import "chrome/browser/cocoa/l10n_util.h" | 16 #import "chrome/browser/cocoa/l10n_util.h" |
| 16 #include "chrome/browser/content_setting_bubble_model.h" | 17 #include "chrome/browser/content_setting_bubble_model.h" |
| 17 #include "chrome/browser/host_content_settings_map.h" | 18 #include "chrome/browser/host_content_settings_map.h" |
| 18 #include "chrome/common/chrome_switches.h" | 19 #include "chrome/common/chrome_switches.h" |
| 19 #include "grit/generated_resources.h" | 20 #include "grit/generated_resources.h" |
| 20 #include "skia/ext/skia_utils_mac.h" | 21 #include "skia/ext/skia_utils_mac.h" |
| (...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 463 DCHECK(i != popupLinks_.end()); | 464 DCHECK(i != popupLinks_.end()); |
| 464 contentSettingBubbleModel_->OnPopupClicked(i->second); | 465 contentSettingBubbleModel_->OnPopupClicked(i->second); |
| 465 } | 466 } |
| 466 | 467 |
| 467 - (void)clearGeolocationForCurrentHost:(id)sender { | 468 - (void)clearGeolocationForCurrentHost:(id)sender { |
| 468 contentSettingBubbleModel_->OnClearLinkClicked(); | 469 contentSettingBubbleModel_->OnClearLinkClicked(); |
| 469 [self close]; | 470 [self close]; |
| 470 } | 471 } |
| 471 | 472 |
| 472 @end // ContentBlockedBubbleController | 473 @end // ContentBlockedBubbleController |
| OLD | NEW |