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

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

Issue 2750773002: Fix comment location for BookmarkBarView in Cocoa code. (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 | « no previous file | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_VIEW_COCOA_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_VIEW_COCOA_H_
6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_VIEW_COCOA_H_ 6 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_VIEW_COCOA_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/mac/scoped_nsobject.h" 10 #include "base/mac/scoped_nsobject.h"
11 11
12 @class BookmarkBarController; 12 @class BookmarkBarController;
13 13
14 // A simple custom NSView for the bookmark bar used to prevent clicking and
15 // dragging from moving the browser window.
14 @interface BookmarkBarView : NSView { 16 @interface BookmarkBarView : NSView {
15 @private 17 @private
16 BOOL dropIndicatorShown_; 18 BOOL dropIndicatorShown_;
17 CGFloat dropIndicatorPosition_; // x position 19 CGFloat dropIndicatorPosition_; // x position
18 20
19 BookmarkBarController* controller_; 21 BookmarkBarController* controller_;
20 base::scoped_nsobject<NSTextField> noItemTextfield_; 22 base::scoped_nsobject<NSTextField> noItemTextfield_;
21 base::scoped_nsobject<NSButton> importBookmarksButton_; 23 base::scoped_nsobject<NSButton> importBookmarksButton_;
22 base::scoped_nsobject<NSView> noItemContainer_; 24 base::scoped_nsobject<NSView> noItemContainer_;
23 } 25 }
24 - (NSTextField*)noItemTextfield; 26 - (NSTextField*)noItemTextfield;
25 - (NSButton*)importBookmarksButton; 27 - (NSButton*)importBookmarksButton;
26 - (NSView*)noItemContainer; 28 - (NSView*)noItemContainer;
27 29
28 - (instancetype)initWithController:(BookmarkBarController*)controller 30 - (instancetype)initWithController:(BookmarkBarController*)controller
29 frame:(NSRect)frame; 31 frame:(NSRect)frame;
30 - (void)registerForNotificationsAndDraggedTypes; 32 - (void)registerForNotificationsAndDraggedTypes;
31 33
32 // Exposed so the controller can nil itself out. 34 // Exposed so the controller can nil itself out.
33 @property(nonatomic, assign) BookmarkBarController* controller; 35 @property(nonatomic, assign) BookmarkBarController* controller;
34 @end 36 @end
35 37
36 // A simple custom NSView for the bookmark bar used to prevent clicking and
37 // dragging from moving the browser window.
38 @interface BookmarkBarView() // TestingOrInternalAPI 38 @interface BookmarkBarView() // TestingOrInternalAPI
39 @property(nonatomic, readonly) BOOL dropIndicatorShown; 39 @property(nonatomic, readonly) BOOL dropIndicatorShown;
40 @property(nonatomic, readonly) CGFloat dropIndicatorPosition; 40 @property(nonatomic, readonly) CGFloat dropIndicatorPosition;
41 @end 41 @end
42 42
43 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_VIEW_COCOA_H_ 43 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_VIEW_COCOA_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698