Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(71)

Side by Side Diff: chrome/browser/ui/cocoa/renderer_context_menu/share_menu_controller.h

Issue 1105143005: Issue 465302:System wide share options on Mac Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added unit tests, honored Cocoa memory management issues Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698