OLD | NEW |
1 // Copyright (c) 2011 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 "views/examples/textfield_example.h" | 5 #include "views/examples/textfield_example.h" |
6 | 6 |
7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
8 #include "views/controls/label.h" | 8 #include "views/controls/label.h" |
| 9 #include "views/controls/textfield/textfield.h" |
9 #include "views/layout/grid_layout.h" | 10 #include "views/layout/grid_layout.h" |
10 #include "views/view.h" | 11 #include "views/view.h" |
11 | 12 |
12 namespace examples { | 13 namespace examples { |
13 | 14 |
14 TextfieldExample::TextfieldExample(ExamplesMain* main) | 15 TextfieldExample::TextfieldExample(ExamplesMain* main) |
15 : ExampleBase(main) { | 16 : ExampleBase(main) { |
16 } | 17 } |
17 | 18 |
18 TextfieldExample::~TextfieldExample() { | 19 TextfieldExample::~TextfieldExample() { |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 } else if (sender == clear_all_) { | 76 } else if (sender == clear_all_) { |
76 string16 empty; | 77 string16 empty; |
77 name_->SetText(empty); | 78 name_->SetText(empty); |
78 password_->SetText(empty); | 79 password_->SetText(empty); |
79 } else if (sender == append_) { | 80 } else if (sender == append_) { |
80 name_->AppendText(WideToUTF16(L"[append]")); | 81 name_->AppendText(WideToUTF16(L"[append]")); |
81 } | 82 } |
82 } | 83 } |
83 | 84 |
84 } // namespace examples | 85 } // namespace examples |
OLD | NEW |