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

Side by Side Diff: chrome/browser/chromeos/login/textfield_with_margin.h

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: proper fix Created 10 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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_TEXTFIELD_WITH_MARGIN_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_TEXTFIELD_WITH_MARGIN_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_TEXTFIELD_WITH_MARGIN_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_TEXTFIELD_WITH_MARGIN_H_
7 #pragma once 7 #pragma once
8 8
9 #include "views/controls/textfield/textfield.h" 9 #include "views/controls/textfield/textfield.h"
10 10
11 namespace chromeos { 11 namespace chromeos {
12 12
13 // Class that represents textfield with margin that is proportional to the text 13 // Class that represents textfield with margin that is proportional to the text
14 // height. 14 // height.
15 class TextfieldWithMargin : public views::Textfield { 15 class TextfieldWithMargin : public views::Textfield {
16 public: 16 public:
17 TextfieldWithMargin(); 17 TextfieldWithMargin();
18 explicit TextfieldWithMargin(views::Textfield::StyleFlags style);
18 19
19 explicit TextfieldWithMargin(views::Textfield::StyleFlags style) 20 protected:
20 : Textfield(style) {} 21 // Overridden from views::View:
21
22 // Reimplements views::Textfield.
23 virtual void Layout(); 22 virtual void Layout();
24 23
25 private: 24 private:
26 DISALLOW_COPY_AND_ASSIGN(TextfieldWithMargin); 25 DISALLOW_COPY_AND_ASSIGN(TextfieldWithMargin);
27 }; 26 };
28 27
29 } // namespace chromeos 28 } // namespace chromeos
30 29
31 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_TEXTFIELD_WITH_MARGIN_H_ 30 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_TEXTFIELD_WITH_MARGIN_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/new_user_view.cc ('k') | chrome/browser/chromeos/login/textfield_with_margin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698