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 #include "chrome/browser/ui/webui/signin/profile_signin_confirmation_dialog.h" | 5 #include "chrome/browser/ui/webui/signin/profile_signin_confirmation_dialog.h" |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/json/json_writer.h" | 8 #include "base/json/json_writer.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 // ProfileSigninConfirmationHandler -------------------------------------------- | 22 // ProfileSigninConfirmationHandler -------------------------------------------- |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
26 class ProfileSigninConfirmationHandler : public content::WebUIMessageHandler { | 26 class ProfileSigninConfirmationHandler : public content::WebUIMessageHandler { |
27 public: | 27 public: |
28 ProfileSigninConfirmationHandler( | 28 ProfileSigninConfirmationHandler( |
29 const ProfileSigninConfirmationDialog* dialog, | 29 const ProfileSigninConfirmationDialog* dialog, |
30 ui::ProfileSigninConfirmationDelegate* delegate_); | 30 ui::ProfileSigninConfirmationDelegate* delegate_); |
31 virtual ~ProfileSigninConfirmationHandler(); | 31 virtual ~ProfileSigninConfirmationHandler(); |
32 virtual void RegisterMessages() OVERRIDE; | 32 virtual void RegisterMessages() override; |
33 | 33 |
34 private: | 34 private: |
35 // content::WebUIMessageHandler implementation. | 35 // content::WebUIMessageHandler implementation. |
36 void OnCancelButtonClicked(const base::ListValue* args); | 36 void OnCancelButtonClicked(const base::ListValue* args); |
37 void OnCreateProfileClicked(const base::ListValue* args); | 37 void OnCreateProfileClicked(const base::ListValue* args); |
38 void OnContinueButtonClicked(const base::ListValue* args); | 38 void OnContinueButtonClicked(const base::ListValue* args); |
39 | 39 |
40 // Weak ptr to parent dialog. | 40 // Weak ptr to parent dialog. |
41 const ProfileSigninConfirmationDialog* dialog_; | 41 const ProfileSigninConfirmationDialog* dialog_; |
42 | 42 |
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 void ProfileSigninConfirmationDialog::OnCloseContents( | 205 void ProfileSigninConfirmationDialog::OnCloseContents( |
206 content::WebContents* source, | 206 content::WebContents* source, |
207 bool* out_close_dialog) { | 207 bool* out_close_dialog) { |
208 if (out_close_dialog) | 208 if (out_close_dialog) |
209 *out_close_dialog = true; | 209 *out_close_dialog = true; |
210 } | 210 } |
211 | 211 |
212 bool ProfileSigninConfirmationDialog::ShouldShowDialogTitle() const { | 212 bool ProfileSigninConfirmationDialog::ShouldShowDialogTitle() const { |
213 return true; | 213 return true; |
214 } | 214 } |
OLD | NEW |