| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/login/new_user_view.h" | 5 #include "chrome/browser/chromeos/login/new_user_view.h" |
| 6 | 6 |
| 7 #include <signal.h> | 7 #include <signal.h> |
| 8 #include <sys/types.h> | 8 #include <sys/types.h> |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| 11 #include <vector> | 11 #include <vector> |
| (...skipping 15 matching lines...) Expand all Loading... |
| 27 #include "chrome/common/pref_names.h" | 27 #include "chrome/common/pref_names.h" |
| 28 #include "grit/app_resources.h" | 28 #include "grit/app_resources.h" |
| 29 #include "grit/chromium_strings.h" | 29 #include "grit/chromium_strings.h" |
| 30 #include "grit/generated_resources.h" | 30 #include "grit/generated_resources.h" |
| 31 #include "ui/base/keycodes/keyboard_codes.h" | 31 #include "ui/base/keycodes/keyboard_codes.h" |
| 32 #include "ui/base/l10n/l10n_util.h" | 32 #include "ui/base/l10n/l10n_util.h" |
| 33 #include "ui/base/resource/resource_bundle.h" | 33 #include "ui/base/resource/resource_bundle.h" |
| 34 #include "ui/gfx/font.h" | 34 #include "ui/gfx/font.h" |
| 35 #include "views/controls/button/menu_button.h" | 35 #include "views/controls/button/menu_button.h" |
| 36 #include "views/controls/label.h" | 36 #include "views/controls/label.h" |
| 37 #include "views/controls/textfield/textfield.h" |
| 37 #include "views/controls/throbber.h" | 38 #include "views/controls/throbber.h" |
| 38 #include "views/widget/widget_gtk.h" | 39 #include "views/widget/widget_gtk.h" |
| 39 | 40 |
| 40 using views::View; | 41 using views::View; |
| 41 | 42 |
| 42 namespace { | 43 namespace { |
| 43 | 44 |
| 44 const int kTextfieldWidth = 230; | 45 const int kTextfieldWidth = 230; |
| 45 const int kSplitterHeight = 1; | 46 const int kSplitterHeight = 1; |
| 46 const int kTitlePad = 20; | 47 const int kTitlePad = 20; |
| (...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 557 | 558 |
| 558 void NewUserView::InitLink(views::Link** link) { | 559 void NewUserView::InitLink(views::Link** link) { |
| 559 *link = new views::Link(std::wstring()); | 560 *link = new views::Link(std::wstring()); |
| 560 (*link)->SetController(this); | 561 (*link)->SetController(this); |
| 561 (*link)->SetNormalColor(login::kLinkColor); | 562 (*link)->SetNormalColor(login::kLinkColor); |
| 562 (*link)->SetHighlightedColor(login::kLinkColor); | 563 (*link)->SetHighlightedColor(login::kLinkColor); |
| 563 AddChildView(*link); | 564 AddChildView(*link); |
| 564 } | 565 } |
| 565 | 566 |
| 566 } // namespace chromeos | 567 } // namespace chromeos |
| OLD | NEW |