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/bookmarks/bookmark_name_folder_controller.h" | 5 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_name_folder_controller.h" |
6 | 6 |
7 #include "base/mac/bundle_locations.h" | 7 #include "base/mac/bundle_locations.h" |
8 #include "base/mac/mac_util.h" | 8 #include "base/mac/mac_util.h" |
9 #include "base/strings/sys_string_conversions.h" | 9 #include "base/strings/sys_string_conversions.h" |
10 #include "chrome/browser/bookmarks/bookmark_model_factory.h" | 10 #include "chrome/browser/bookmarks/bookmark_model_factory.h" |
11 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
12 #include "chrome/browser/ui/cocoa/bookmarks/bookmark_model_observer_for_cocoa.h" | 12 #include "chrome/browser/ui/cocoa/bookmarks/bookmark_model_observer_for_cocoa.h" |
13 #include "grit/generated_resources.h" | 13 #include "chrome/grit/generated_resources.h" |
14 #include "ui/base/l10n/l10n_util.h" | 14 #include "ui/base/l10n/l10n_util.h" |
15 #include "ui/base/l10n/l10n_util_mac.h" | 15 #include "ui/base/l10n/l10n_util_mac.h" |
16 | 16 |
17 @implementation BookmarkNameFolderController | 17 @implementation BookmarkNameFolderController |
18 | 18 |
19 // Common initializer (private). | 19 // Common initializer (private). |
20 - (id)initWithParentWindow:(NSWindow*)window | 20 - (id)initWithParentWindow:(NSWindow*)window |
21 profile:(Profile*)profile | 21 profile:(Profile*)profile |
22 node:(const BookmarkNode*)node | 22 node:(const BookmarkNode*)node |
23 parent:(const BookmarkNode*)parent | 23 parent:(const BookmarkNode*)parent |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
124 | 124 |
125 - (void)setFolderName:(NSString*)name { | 125 - (void)setFolderName:(NSString*)name { |
126 [nameField_ setStringValue:name]; | 126 [nameField_ setStringValue:name]; |
127 } | 127 } |
128 | 128 |
129 - (NSButton*)okButton { | 129 - (NSButton*)okButton { |
130 return okButton_; | 130 return okButton_; |
131 } | 131 } |
132 | 132 |
133 @end // BookmarkNameFolderController | 133 @end // BookmarkNameFolderController |
OLD | NEW |