OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_PROFILES_PROFILE_SIGNIN_CONFIRMATION_DIALOG_COCO
A_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_PROFILES_PROFILE_SIGNIN_CONFIRMATION_DIALOG_COCO
A_ |
6 #define CHROME_BROWSER_UI_COCOA_PROFILES_PROFILE_SIGNIN_CONFIRMATION_DIALOG_COCO
A_ | 6 #define CHROME_BROWSER_UI_COCOA_PROFILES_PROFILE_SIGNIN_CONFIRMATION_DIALOG_COCO
A_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #include <string> | 10 #include <string> |
11 | 11 |
12 #include "base/callback.h" | 12 #include "base/callback.h" |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
14 #include "base/mac/scoped_nsobject.h" | 14 #include "base/mac/scoped_nsobject.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
| 16 #include "base/memory/scoped_ptr.h" |
16 #include "base/memory/weak_ptr.h" | 17 #include "base/memory/weak_ptr.h" |
17 #include "chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.h" | 18 #include "chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.h" |
18 #include "chrome/browser/ui/cocoa/profiles/profile_signin_confirmation_view_cont
roller.h" | 19 #include "chrome/browser/ui/cocoa/profiles/profile_signin_confirmation_view_cont
roller.h" |
19 | 20 |
20 class Browser; | 21 class Browser; |
21 class Profile; | 22 class Profile; |
22 | 23 |
23 namespace content { | 24 namespace content { |
24 class WebContents; | 25 class WebContents; |
25 } | 26 } |
(...skipping 26 matching lines...) Expand all Loading... |
52 void Close(); | 53 void Close(); |
53 | 54 |
54 private: | 55 private: |
55 // ConstrainedWindowMacDelegate: | 56 // ConstrainedWindowMacDelegate: |
56 void OnConstrainedWindowClosed(ConstrainedWindowMac* window) override; | 57 void OnConstrainedWindowClosed(ConstrainedWindowMac* window) override; |
57 | 58 |
58 // Controller for the dialog view. | 59 // Controller for the dialog view. |
59 base::scoped_nsobject<ProfileSigninConfirmationViewController> controller_; | 60 base::scoped_nsobject<ProfileSigninConfirmationViewController> controller_; |
60 | 61 |
61 // The constrained window that contains the dialog view. | 62 // The constrained window that contains the dialog view. |
62 std::unique_ptr<ConstrainedWindowMac> window_; | 63 scoped_ptr<ConstrainedWindowMac> window_; |
63 | 64 |
64 DISALLOW_COPY_AND_ASSIGN(ProfileSigninConfirmationDialogCocoa); | 65 DISALLOW_COPY_AND_ASSIGN(ProfileSigninConfirmationDialogCocoa); |
65 }; | 66 }; |
66 | 67 |
67 #endif // CHROME_BROWSER_UI_COCOA_PROFILES_PROFILE_SIGNIN_CONFIRMATION_DIALOG_C
OCOA_ | 68 #endif // CHROME_BROWSER_UI_COCOA_PROFILES_PROFILE_SIGNIN_CONFIRMATION_DIALOG_C
OCOA_ |
OLD | NEW |