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 #ifndef CHROME_BROWSER_UI_COCOA_WRENCH_MENU_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_WRENCH_MENU_WRENCH_MENU_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_COCOA_WRENCH_MENU_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_WRENCH_MENU_WRENCH_MENU_CONTROLLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #import <Cocoa/Cocoa.h> | 9 #import <Cocoa/Cocoa.h> |
10 | 10 |
11 #import "base/mac/cocoa_protocols.h" | 11 #import "base/mac/cocoa_protocols.h" |
12 #include "base/scoped_ptr.h" | 12 #include "base/scoped_ptr.h" |
13 #import "chrome/browser/ui/cocoa/menu_controller.h" | 13 #import "chrome/browser/ui/cocoa/menu_controller.h" |
14 | 14 |
15 @class MenuTrackedRootView; | 15 @class MenuTrackedRootView; |
16 @class ToolbarController; | 16 @class ToolbarController; |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 @interface WrenchMenuController (UnitTesting) | 62 @interface WrenchMenuController (UnitTesting) |
63 // |-dispatchWrenchMenuCommand:| calls this after it has determined the tag of | 63 // |-dispatchWrenchMenuCommand:| calls this after it has determined the tag of |
64 // the sender. The default implementation executes the command on the outermost | 64 // the sender. The default implementation executes the command on the outermost |
65 // run loop using |-performSelector...withDelay:|. This is not desirable in | 65 // run loop using |-performSelector...withDelay:|. This is not desirable in |
66 // unit tests because it's hard to test around run loops in a deterministic | 66 // unit tests because it's hard to test around run loops in a deterministic |
67 // manner. To avoid those headaches, tests should provide an alternative | 67 // manner. To avoid those headaches, tests should provide an alternative |
68 // implementation. | 68 // implementation. |
69 - (void)dispatchCommandInternal:(NSInteger)tag; | 69 - (void)dispatchCommandInternal:(NSInteger)tag; |
70 @end | 70 @end |
71 | 71 |
72 #endif // CHROME_BROWSER_UI_COCOA_WRENCH_MENU_CONTROLLER_H_ | 72 #endif // CHROME_BROWSER_UI_COCOA_WRENCH_MENU_WRENCH_MENU_CONTROLLER_H_ |
OLD | NEW |