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/native_theme_button_example.h" | 5 #include "ui/views/examples/native_theme_button_example.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/stringprintf.h" | 10 #include "base/stringprintf.h" |
(...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
244 column_set->AddColumn(GridLayout::FILL, GridLayout::FILL, | 244 column_set->AddColumn(GridLayout::FILL, GridLayout::FILL, |
245 1, GridLayout::USE_PREF, 0, 0); | 245 1, GridLayout::USE_PREF, 0, 0); |
246 column_set->AddPaddingColumn(0, 16); | 246 column_set->AddPaddingColumn(0, 16); |
247 layout->StartRow(1, 1); | 247 layout->StartRow(1, 1); |
248 layout->AddView(button_); | 248 layout->AddView(button_); |
249 | 249 |
250 layout->AddPaddingRow(0, 8); | 250 layout->AddPaddingRow(0, 8); |
251 } | 251 } |
252 | 252 |
253 void NativeThemeButtonExample::ButtonPressed(Button* sender, | 253 void NativeThemeButtonExample::ButtonPressed(Button* sender, |
254 const Event& event) { | 254 const ui::Event& event) { |
255 PrintStatus(button_->MessWithState().c_str()); | 255 PrintStatus(button_->MessWithState().c_str()); |
256 } | 256 } |
257 | 257 |
258 } // namespace examples | 258 } // namespace examples |
259 } // namespace views | 259 } // namespace views |
OLD | NEW |