| OLD | NEW |
| 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 // A simple custom NSView for the bookmark bar used to prevent clicking and | 5 // A simple custom NSView for the bookmark bar used to prevent clicking and |
| 6 // dragging from moving the browser window. | 6 // dragging from moving the browser window. |
| 7 | 7 |
| 8 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_VIEW_H_ | 8 #ifndef CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_VIEW_COCOA_H_ |
| 9 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_VIEW_H_ | 9 #define CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_VIEW_COCOA_H_ |
| 10 | 10 |
| 11 #import <Cocoa/Cocoa.h> | 11 #import <Cocoa/Cocoa.h> |
| 12 | 12 |
| 13 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMUILocalizerAndLayoutTw
eaker.h" | 13 #import "third_party/google_toolbox_for_mac/src/AppKit/GTMUILocalizerAndLayoutTw
eaker.h" |
| 14 | 14 |
| 15 @class BookmarkBarController; | 15 @class BookmarkBarController; |
| 16 @class BookmarkBarItemContainer; | 16 @class BookmarkBarItemContainer; |
| 17 @class BookmarkBarTextField; | 17 @class BookmarkBarTextField; |
| 18 | 18 |
| 19 @interface BookmarkBarView : NSView { | 19 @interface BookmarkBarView : NSView { |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 | 51 |
| 52 // GTMWidthBasedTweaker subclass responsible for routing -menu to the | 52 // GTMWidthBasedTweaker subclass responsible for routing -menu to the |
| 53 // BookmarBarView. This is necessary when building with the 10.6 SDK because | 53 // BookmarBarView. This is necessary when building with the 10.6 SDK because |
| 54 // -rightMouseDown: does not follow the responder chain. | 54 // -rightMouseDown: does not follow the responder chain. |
| 55 @interface BookmarkBarItemContainer : GTMWidthBasedTweaker { | 55 @interface BookmarkBarItemContainer : GTMWidthBasedTweaker { |
| 56 @private | 56 @private |
| 57 IBOutlet BookmarkBarView* barView_; | 57 IBOutlet BookmarkBarView* barView_; |
| 58 } | 58 } |
| 59 @end | 59 @end |
| 60 | 60 |
| 61 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_VIEW_H_ | 61 #endif // CHROME_BROWSER_UI_COCOA_BOOKMARKS_BOOKMARK_BAR_VIEW_COCOA_H_ |
| OLD | NEW |