Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(251)

Side by Side Diff: chrome/browser/ui/autofill/autofill_dialog_sign_in_delegate.cc

Issue 97993006: [rAC, OSX] Force better initial size for sign-in (2nd try) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698