| 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/size.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 ui::ModalType InlineLoginDialog::GetDialogModalType() const { | 22 ui::ModalType InlineLoginDialog::GetDialogModalType() const { |
| 23 return ui::MODAL_TYPE_SYSTEM; | 23 return ui::MODAL_TYPE_SYSTEM; |
| 24 } | 24 } |
| 25 | 25 |
| 26 string16 InlineLoginDialog::GetDialogTitle() const { | 26 string16 InlineLoginDialog::GetDialogTitle() const { |
| 27 return string16(); | 27 return string16(); |
| 28 } | 28 } |
| 29 | 29 |
| 30 GURL InlineLoginDialog::GetDialogContentURL() const { | 30 GURL InlineLoginDialog::GetDialogContentURL() const { |
| 31 return GURL(chrome::kChromeUIInlineLoginURL); | 31 return GURL(chrome::kChromeUIChromeSigninURL); |
| 32 } | 32 } |
| 33 | 33 |
| 34 void InlineLoginDialog::GetWebUIMessageHandlers( | 34 void InlineLoginDialog::GetWebUIMessageHandlers( |
| 35 std::vector<content::WebUIMessageHandler*>* handlers) const { | 35 std::vector<content::WebUIMessageHandler*>* handlers) const { |
| 36 } | 36 } |
| 37 | 37 |
| 38 void InlineLoginDialog::GetDialogSize(gfx::Size* size) const { | 38 void InlineLoginDialog::GetDialogSize(gfx::Size* size) const { |
| 39 size->SetSize(380, 290); | 39 size->SetSize(380, 290); |
| 40 } | 40 } |
| 41 | 41 |
| (...skipping 12 matching lines...) Expand all 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 |