| OLD | NEW | 
|---|
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_COCOA_TOOLBAR_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_COCOA_TOOLBAR_CONTROLLER_H_ | 
| 6 #define CHROME_BROWSER_COCOA_TOOLBAR_CONTROLLER_H_ | 6 #define CHROME_BROWSER_COCOA_TOOLBAR_CONTROLLER_H_ | 
| 7 | 7 | 
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> | 
| 9 | 9 | 
| 10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" | 
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 58   // Used to positioner the omnibox popup view. | 58   // Used to positioner the omnibox popup view. | 
| 59   scoped_ptr<AutocompletePopupPositioner> popupPositioner_; | 59   scoped_ptr<AutocompletePopupPositioner> popupPositioner_; | 
| 60   BooleanPrefMember showHomeButton_; | 60   BooleanPrefMember showHomeButton_; | 
| 61   BooleanPrefMember showPageOptionButtons_; | 61   BooleanPrefMember showPageOptionButtons_; | 
| 62   BOOL hasToolbar_;  // if NO, we only have the location bar. | 62   BOOL hasToolbar_;  // if NO, we only have the location bar. | 
| 63 | 63 | 
| 64   // We have an extra retain in the locationBar_. | 64   // We have an extra retain in the locationBar_. | 
| 65   // See comments in awakeFromNib for more info. | 65   // See comments in awakeFromNib for more info. | 
| 66   scoped_nsobject<AutocompleteTextField> locationBarRetainer_; | 66   scoped_nsobject<AutocompleteTextField> locationBarRetainer_; | 
| 67 | 67 | 
| 68   // Tracking area for mouse enter/exit/moved in the toolbar. |  | 
| 69   scoped_nsobject<NSTrackingArea> trackingArea_; |  | 
| 70   NSButton* hoveredButton_;  // weak. Button under the mouse cursor. |  | 
| 71 |  | 
| 72   IBOutlet NSMenu* pageMenu_; | 68   IBOutlet NSMenu* pageMenu_; | 
| 73   IBOutlet NSMenu* wrenchMenu_; | 69   IBOutlet NSMenu* wrenchMenu_; | 
| 74 | 70 | 
| 75   // The ordering is important for unit tests. If new items are added or the | 71   // The ordering is important for unit tests. If new items are added or the | 
| 76   // ordering is changed, make sure to update |-toolbarViews| and the | 72   // ordering is changed, make sure to update |-toolbarViews| and the | 
| 77   // corresponding enum in the unit tests. | 73   // corresponding enum in the unit tests. | 
| 78   IBOutlet DelayedMenuButton* backButton_; | 74   IBOutlet DelayedMenuButton* backButton_; | 
| 79   IBOutlet DelayedMenuButton* forwardButton_; | 75   IBOutlet DelayedMenuButton* forwardButton_; | 
| 80   IBOutlet NSButton* reloadButton_; | 76   IBOutlet NSButton* reloadButton_; | 
| 81   IBOutlet NSButton* homeButton_; | 77   IBOutlet NSButton* homeButton_; | 
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 144 // A set of private methods used by tests, in the absence of "friends" in ObjC. | 140 // A set of private methods used by tests, in the absence of "friends" in ObjC. | 
| 145 @interface ToolbarController(PrivateTestMethods) | 141 @interface ToolbarController(PrivateTestMethods) | 
| 146 // Returns an array of views in the order of the outlets above. | 142 // Returns an array of views in the order of the outlets above. | 
| 147 - (NSArray*)toolbarViews; | 143 - (NSArray*)toolbarViews; | 
| 148 - (void)showOptionalHomeButton; | 144 - (void)showOptionalHomeButton; | 
| 149 - (void)showOptionalPageWrenchButtons; | 145 - (void)showOptionalPageWrenchButtons; | 
| 150 - (gfx::Rect)autocompletePopupPosition; | 146 - (gfx::Rect)autocompletePopupPosition; | 
| 151 @end | 147 @end | 
| 152 | 148 | 
| 153 #endif  // CHROME_BROWSER_COCOA_TOOLBAR_CONTROLLER_H_ | 149 #endif  // CHROME_BROWSER_COCOA_TOOLBAR_CONTROLLER_H_ | 
| OLD | NEW | 
|---|