| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_editor_controller.h" | 5 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_editor_controller.h" |
| 6 | 6 |
| 7 #include "base/prefs/pref_service.h" | |
| 8 #include "base/strings/string16.h" | 7 #include "base/strings/string16.h" |
| 9 #include "base/strings/sys_string_conversions.h" | 8 #include "base/strings/sys_string_conversions.h" |
| 10 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
| 11 #include "chrome/browser/ui/bookmarks/bookmark_utils.h" | 10 #include "chrome/browser/ui/bookmarks/bookmark_utils.h" |
| 12 #include "components/bookmarks/browser/bookmark_expanded_state_tracker.h" | 11 #include "components/bookmarks/browser/bookmark_expanded_state_tracker.h" |
| 13 #include "components/bookmarks/browser/bookmark_model.h" | 12 #include "components/bookmarks/browser/bookmark_model.h" |
| 13 #include "components/prefs/pref_service.h" |
| 14 #include "components/url_formatter/url_fixer.h" | 14 #include "components/url_formatter/url_fixer.h" |
| 15 #include "components/user_prefs/user_prefs.h" | 15 #include "components/user_prefs/user_prefs.h" |
| 16 | 16 |
| 17 using bookmarks::BookmarkExpandedStateTracker; | 17 using bookmarks::BookmarkExpandedStateTracker; |
| 18 using bookmarks::BookmarkModel; | 18 using bookmarks::BookmarkModel; |
| 19 using bookmarks::BookmarkNode; | 19 using bookmarks::BookmarkNode; |
| 20 | 20 |
| 21 @interface BookmarkEditorController (Private) | 21 @interface BookmarkEditorController (Private) |
| 22 | 22 |
| 23 // Grab the url from the text field and convert. | 23 // Grab the url from the text field and convert. |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 159 SetExpandedNodes(expanded_nodes); | 159 SetExpandedNodes(expanded_nodes); |
| 160 return [NSNumber numberWithBool:YES]; | 160 return [NSNumber numberWithBool:YES]; |
| 161 } | 161 } |
| 162 | 162 |
| 163 - (NSColor *)urlFieldColor { | 163 - (NSColor *)urlFieldColor { |
| 164 return [urlField_ backgroundColor]; | 164 return [urlField_ backgroundColor]; |
| 165 } | 165 } |
| 166 | 166 |
| 167 @end // BookmarkEditorController | 167 @end // BookmarkEditorController |
| 168 | 168 |
| OLD | NEW |