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

Unified Diff: chrome/browser/chromeos/login/textfield_with_margin.cc

Issue 5473001: [cros] Use same textfield settings across existing/new user pods and screen lock. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/login/textfield_with_margin.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/textfield_with_margin.cc
diff --git a/chrome/browser/chromeos/login/textfield_with_margin.cc b/chrome/browser/chromeos/login/textfield_with_margin.cc
index 8ad4cee430ef64c097cf88b9520194f3e0f44749..87287115983cf902e2a567623ac6b4f658546927 100644
--- a/chrome/browser/chromeos/login/textfield_with_margin.cc
+++ b/chrome/browser/chromeos/login/textfield_with_margin.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/chromeos/login/textfield_with_margin.h"
+#include "chrome/browser/chromeos/login/helper.h"
+
namespace {
// Holds ratio of the margin to the preferred text height.
@@ -26,4 +28,13 @@ void TextfieldWithMargin::Layout() {
views::Textfield::Layout();
}
+void TextfieldWithMargin::ViewHierarchyChanged(bool is_add,
+ views::View *parent,
+ views::View *child) {
+ Textfield::ViewHierarchyChanged(is_add, parent, child);
+ if (is_add && child == this) {
+ CorrectTextfieldFontSize(this);
altimofeev 2010/12/01 18:21:36 Why correction is done here? AFAIK textfield updat
whywhat 2010/12/01 18:27:47 I guess it worked but the idea is to move it to on
Nikita (slow) 2010/12/01 18:29:16 Ok, I've found out that I was missing second const
+ }
+}
+
} // namespace chromeos
« no previous file with comments | « chrome/browser/chromeos/login/textfield_with_margin.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698