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

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

Issue 422673002: Move BookmarkNodeData into bookmarks namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix mac Created 6 years, 5 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) 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_bar_controller.h" 5 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_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/metrics/histogram.h" 9 #include "base/metrics/histogram.h"
10 #include "base/prefs/pref_service.h" 10 #include "base/prefs/pref_service.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 #include "extensions/common/extension_set.h" 58 #include "extensions/common/extension_set.h"
59 #include "grit/generated_resources.h" 59 #include "grit/generated_resources.h"
60 #include "grit/theme_resources.h" 60 #include "grit/theme_resources.h"
61 #include "grit/ui_resources.h" 61 #include "grit/ui_resources.h"
62 #import "ui/base/cocoa/cocoa_base_utils.h" 62 #import "ui/base/cocoa/cocoa_base_utils.h"
63 #include "ui/base/l10n/l10n_util_mac.h" 63 #include "ui/base/l10n/l10n_util_mac.h"
64 #include "ui/base/resource/resource_bundle.h" 64 #include "ui/base/resource/resource_bundle.h"
65 #include "ui/gfx/image/image.h" 65 #include "ui/gfx/image/image.h"
66 66
67 using base::UserMetricsAction; 67 using base::UserMetricsAction;
68 using bookmarks::BookmarkNodeData;
68 using content::OpenURLParams; 69 using content::OpenURLParams;
69 using content::Referrer; 70 using content::Referrer;
70 using content::WebContents; 71 using content::WebContents;
71 72
72 // Bookmark bar state changing and animations 73 // Bookmark bar state changing and animations
73 // 74 //
74 // The bookmark bar has three real states: "showing" (a normal bar attached to 75 // The bookmark bar has three real states: "showing" (a normal bar attached to
75 // the toolbar), "hidden", and "detached" (pretending to be part of the web 76 // the toolbar), "hidden", and "detached" (pretending to be part of the web
76 // content on the NTP). It can, or at least should be able to, animate between 77 // content on the NTP). It can, or at least should be able to, animate between
77 // these states. There are several complications even without animation: 78 // these states. There are several complications even without animation:
(...skipping 2718 matching lines...) Expand 10 before | Expand all | Expand 10 after
2796 - (id<BookmarkButtonControllerProtocol>)controllerForNode: 2797 - (id<BookmarkButtonControllerProtocol>)controllerForNode:
2797 (const BookmarkNode*)node { 2798 (const BookmarkNode*)node {
2798 // See if it's in the bar, then if it is in the hierarchy of visible 2799 // See if it's in the bar, then if it is in the hierarchy of visible
2799 // folder menus. 2800 // folder menus.
2800 if (bookmarkModel_->bookmark_bar_node() == node) 2801 if (bookmarkModel_->bookmark_bar_node() == node)
2801 return self; 2802 return self;
2802 return [folderController_ controllerForNode:node]; 2803 return [folderController_ controllerForNode:node];
2803 } 2804 }
2804 2805
2805 @end 2806 @end
OLDNEW
« no previous file with comments | « chrome/browser/ui/bookmarks/bookmark_tab_helper.h ('k') | chrome/browser/ui/cocoa/bookmarks/bookmark_bar_folder_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698