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/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(profile)); |
16 } | 16 } |
17 | 17 |
18 InlineLoginDialog::InlineLoginDialog(Profile* profile) | 18 InlineLoginDialog::InlineLoginDialog(Profile* profile) |
19 : profile_(profile) { | 19 : profile_(profile) { |
20 } | 20 } |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 } | 54 } |
55 | 55 |
56 bool InlineLoginDialog::ShouldShowDialogTitle() const { | 56 bool InlineLoginDialog::ShouldShowDialogTitle() const { |
57 return false; | 57 return false; |
58 } | 58 } |
59 | 59 |
60 bool InlineLoginDialog::HandleContextMenu( | 60 bool InlineLoginDialog::HandleContextMenu( |
61 const content::ContextMenuParams& params) { | 61 const content::ContextMenuParams& params) { |
62 return true; | 62 return true; |
63 } | 63 } |
OLD | NEW |