| 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/applescript/bookmark_node_applescript.h" | 5 #import "chrome/browser/ui/cocoa/applescript/bookmark_node_applescript.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #import "base/mac/scoped_nsobject.h" | 8 #import "base/mac/scoped_nsobject.h" |
| 9 #include "base/strings/sys_string_conversions.h" | 9 #include "base/strings/sys_string_conversions.h" |
| 10 #import "chrome/browser/app_controller_mac.h" | 10 #import "chrome/browser/app_controller_mac.h" |
| 11 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 11 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
| 12 #import "chrome/browser/chrome_browser_application_mac.h" | 12 #import "chrome/browser/chrome_browser_application_mac.h" |
| 13 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
| 14 #import "chrome/browser/ui/cocoa/applescript/bookmark_item_applescript.h" | 14 #import "chrome/browser/ui/cocoa/applescript/bookmark_item_applescript.h" |
| 15 #import "chrome/browser/ui/cocoa/applescript/error_applescript.h" | 15 #import "chrome/browser/ui/cocoa/applescript/error_applescript.h" |
| 16 #include "components/bookmarks/browser/bookmark_model.h" | 16 #include "components/bookmarks/browser/bookmark_model.h" |
| 17 | 17 |
| 18 using bookmarks::BookmarkModel; | 18 using bookmarks::BookmarkModel; |
| 19 using bookmarks::BookmarkNode; |
| 19 | 20 |
| 20 @interface BookmarkNodeAppleScript() | 21 @interface BookmarkNodeAppleScript() |
| 21 @property (nonatomic, copy) NSString* tempTitle; | 22 @property (nonatomic, copy) NSString* tempTitle; |
| 22 @end | 23 @end |
| 23 | 24 |
| 24 @implementation BookmarkNodeAppleScript | 25 @implementation BookmarkNodeAppleScript |
| 25 | 26 |
| 26 @synthesize tempTitle = tempTitle_; | 27 @synthesize tempTitle = tempTitle_; |
| 27 | 28 |
| 28 - (id)init { | 29 - (id)init { |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 BookmarkModel* model = BookmarkModelFactory::GetForProfile(lastProfile); | 125 BookmarkModel* model = BookmarkModelFactory::GetForProfile(lastProfile); |
| 125 if (!model->loaded()) { | 126 if (!model->loaded()) { |
| 126 AppleScript::SetError(AppleScript::errBookmarkModelLoad); | 127 AppleScript::SetError(AppleScript::errBookmarkModelLoad); |
| 127 return NULL; | 128 return NULL; |
| 128 } | 129 } |
| 129 | 130 |
| 130 return model; | 131 return model; |
| 131 } | 132 } |
| 132 | 133 |
| 133 @end | 134 @end |
| OLD | NEW |