OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/ui/views/autofill/expanding_textfield.h" | 5 #include "chrome/browser/ui/views/autofill/expanding_textfield.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/bind.h" | 9 #include "base/bind.h" |
8 #include "base/strings/string_split.h" | 10 #include "base/strings/string_split.h" |
9 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
10 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
11 #include "chrome/browser/ui/views/autofill/decorated_textfield.h" | 13 #include "chrome/browser/ui/views/autofill/decorated_textfield.h" |
12 #include "ui/views/layout/box_layout.h" | 14 #include "ui/views/layout/box_layout.h" |
13 | 15 |
14 namespace autofill { | 16 namespace autofill { |
15 | 17 |
16 namespace { | 18 namespace { |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 void ExpandingTextfield::ForEachTextfield( | 140 void ExpandingTextfield::ForEachTextfield( |
139 void (BaseType::* f)(Param), Param p) const { | 141 void (BaseType::* f)(Param), Param p) const { |
140 for (std::list<DecoratedTextfield*>::const_iterator iter = | 142 for (std::list<DecoratedTextfield*>::const_iterator iter = |
141 textfields_.begin(); | 143 textfields_.begin(); |
142 iter != textfields_.end(); ++iter) { | 144 iter != textfields_.end(); ++iter) { |
143 base::Bind(f, base::Unretained(*iter), p).Run(); | 145 base::Bind(f, base::Unretained(*iter), p).Run(); |
144 } | 146 } |
145 } | 147 } |
146 | 148 |
147 } // namespace autofill | 149 } // namespace autofill |
OLD | NEW |