OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 #import "chrome/browser/ui/cocoa/one_click_signin_dialog_controller.h" | 5 #import "chrome/browser/ui/cocoa/one_click_signin_dialog_controller.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
9 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_sh
eet.h" | 9 #import "chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_sh
eet.h" |
10 #include "chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_w
indow.h" | 10 #include "chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_w
indow.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 constrained_window_.reset(new ConstrainedWindowMac( | 32 constrained_window_.reset(new ConstrainedWindowMac( |
33 this, web_contents, sheet)); | 33 this, web_contents, sheet)); |
34 } | 34 } |
35 | 35 |
36 OneClickSigninDialogController::~OneClickSigninDialogController() { | 36 OneClickSigninDialogController::~OneClickSigninDialogController() { |
37 } | 37 } |
38 | 38 |
39 void OneClickSigninDialogController::OnConstrainedWindowClosed( | 39 void OneClickSigninDialogController::OnConstrainedWindowClosed( |
40 ConstrainedWindowMac* window) { | 40 ConstrainedWindowMac* window) { |
41 [view_controller_ viewWillClose]; | 41 [view_controller_ viewWillClose]; |
42 MessageLoop::current()->DeleteSoon(FROM_HERE, this); | 42 base::MessageLoop::current()->DeleteSoon(FROM_HERE, this); |
43 } | 43 } |
44 | 44 |
45 void OneClickSigninDialogController::PerformClose() { | 45 void OneClickSigninDialogController::PerformClose() { |
46 constrained_window_->CloseWebContentsModalDialog(); | 46 constrained_window_->CloseWebContentsModalDialog(); |
47 } | 47 } |
OLD | NEW |