OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_LOCATION_BAR_ACTION_BOX_MENU_BUBBLE_CONTROLLER_H
_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_LOCATION_BAR_ACTION_BOX_MENU_BUBBLE_CONTROLLER_H
_ |
6 #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_ACTION_BOX_MENU_BUBBLE_CONTROLLER_H
_ | 6 #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_ACTION_BOX_MENU_BUBBLE_CONTROLLER_H
_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #include "base/memory/scoped_nsobject.h" | 10 #include "base/memory/scoped_nsobject.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #import "chrome/browser/ui/cocoa/base_bubble_controller.h" | 12 #import "chrome/browser/ui/cocoa/base_bubble_controller.h" |
13 #import "chrome/browser/ui/cocoa/tracking_area.h" | 13 #import "ui/base/cocoa/tracking_area.h" |
14 | 14 |
15 class ActionBoxMenuModel; | 15 class ActionBoxMenuModel; |
16 @class HoverImageButton; | 16 @class HoverImageButton; |
17 class ExtensionIconLoaderBridge; | 17 class ExtensionIconLoaderBridge; |
18 class Profile; | 18 class Profile; |
19 | 19 |
20 // This window controller manages the action box popup menu. | 20 // This window controller manages the action box popup menu. |
21 @interface ActionBoxMenuBubbleController : BaseBubbleController { | 21 @interface ActionBoxMenuBubbleController : BaseBubbleController { |
22 @private | 22 @private |
23 Profile* profile_; | 23 Profile* profile_; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 // Simple button cell to get tracking and mouse events forwarded back to the | 91 // Simple button cell to get tracking and mouse events forwarded back to the |
92 // view controller for changing highlight style of the item subviews. This is | 92 // view controller for changing highlight style of the item subviews. This is |
93 // an invisible button that underlays most of the menu item and is responsible | 93 // an invisible button that underlays most of the menu item and is responsible |
94 // for performing the attached action. | 94 // for performing the attached action. |
95 @interface ActionBoxMenuItemView : NSView { | 95 @interface ActionBoxMenuItemView : NSView { |
96 @private | 96 @private |
97 // The controller that manages this. | 97 // The controller that manages this. |
98 IBOutlet __weak ActionBoxMenuItemController* viewController_; | 98 IBOutlet __weak ActionBoxMenuItemController* viewController_; |
99 | 99 |
100 // Used to highlight the background on hover. | 100 // Used to highlight the background on hover. |
101 ScopedCrTrackingArea trackingArea_; | 101 ui::ScopedCrTrackingArea trackingArea_; |
102 } | 102 } |
103 | 103 |
104 @property(assign, nonatomic) ActionBoxMenuItemController* viewController; | 104 @property(assign, nonatomic) ActionBoxMenuItemController* viewController; |
105 | 105 |
106 @end | 106 @end |
107 | 107 |
108 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_ACTION_BOX_MENU_BUBBLE_CONTROLLE
R_H_ | 108 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_ACTION_BOX_MENU_BUBBLE_CONTROLLE
R_H_ |
OLD | NEW |