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/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 #include "base/sys_string_conversions.h" | 8 #include "base/sys_string_conversions.h" |
9 #import "base/scoped_nsobject.h" | 9 #import "base/scoped_nsobject.h" |
10 #import "chrome/browser/app_controller_mac.h" | 10 #import "chrome/browser/app_controller_mac.h" |
11 #include "chrome/browser/bookmarks/bookmark_model.h" | 11 #include "chrome/browser/bookmarks/bookmark_model.h" |
12 #import "chrome/browser/chrome_browser_application_mac.h" | 12 #import "chrome/browser/chrome_browser_application_mac.h" |
13 #include "chrome/browser/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 | 16 |
17 @interface BookmarkNodeAppleScript() | 17 @interface BookmarkNodeAppleScript() |
18 @property (nonatomic, copy) NSString* tempTitle; | 18 @property (nonatomic, copy) NSString* tempTitle; |
19 @end | 19 @end |
20 | 20 |
21 @implementation BookmarkNodeAppleScript | 21 @implementation BookmarkNodeAppleScript |
22 | 22 |
23 @synthesize tempTitle = tempTitle_; | 23 @synthesize tempTitle = tempTitle_; |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
121 BookmarkModel* model = defaultProfile->GetBookmarkModel(); | 121 BookmarkModel* model = defaultProfile->GetBookmarkModel(); |
122 if (!model->IsLoaded()) { | 122 if (!model->IsLoaded()) { |
123 AppleScript::SetError(AppleScript::errBookmarkModelLoad); | 123 AppleScript::SetError(AppleScript::errBookmarkModelLoad); |
124 return NULL; | 124 return NULL; |
125 } | 125 } |
126 | 126 |
127 return model; | 127 return model; |
128 } | 128 } |
129 | 129 |
130 @end | 130 @end |
OLD | NEW |