OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
shrike
2015/05/05 18:20:22
Should by copyright 2015.
| |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
shrike
2015/05/05 18:20:22
What's the reason for putting this new class in ch
| |
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 #include "base/memory/scoped_ptr.h" | |
11 | |
shrike
2015/05/05 18:20:22
Should be one space after namespace.
| |
12 namespace ShareMenuControllerInternal { | |
13 class Observer; | |
14 } | |
15 | |
16 @interface ShareMenuController : NSObject { | |
17 @private | |
18 __weak NSMenu* mainMenu_; | |
shrike
2015/05/05 18:20:22
All of these lines should be indented 2 spaces?
| |
19 scoped_ptr<ShareMenuControllerInternal::Observer> observer_; | |
20 NSMutableArray* shareItems_; | |
21 NSMenuItem* fileMeuItem_; | |
Avi (use Gerrit)
2015/05/05 18:47:50
typo: Menu, not Meu
| |
22 NSMenuItem* shareMenuItem_; | |
23 NSMenu* shareSubMenu_; | |
24 BOOL menuItemsLoaded_; | |
25 } | |
26 | |
shrike
2015/05/05 18:20:23
No space between (id) and initWithMainMenu (same i
| |
27 - (id) initWithMainMenu:(NSMenu* )menu; | |
28 - (BOOL) menuItemsLoaded; | |
29 | |
30 @end | |
31 | |
shrike
2015/05/05 18:20:22
Two spaces between #endif and //, followed by 1 sp
| |
32 #endif // CHROME_BROWSER_UI_COCOA_RENDERER_CONTEXT_SHARE_MENU_CONTROLLER | |
OLD | NEW |