OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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/sync/inline_login_dialog.h" | 5 #include "chrome/browser/ui/sync/inline_login_dialog.h" |
6 | 6 |
7 #include "chrome/browser/profiles/profile.h" | 7 #include "chrome/browser/profiles/profile.h" |
8 #include "chrome/browser/ui/browser_dialogs.h" | 8 #include "chrome/browser/ui/browser_dialogs.h" |
9 #include "chrome/common/url_constants.h" | 9 #include "chrome/common/url_constants.h" |
10 #include "ui/gfx/geometry/size.h" | 10 #include "ui/gfx/geometry/size.h" |
11 #include "url/gurl.h" | 11 #include "url/gurl.h" |
12 | 12 |
13 // static | 13 // static |
14 void InlineLoginDialog::Show(Profile* profile) { | 14 void InlineLoginDialog::Show(Profile* profile) { |
15 chrome::ShowWebDialog(NULL, profile, new InlineLoginDialog(profile)); | 15 chrome::ShowWebDialog(NULL, profile, new InlineLoginDialog()); |
16 } | 16 } |
17 | 17 |
18 InlineLoginDialog::InlineLoginDialog(Profile* profile) | 18 InlineLoginDialog::InlineLoginDialog() { |
19 : profile_(profile) { | |
20 } | 19 } |
21 | 20 |
22 ui::ModalType InlineLoginDialog::GetDialogModalType() const { | 21 ui::ModalType InlineLoginDialog::GetDialogModalType() const { |
23 return ui::MODAL_TYPE_SYSTEM; | 22 return ui::MODAL_TYPE_SYSTEM; |
24 } | 23 } |
25 | 24 |
26 base::string16 InlineLoginDialog::GetDialogTitle() const { | 25 base::string16 InlineLoginDialog::GetDialogTitle() const { |
27 return base::string16(); | 26 return base::string16(); |
28 } | 27 } |
29 | 28 |
(...skipping 24 matching lines...) Expand all Loading... |
54 } | 53 } |
55 | 54 |
56 bool InlineLoginDialog::ShouldShowDialogTitle() const { | 55 bool InlineLoginDialog::ShouldShowDialogTitle() const { |
57 return false; | 56 return false; |
58 } | 57 } |
59 | 58 |
60 bool InlineLoginDialog::HandleContextMenu( | 59 bool InlineLoginDialog::HandleContextMenu( |
61 const content::ContextMenuParams& params) { | 60 const content::ContextMenuParams& params) { |
62 return true; | 61 return true; |
63 } | 62 } |
OLD | NEW |