OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this |
2 // source code is governed by a BSD-style license that can be found in the | 2 // source code is governed by a BSD-style license that can be found in the |
3 // LICENSE file. | 3 // LICENSE file. |
4 | 4 |
5 #import "chrome/browser/cocoa/blocked_popup_container_controller.h" | 5 #import "chrome/browser/cocoa/blocked_popup_container_controller.h" |
6 | 6 |
7 #include "app/l10n_util_mac.h" | 7 #include "app/l10n_util_mac.h" |
| 8 #include "base/nsimage_cache_mac.h" |
8 #include "base/sys_string_conversions.h" | 9 #include "base/sys_string_conversions.h" |
9 #import "chrome/browser/cocoa/bubble_view.h" | 10 #import "chrome/browser/cocoa/bubble_view.h" |
10 #include "chrome/browser/cocoa/nsimage_cache.h" | |
11 #include "chrome/browser/tab_contents/tab_contents.h" | 11 #include "chrome/browser/tab_contents/tab_contents.h" |
12 #include "chrome/browser/tab_contents/tab_contents_view.h" | 12 #include "chrome/browser/tab_contents/tab_contents_view.h" |
13 #include "grit/generated_resources.h" | 13 #include "grit/generated_resources.h" |
14 | 14 |
15 // A C++ bridge class that manages the interaction between the C++ interface | 15 // A C++ bridge class that manages the interaction between the C++ interface |
16 // and the Objective-C view controller that implements the popup blocker. | 16 // and the Objective-C view controller that implements the popup blocker. |
17 class BlockedPopupContainerViewBridge : public BlockedPopupContainerView { | 17 class BlockedPopupContainerViewBridge : public BlockedPopupContainerView { |
18 public: | 18 public: |
19 BlockedPopupContainerViewBridge(BlockedPopupContainerController* controller); | 19 BlockedPopupContainerViewBridge(BlockedPopupContainerController* controller); |
20 virtual ~BlockedPopupContainerViewBridge(); | 20 virtual ~BlockedPopupContainerViewBridge(); |
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 [controller_ update]; | 400 [controller_ update]; |
401 } | 401 } |
402 | 402 |
403 void BlockedPopupContainerViewBridge::HideView() { | 403 void BlockedPopupContainerViewBridge::HideView() { |
404 [controller_ hide]; | 404 [controller_ hide]; |
405 } | 405 } |
406 | 406 |
407 void BlockedPopupContainerViewBridge::Destroy() { | 407 void BlockedPopupContainerViewBridge::Destroy() { |
408 [controller_ autorelease]; | 408 [controller_ autorelease]; |
409 } | 409 } |
OLD | NEW |