Chromium Code Reviews| 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_bar_view.h" | 5 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_view.h" |
| 6 | 6 |
| 7 #include "chrome/browser/bookmarks/bookmark_pasteboard_helper_mac.h" | 7 #include "chrome/browser/bookmarks/bookmark_pasteboard_helper_mac.h" |
| 8 #include "chrome/browser/profiles/profile.h" | 8 #include "chrome/browser/profiles/profile.h" |
| 9 #import "chrome/browser/themes/theme_properties.h" | 9 #import "chrome/browser/themes/theme_properties.h" |
| 10 #import "chrome/browser/themes/theme_service.h" | 10 #import "chrome/browser/themes/theme_service.h" |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 95 // Mouse down events on the bookmark bar should not allow dragging the parent | 95 // Mouse down events on the bookmark bar should not allow dragging the parent |
| 96 // window around. | 96 // window around. |
| 97 - (BOOL)mouseDownCanMoveWindow { | 97 - (BOOL)mouseDownCanMoveWindow { |
| 98 return NO; | 98 return NO; |
| 99 } | 99 } |
| 100 | 100 |
| 101 -(BookmarkBarTextField*)noItemTextfield { | 101 -(BookmarkBarTextField*)noItemTextfield { |
| 102 return noItemTextfield_; | 102 return noItemTextfield_; |
| 103 } | 103 } |
| 104 | 104 |
| 105 -(BookmarkBarImportButton*)importBookmarksButton { | 105 -(NSButton*)importBookmarksButton { |
|
Robert Sesek
2013/03/18 19:20:05
nit: space before ( and on line 101
Alexei Svitkine (slow)
2013/03/18 19:41:27
Done.
| |
| 106 return importBookmarksButton_; | 106 return importBookmarksButton_; |
| 107 } | 107 } |
| 108 | 108 |
| 109 - (BookmarkBarController*)controller { | 109 - (BookmarkBarController*)controller { |
| 110 return controller_; | 110 return controller_; |
| 111 } | 111 } |
| 112 | 112 |
| 113 // Internal method, needs to be called whenever a change has been made to | 113 // Internal method, needs to be called whenever a change has been made to |
| 114 // dropIndicatorShown_ or dropIndicatorPosition_ so it can get the controller | 114 // dropIndicatorShown_ or dropIndicatorPosition_ so it can get the controller |
| 115 // to reflect the change by moving buttons around. | 115 // to reflect the change by moving buttons around. |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 280 @end // @implementation BookmarkBarView | 280 @end // @implementation BookmarkBarView |
| 281 | 281 |
| 282 @implementation BookmarkBarTextField | 282 @implementation BookmarkBarTextField |
| 283 | 283 |
| 284 - (NSMenu*)menu { | 284 - (NSMenu*)menu { |
| 285 return [barView_ menu]; | 285 return [barView_ menu]; |
| 286 } | 286 } |
| 287 | 287 |
| 288 @end // @implementation BookmarkBarTextField | 288 @end // @implementation BookmarkBarTextField |
| 289 | 289 |
| 290 @implementation BookmarkBarImportButton | |
| 291 | |
| 292 - (NSMenu*)menu { | |
| 293 return [barView_ menu]; | |
| 294 } | |
| 295 | |
| 296 @end // @implementation BookmarkBarImportButton | |
| 297 | |
| 298 @implementation BookmarkBarItemContainer | 290 @implementation BookmarkBarItemContainer |
| 299 | 291 |
| 300 - (NSMenu*)menu { | 292 - (NSMenu*)menu { |
| 301 return [barView_ menu]; | 293 return [barView_ menu]; |
| 302 } | 294 } |
| 303 | 295 |
| 304 @end // @implementation BookmarkBarItemContainer | 296 @end // @implementation BookmarkBarItemContainer |
| OLD | NEW |