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/core/browser/bookmark_model.h" | 16 #include "components/bookmarks/browser/bookmark_model.h" |
17 | 17 |
18 @interface BookmarkNodeAppleScript() | 18 @interface BookmarkNodeAppleScript() |
19 @property (nonatomic, copy) NSString* tempTitle; | 19 @property (nonatomic, copy) NSString* tempTitle; |
20 @end | 20 @end |
21 | 21 |
22 @implementation BookmarkNodeAppleScript | 22 @implementation BookmarkNodeAppleScript |
23 | 23 |
24 @synthesize tempTitle = tempTitle_; | 24 @synthesize tempTitle = tempTitle_; |
25 | 25 |
26 - (id)init { | 26 - (id)init { |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 BookmarkModel* model = BookmarkModelFactory::GetForProfile(lastProfile); | 122 BookmarkModel* model = BookmarkModelFactory::GetForProfile(lastProfile); |
123 if (!model->loaded()) { | 123 if (!model->loaded()) { |
124 AppleScript::SetError(AppleScript::errBookmarkModelLoad); | 124 AppleScript::SetError(AppleScript::errBookmarkModelLoad); |
125 return NULL; | 125 return NULL; |
126 } | 126 } |
127 | 127 |
128 return model; | 128 return model; |
129 } | 129 } |
130 | 130 |
131 @end | 131 @end |
OLD | NEW |