OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "ui/views/examples/table_example.h" | 5 #include "ui/views/examples/table_example.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/string_util.h" | 9 #include "base/strings/string_util.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
11 #include "third_party/skia/include/core/SkBitmap.h" | 11 #include "third_party/skia/include/core/SkBitmap.h" |
12 #include "third_party/skia/include/core/SkCanvas.h" | 12 #include "third_party/skia/include/core/SkCanvas.h" |
13 #include "ui/gfx/image/image_skia.h" | 13 #include "ui/gfx/image/image_skia.h" |
14 #include "ui/views/controls/button/checkbox.h" | 14 #include "ui/views/controls/button/checkbox.h" |
15 #include "ui/views/layout/grid_layout.h" | 15 #include "ui/views/layout/grid_layout.h" |
16 | 16 |
17 namespace views { | 17 namespace views { |
18 namespace examples { | 18 namespace examples { |
19 | 19 |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 show = column3_visible_checkbox_->checked(); | 171 show = column3_visible_checkbox_->checked(); |
172 } else if (sender == column4_visible_checkbox_) { | 172 } else if (sender == column4_visible_checkbox_) { |
173 index = 3; | 173 index = 3; |
174 show = column4_visible_checkbox_->checked(); | 174 show = column4_visible_checkbox_->checked(); |
175 } | 175 } |
176 table_->SetColumnVisibility(index, show); | 176 table_->SetColumnVisibility(index, show); |
177 } | 177 } |
178 | 178 |
179 } // namespace examples | 179 } // namespace examples |
180 } // namespace views | 180 } // namespace views |
OLD | NEW |