| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/chromeos/ui/inline_login_dialog.h" | 5 #include "chrome/browser/chromeos/ui/inline_login_dialog.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "chrome/browser/signin/signin_promo.h" | 9 #include "chrome/browser/signin/signin_promo.h" |
| 10 #include "chrome/browser/ui/browser_dialogs.h" | 10 #include "chrome/browser/ui/browser_dialogs.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 | 36 |
| 37 ModalType InlineLoginDialog::GetDialogModalType() const { | 37 ModalType InlineLoginDialog::GetDialogModalType() const { |
| 38 return MODAL_TYPE_SYSTEM; | 38 return MODAL_TYPE_SYSTEM; |
| 39 } | 39 } |
| 40 | 40 |
| 41 base::string16 InlineLoginDialog::GetDialogTitle() const { | 41 base::string16 InlineLoginDialog::GetDialogTitle() const { |
| 42 return base::string16(); | 42 return base::string16(); |
| 43 } | 43 } |
| 44 | 44 |
| 45 GURL InlineLoginDialog::GetDialogContentURL() const { | 45 GURL InlineLoginDialog::GetDialogContentURL() const { |
| 46 return GURL(signin::GetPromoURL(signin::SOURCE_AVATAR_BUBBLE_ADD_ACCOUNT, | 46 return GURL(signin::GetPromoURL( |
| 47 false /* auto_close */, | 47 signin_metrics::SOURCE_AVATAR_BUBBLE_ADD_ACCOUNT, |
| 48 true /* is_constrained */)); | 48 false /* auto_close */, |
| 49 true /* is_constrained */)); |
| 49 } | 50 } |
| 50 | 51 |
| 51 void InlineLoginDialog::GetWebUIMessageHandlers( | 52 void InlineLoginDialog::GetWebUIMessageHandlers( |
| 52 std::vector<content::WebUIMessageHandler*>* handlers) const { | 53 std::vector<content::WebUIMessageHandler*>* handlers) const { |
| 53 } | 54 } |
| 54 | 55 |
| 55 void InlineLoginDialog::GetDialogSize(gfx::Size* size) const { | 56 void InlineLoginDialog::GetDialogSize(gfx::Size* size) const { |
| 56 *size = gfx::Size(kGaiaViewWidth, kGaiaViewHeight); | 57 *size = gfx::Size(kGaiaViewWidth, kGaiaViewHeight); |
| 57 } | 58 } |
| 58 | 59 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 72 bool* out_close_dialog) { | 73 bool* out_close_dialog) { |
| 73 if (out_close_dialog) | 74 if (out_close_dialog) |
| 74 *out_close_dialog = true; | 75 *out_close_dialog = true; |
| 75 } | 76 } |
| 76 | 77 |
| 77 bool InlineLoginDialog::ShouldShowDialogTitle() const { | 78 bool InlineLoginDialog::ShouldShowDialogTitle() const { |
| 78 return true; | 79 return true; |
| 79 } | 80 } |
| 80 | 81 |
| 81 } // namespace ui | 82 } // namespace ui |
| OLD | NEW |