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

Side by Side Diff: chrome/browser/ui/cocoa/one_click_signin_bubble_controller.h

Issue 17593006: mac: Update clients of scoped_nsobject.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: iwyu, scoped_nsprotocol Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_ONE_CLICK_SIGNIN_BUBBLE_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_ONE_CLICK_SIGNIN_BUBBLE_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_ONE_CLICK_SIGNIN_BUBBLE_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_COCOA_ONE_CLICK_SIGNIN_BUBBLE_CONTROLLER_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/memory/scoped_nsobject.h" 11 #include "base/mac/scoped_nsobject.h"
12 #include "chrome/browser/ui/browser_window.h" 12 #include "chrome/browser/ui/browser_window.h"
13 #import "chrome/browser/ui/cocoa/base_bubble_controller.h" 13 #import "chrome/browser/ui/cocoa/base_bubble_controller.h"
14 14
15 @class BrowserWindowController; 15 @class BrowserWindowController;
16 @class OneClickSigninViewController; 16 @class OneClickSigninViewController;
17 17
18 // Displays the one-click signin confirmation bubble 18 // Displays the one-click signin confirmation bubble
19 @interface OneClickSigninBubbleController : BaseBubbleController { 19 @interface OneClickSigninBubbleController : BaseBubbleController {
20 scoped_nsobject<OneClickSigninViewController> viewController_; 20 base::scoped_nsobject<OneClickSigninViewController> viewController_;
21 @private 21 @private
22 IBOutlet NSTextField* messageTextField_; 22 IBOutlet NSTextField* messageTextField_;
23 } 23 }
24 24
25 @property(readonly, nonatomic) OneClickSigninViewController* viewController; 25 @property(readonly, nonatomic) OneClickSigninViewController* viewController;
26 26
27 // Initializes with a browser window |controller|, under whose wrench 27 // Initializes with a browser window |controller|, under whose wrench
28 // menu this bubble will be displayed, and callbacks which are called 28 // menu this bubble will be displayed, and callbacks which are called
29 // if the user clicks the corresponding link. |errorMessage| is an 29 // if the user clicks the corresponding link. |errorMessage| is an
30 // alternate message that will be displayed in the case of an authentication 30 // alternate message that will be displayed in the case of an authentication
31 // error, and |syncCallback| is called to start sync. |webContents| is used 31 // error, and |syncCallback| is called to start sync. |webContents| is used
32 // to open the Learn More and Advanced links 32 // to open the Learn More and Advanced links
33 // 33 //
34 // The bubble is not automatically displayed; call showWindow:id to 34 // The bubble is not automatically displayed; call showWindow:id to
35 // display. The bubble is auto-released on close. 35 // display. The bubble is auto-released on close.
36 - (id)initWithBrowserWindowController:(BrowserWindowController*)controller 36 - (id)initWithBrowserWindowController:(BrowserWindowController*)controller
37 webContents:(content::WebContents*)webContents 37 webContents:(content::WebContents*)webContents
38 errorMessage:(NSString*)errorMessage 38 errorMessage:(NSString*)errorMessage
39 callback:(const BrowserWindow::StartSyncCallback&) 39 callback:(const BrowserWindow::StartSyncCallback&)
40 syncCallback; 40 syncCallback;
41 41
42 @end 42 @end
43 43
44 #endif // CHROME_BROWSER_UI_COCOA_ONE_CLICK_SIGNIN_BUBBLE_CONTROLLER_H_ 44 #endif // CHROME_BROWSER_UI_COCOA_ONE_CLICK_SIGNIN_BUBBLE_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698