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

Side by Side Diff: views/examples/textfield_example.cc

Issue 6628037: views: Moves TextfieldController/TextRange into their own headers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 9 years, 9 months 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
« no previous file with comments | « views/examples/textfield_example.h ('k') | views/views.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « views/examples/textfield_example.h ('k') | views/views.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698