OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
Avi (use Gerrit)
2015/05/15 16:13:08
Why are you putting this into renderer_context_men
| |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef CHROME_BROWSER_UI_COCOA_RENDERER_CONTEXT_SHARE_MENU_CONTROLLER | |
6 #define CHROME_BROWSER_UI_COCOA_RENDERER_CONTEXT_SHARE_MENU_CONTROLLER | |
7 | |
8 #import <Cocoa/Cocoa.h> | |
9 | |
10 #import "base/mac/scoped_nsobject.h" | |
11 #include "base/memory/scoped_ptr.h" | |
12 #include "chrome/browser/ui/browser.h" | |
13 namespace ShareMenuControllerInternal { | |
Avi (use Gerrit)
2015/05/15 16:13:08
Blank line before this one.
| |
14 class Observer; | |
Avi (use Gerrit)
2015/05/15 16:13:08
Bad spacing; no indenting inside namespaces.
| |
15 } | |
16 | |
17 @interface ShareMenuController : NSObject { | |
18 @private | |
19 __weak NSMenu* mainMenu_; | |
20 scoped_ptr<ShareMenuControllerInternal::Observer> observer_; | |
21 base::scoped_nsobject<NSMutableArray> shareItems_; | |
22 NSMenuItem* shareMenuItem_; | |
23 base::scoped_nsobject<NSMenu> shareSubMenu_; | |
24 NSMenuItem* fileMenuItem_; | |
25 BOOL menuItemsLoaded_; | |
Avi (use Gerrit)
2015/05/15 16:13:08
Indent 2.
| |
26 } | |
27 | |
28 - (id)initWithMainMenu:(NSMenu* )menu; | |
Avi (use Gerrit)
2015/05/15 16:13:08
No space after *
| |
29 - (BOOL)menuItemsLoaded; | |
Avi (use Gerrit)
2015/05/15 16:13:08
comment functions
| |
30 | |
31 @end | |
32 | |
33 @interface ShareMenuController(PrivateShareMenuControllerTesting) | |
34 - (void)initShareMenuItem; | |
35 - (NSMenu*)shareSubMenu; | |
36 - (NSMenuItem*)shareSubMenuItem; | |
37 @end | |
38 | |
39 #endif // CHROME_BROWSER_UI_COCOA_RENDERER_CONTEXT_SHARE_MENU_CONTROLLER | |
OLD | NEW |