Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(104)

Side by Side Diff: chrome/browser/ui/cocoa/bookmarks/bookmark_editor_controller.mm

Issue 335453004: Move BookmarkExpandedStateTracker into bookmarks namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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" 7 #include "base/prefs/pref_service.h"
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "base/strings/sys_string_conversions.h" 9 #include "base/strings/sys_string_conversions.h"
10 #include "chrome/browser/profiles/profile.h" 10 #include "chrome/browser/profiles/profile.h"
11 #include "chrome/browser/ui/bookmarks/bookmark_utils.h" 11 #include "chrome/browser/ui/bookmarks/bookmark_utils.h"
12 #include "components/bookmarks/browser/bookmark_expanded_state_tracker.h" 12 #include "components/bookmarks/browser/bookmark_expanded_state_tracker.h"
13 #include "components/bookmarks/browser/bookmark_model.h" 13 #include "components/bookmarks/browser/bookmark_model.h"
14 #include "components/url_fixer/url_fixer.h" 14 #include "components/url_fixer/url_fixer.h"
15 #include "components/user_prefs/user_prefs.h" 15 #include "components/user_prefs/user_prefs.h"
16 #include "ui/base/l10n/l10n_util.h" 16 #include "ui/base/l10n/l10n_util.h"
17 17
18 using bookmarks::BookmarkExpandedStateTracker;
19
18 @interface BookmarkEditorController (Private) 20 @interface BookmarkEditorController (Private)
19 21
20 // Grab the url from the text field and convert. 22 // Grab the url from the text field and convert.
21 - (GURL)GURLFromUrlField; 23 - (GURL)GURLFromUrlField;
22 24
23 @end 25 @end
24 26
25 @implementation BookmarkEditorController 27 @implementation BookmarkEditorController
26 28
27 @synthesize displayURL = displayURL_; 29 @synthesize displayURL = displayURL_;
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 SetExpandedNodes(expanded_nodes); 164 SetExpandedNodes(expanded_nodes);
163 return [NSNumber numberWithBool:YES]; 165 return [NSNumber numberWithBool:YES];
164 } 166 }
165 167
166 - (NSColor *)urlFieldColor { 168 - (NSColor *)urlFieldColor {
167 return [urlField_ backgroundColor]; 169 return [urlField_ backgroundColor];
168 } 170 }
169 171
170 @end // BookmarkEditorController 172 @end // BookmarkEditorController
171 173
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698