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

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

Issue 2723743002: [Mac] Remove unnecessary subclasses in bookmark bar (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « chrome/browser/ui/cocoa/bookmarks/bookmark_bar_view_cocoa.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_bar_view_cocoa.h" 5 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_view_cocoa.h"
6 6
7 #include "chrome/browser/profiles/profile.h" 7 #include "chrome/browser/profiles/profile.h"
8 #import "chrome/browser/themes/theme_properties.h" 8 #import "chrome/browser/themes/theme_properties.h"
9 #import "chrome/browser/themes/theme_service.h" 9 #import "chrome/browser/themes/theme_service.h"
10 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h" 10 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 themeProvider->GetNSColor(ThemeProperties::COLOR_BOOKMARK_TEXT); 106 themeProvider->GetNSColor(ThemeProperties::COLOR_BOOKMARK_TEXT);
107 [noItemTextfield_ setTextColor:color]; 107 [noItemTextfield_ setTextColor:color];
108 } 108 }
109 109
110 // Mouse down events on the bookmark bar should not allow dragging the parent 110 // Mouse down events on the bookmark bar should not allow dragging the parent
111 // window around. 111 // window around.
112 - (BOOL)mouseDownCanMoveWindow { 112 - (BOOL)mouseDownCanMoveWindow {
113 return NO; 113 return NO;
114 } 114 }
115 115
116 - (BookmarkBarTextField*)noItemTextfield { 116 - (NSTextField*)noItemTextfield {
117 return noItemTextfield_; 117 return noItemTextfield_;
118 } 118 }
119 119
120 - (NSButton*)importBookmarksButton { 120 - (NSButton*)importBookmarksButton {
121 return importBookmarksButton_; 121 return importBookmarksButton_;
122 } 122 }
123 123
124 - (BookmarkBarController*)controller { 124 - (BookmarkBarController*)controller {
125 return controller_; 125 return controller_;
126 } 126 }
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 283
284 - (void)setController:(id)controller { 284 - (void)setController:(id)controller {
285 controller_ = controller; 285 controller_ = controller;
286 } 286 }
287 287
288 - (ViewID)viewID { 288 - (ViewID)viewID {
289 return VIEW_ID_BOOKMARK_BAR; 289 return VIEW_ID_BOOKMARK_BAR;
290 } 290 }
291 291
292 @end // @implementation BookmarkBarView 292 @end // @implementation BookmarkBarView
293
294 @implementation BookmarkBarTextField
295
296 - (NSMenu*)menu {
297 return [barView_ menu];
298 }
299
300 @end // @implementation BookmarkBarTextField
301
302 @implementation BookmarkBarItemContainer
303
304 - (NSMenu*)menu {
305 return [barView_ menu];
306 }
307
308 @end // @implementation BookmarkBarItemContainer
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/bookmarks/bookmark_bar_view_cocoa.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698