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/string_util.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 } else if (sender == column2_visible_checkbox_) { | 137 } else if (sender == column2_visible_checkbox_) { |
138 index = 1; | 138 index = 1; |
139 show = column2_visible_checkbox_->checked(); | 139 show = column2_visible_checkbox_->checked(); |
140 } else if (sender == column3_visible_checkbox_) { | 140 } else if (sender == column3_visible_checkbox_) { |
141 index = 2; | 141 index = 2; |
142 show = column3_visible_checkbox_->checked(); | 142 show = column3_visible_checkbox_->checked(); |
143 } else if (sender == column4_visible_checkbox_) { | 143 } else if (sender == column4_visible_checkbox_) { |
144 index = 3; | 144 index = 3; |
145 show = column4_visible_checkbox_->checked(); | 145 show = column4_visible_checkbox_->checked(); |
146 } | 146 } |
147 #if !defined(USE_AURA) | 147 #if defined(OS_WIN) && !defined(USE_AURA) |
148 table_->SetColumnVisibility(index, show); | 148 table_->SetColumnVisibility(index, show); |
149 #endif | 149 #endif |
150 } | 150 } |
151 | 151 |
152 } // namespace examples | 152 } // namespace examples |
153 } // namespace views | 153 } // namespace views |
OLD | NEW |