OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_TOOLBAR_BACK_FORWARD_MENU_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_TOOLBAR_BACK_FORWARD_MENU_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_COCOA_TOOLBAR_BACK_FORWARD_MENU_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_TOOLBAR_BACK_FORWARD_MENU_CONTROLLER_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #import "base/mac/cocoa_protocols.h" | |
11 #include "base/memory/scoped_nsobject.h" | 10 #include "base/memory/scoped_nsobject.h" |
12 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
13 #include "chrome/browser/ui/toolbar/back_forward_menu_model.h" | 12 #include "chrome/browser/ui/toolbar/back_forward_menu_model.h" |
14 | 13 |
15 @class MenuButton; | 14 @class MenuButton; |
16 | 15 |
17 typedef BackForwardMenuModel::ModelType BackForwardMenuType; | 16 typedef BackForwardMenuModel::ModelType BackForwardMenuType; |
18 const BackForwardMenuType BACK_FORWARD_MENU_TYPE_BACK = | 17 const BackForwardMenuType BACK_FORWARD_MENU_TYPE_BACK = |
19 BackForwardMenuModel::BACKWARD_MENU; | 18 BackForwardMenuModel::BACKWARD_MENU; |
20 const BackForwardMenuType BACK_FORWARD_MENU_TYPE_FORWARD = | 19 const BackForwardMenuType BACK_FORWARD_MENU_TYPE_FORWARD = |
(...skipping 13 matching lines...) Expand all Loading... |
34 // Type (back or forwards); can only be set on initialization. | 33 // Type (back or forwards); can only be set on initialization. |
35 @property(readonly, nonatomic) BackForwardMenuType type; | 34 @property(readonly, nonatomic) BackForwardMenuType type; |
36 | 35 |
37 - (id)initWithBrowser:(Browser*)browser | 36 - (id)initWithBrowser:(Browser*)browser |
38 modelType:(BackForwardMenuType)type | 37 modelType:(BackForwardMenuType)type |
39 button:(MenuButton*)button; | 38 button:(MenuButton*)button; |
40 | 39 |
41 @end // @interface BackForwardMenuController | 40 @end // @interface BackForwardMenuController |
42 | 41 |
43 #endif // CHROME_BROWSER_UI_COCOA_TOOLBAR_BACK_FORWARD_MENU_CONTROLLER_H_ | 42 #endif // CHROME_BROWSER_UI_COCOA_TOOLBAR_BACK_FORWARD_MENU_CONTROLLER_H_ |
OLD | NEW |