| 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/ui/cocoa/cookies_window_controller.h" | 5 #import "chrome/browser/ui/cocoa/cookies_window_controller.h" |
| 6 | 6 |
| 7 #include <queue> | 7 #include <queue> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "app/l10n_util_mac.h" | 10 #include "app/l10n_util_mac.h" |
| 11 #include "app/resource_bundle.h" | 11 #include "app/resource_bundle.h" |
| 12 #import "base/mac_util.h" | 12 #import "base/mac_util.h" |
| 13 #include "base/sys_string_conversions.h" | 13 #include "base/sys_string_conversions.h" |
| 14 #include "chrome/browser/browsing_data_remover.h" | 14 #include "chrome/browser/browsing_data_remover.h" |
| 15 #include "chrome/browser/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
| 16 #include "chrome/browser/ui/cocoa/clear_browsing_data_controller.h" | 16 #include "chrome/browser/ui/cocoa/clear_browsing_data_controller.h" |
| 17 #include "chrome/browser/ui/cocoa/cookie_details_view_controller.h" | 17 #include "chrome/browser/ui/cocoa/cookie_details_view_controller.h" |
| 18 #include "grit/generated_resources.h" | 18 #include "grit/generated_resources.h" |
| 19 #include "grit/theme_resources.h" | 19 #include "grit/theme_resources.h" |
| 20 #include "skia/ext/skia_utils_mac.h" | 20 #include "skia/ext/skia_utils_mac.h" |
| 21 #include "third_party/apple/ImageAndTextCell.h" | 21 #include "third_party/apple/ImageAndTextCell.h" |
| 22 #include "third_party/skia/include/core/SkBitmap.h" | 22 #include "third_party/skia/include/core/SkBitmap.h" |
| 23 | 23 |
| 24 // Key path used for notifying KVO. | 24 // Key path used for notifying KVO. |
| 25 static NSString* const kCocoaTreeModel = @"cocoaTreeModel"; | 25 static NSString* const kCocoaTreeModel = @"cocoaTreeModel"; |
| (...skipping 413 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 439 [icons_ addObject:rb.GetNativeImageNamed(IDR_BOOKMARK_BAR_FOLDER)]; | 439 [icons_ addObject:rb.GetNativeImageNamed(IDR_BOOKMARK_BAR_FOLDER)]; |
| 440 | 440 |
| 441 // Create the Cocoa model. | 441 // Create the Cocoa model. |
| 442 CookieTreeNode* root = static_cast<CookieTreeNode*>(treeModel_->GetRoot()); | 442 CookieTreeNode* root = static_cast<CookieTreeNode*>(treeModel_->GetRoot()); |
| 443 scoped_nsobject<CocoaCookieTreeNode> model( | 443 scoped_nsobject<CocoaCookieTreeNode> model( |
| 444 [[CocoaCookieTreeNode alloc] initWithNode:root]); | 444 [[CocoaCookieTreeNode alloc] initWithNode:root]); |
| 445 [self setCocoaTreeModel:model.get()]; // Takes ownership. | 445 [self setCocoaTreeModel:model.get()]; // Takes ownership. |
| 446 } | 446 } |
| 447 | 447 |
| 448 @end | 448 @end |
| OLD | NEW |