| OLD | NEW |
| 1 // Copyright (c) 2010 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/examples_main.h" | 5 #include "views/examples/examples_main.h" |
| 6 | 6 |
| 7 #include "app/app_paths.h" | 7 #include "app/app_paths.h" |
| 8 #include "base/at_exit.h" | 8 #include "base/at_exit.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/i18n/icu_util.h" | 10 #include "base/i18n/icu_util.h" |
| 11 #include "base/process_util.h" | 11 #include "base/process_util.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 27 #include "views/examples/tabbed_pane_example.h" | 27 #include "views/examples/tabbed_pane_example.h" |
| 28 #if defined(OS_WIN) | 28 #if defined(OS_WIN) |
| 29 // TableView is not yet ported to Linux. | 29 // TableView is not yet ported to Linux. |
| 30 #include "views/examples/table_example.h" | 30 #include "views/examples/table_example.h" |
| 31 #endif | 31 #endif |
| 32 #include "views/examples/table2_example.h" | 32 #include "views/examples/table2_example.h" |
| 33 #include "views/examples/textfield_example.h" | 33 #include "views/examples/textfield_example.h" |
| 34 #include "views/examples/throbber_example.h" | 34 #include "views/examples/throbber_example.h" |
| 35 #include "views/examples/widget_example.h" | 35 #include "views/examples/widget_example.h" |
| 36 #include "views/focus/accelerator_handler.h" | 36 #include "views/focus/accelerator_handler.h" |
| 37 #include "views/grid_layout.h" | 37 #include "views/layout/grid_layout.h" |
| 38 #include "views/window/window.h" | 38 #include "views/window/window.h" |
| 39 | 39 |
| 40 namespace examples { | 40 namespace examples { |
| 41 | 41 |
| 42 views::View* ExamplesMain::GetContentsView() { | 42 views::View* ExamplesMain::GetContentsView() { |
| 43 return contents_; | 43 return contents_; |
| 44 } | 44 } |
| 45 | 45 |
| 46 void ExamplesMain::WindowClosing() { | 46 void ExamplesMain::WindowClosing() { |
| 47 MessageLoopForUI::current()->Quit(); | 47 MessageLoopForUI::current()->Quit(); |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 170 | 170 |
| 171 CommandLine::Init(argc, argv); | 171 CommandLine::Init(argc, argv); |
| 172 examples::ExamplesMain main; | 172 examples::ExamplesMain main; |
| 173 main.Run(); | 173 main.Run(); |
| 174 | 174 |
| 175 #if defined(OS_WIN) | 175 #if defined(OS_WIN) |
| 176 OleUninitialize(); | 176 OleUninitialize(); |
| 177 #endif | 177 #endif |
| 178 return 0; | 178 return 0; |
| 179 } | 179 } |
| OLD | NEW |