| 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_PLUS_DECORATION_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_LOCATION_BAR_PLUS_DECORATION_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_PLUS_DECORATION_H_ | 6 #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_PLUS_DECORATION_H_ |
| 7 | 7 |
| 8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
| 9 | 9 |
| 10 #include "base/memory/scoped_nsobject.h" |
| 10 #include "chrome/browser/ui/cocoa/location_bar/button_decoration.h" | 11 #include "chrome/browser/ui/cocoa/location_bar/button_decoration.h" |
| 11 #include "chrome/browser/ui/toolbar/action_box_button_controller.h" | 12 #include "chrome/browser/ui/toolbar/action_box_button_controller.h" |
| 12 | 13 |
| 14 @class ActionBoxMenuBubbleController; |
| 13 class Browser; | 15 class Browser; |
| 14 class LocationBarViewMac; | 16 class LocationBarViewMac; |
| 15 | 17 |
| 16 // Note: this file is under development (see crbug.com/138118). | 18 // Note: this file is under development (see crbug.com/138118). |
| 17 | 19 |
| 18 // Plus icon on the right side of the location bar. | 20 // Plus icon on the right side of the location bar. |
| 19 class PlusDecoration : public ButtonDecoration, | 21 class PlusDecoration : public ButtonDecoration, |
| 20 public ActionBoxButtonController::Delegate { | 22 public ActionBoxButtonController::Delegate { |
| 21 public: | 23 public: |
| 22 PlusDecoration(LocationBarViewMac* owner, Browser* browser); | 24 PlusDecoration(LocationBarViewMac* owner, Browser* browser); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 45 | 47 |
| 46 // Owner of the decoration, used to obtain the menu. | 48 // Owner of the decoration, used to obtain the menu. |
| 47 LocationBarViewMac* owner_; | 49 LocationBarViewMac* owner_; |
| 48 | 50 |
| 49 Browser* browser_; | 51 Browser* browser_; |
| 50 | 52 |
| 51 ActionBoxButtonController controller_; | 53 ActionBoxButtonController controller_; |
| 52 | 54 |
| 53 void SetIcons(int normal_id, int hover_id, int pressed_id); | 55 void SetIcons(int normal_id, int hover_id, int pressed_id); |
| 54 | 56 |
| 57 scoped_nsobject<ActionBoxMenuBubbleController> menu_controller_; |
| 58 |
| 55 DISALLOW_COPY_AND_ASSIGN(PlusDecoration); | 59 DISALLOW_COPY_AND_ASSIGN(PlusDecoration); |
| 56 }; | 60 }; |
| 57 | 61 |
| 58 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_PLUS_DECORATION_H_ | 62 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_PLUS_DECORATION_H_ |
| OLD | NEW |