| 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/autofill/autofill_dialog_sign_in_delegate.h" | 5 #include "chrome/browser/ui/autofill/autofill_dialog_sign_in_delegate.h" |
| 6 | 6 |
| 7 #include "chrome/browser/ui/autofill/autofill_dialog_view.h" | 7 #include "chrome/browser/ui/autofill/autofill_dialog_view.h" |
| 8 #include "components/autofill/content/browser/wallet/wallet_service_url.h" | 8 #include "components/autofill/content/browser/wallet/wallet_service_url.h" |
| 9 #include "content/public/browser/render_view_host.h" | 9 #include "content/public/browser/render_view_host.h" |
| 10 #include "content/public/browser/web_contents.h" | 10 #include "content/public/browser/web_contents.h" |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 | 72 |
| 73 void AutofillDialogSignInDelegate::UpdateLimitsAndEnableAutoResize( | 73 void AutofillDialogSignInDelegate::UpdateLimitsAndEnableAutoResize( |
| 74 const gfx::Size& minimum_size, | 74 const gfx::Size& minimum_size, |
| 75 const gfx::Size& maximum_size) { | 75 const gfx::Size& maximum_size) { |
| 76 minimum_size_ = minimum_size; | 76 minimum_size_ = minimum_size; |
| 77 maximum_size_ = maximum_size; | 77 maximum_size_ = maximum_size; |
| 78 EnableAutoResize(); | 78 EnableAutoResize(); |
| 79 } | 79 } |
| 80 | 80 |
| 81 void AutofillDialogSignInDelegate::EnableAutoResize() { | 81 void AutofillDialogSignInDelegate::EnableAutoResize() { |
| 82 DCHECK(!minimum_size_.IsEmpty()); |
| 83 DCHECK(!maximum_size_.IsEmpty()); |
| 82 content::RenderViewHost* host = web_contents()->GetRenderViewHost(); | 84 content::RenderViewHost* host = web_contents()->GetRenderViewHost(); |
| 83 if (host) | 85 if (host) |
| 84 host->EnableAutoResize(minimum_size_, maximum_size_); | 86 host->EnableAutoResize(minimum_size_, maximum_size_); |
| 85 } | 87 } |
| 86 | 88 |
| 87 } // namespace autofill | 89 } // namespace autofill |
| OLD | NEW |