| OLD | NEW |
| 1 // Copyright (c) 2011 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 "base/at_exit.h" | 7 #include "base/at_exit.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/i18n/icu_util.h" | 9 #include "base/i18n/icu_util.h" |
| 10 #include "base/process_util.h" | 10 #include "base/process_util.h" |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 | 178 |
| 179 // We do not use this header: chrome/common/chrome_switches.h | 179 // We do not use this header: chrome/common/chrome_switches.h |
| 180 // because that would create a bad dependency back on Chrome. | 180 // because that would create a bad dependency back on Chrome. |
| 181 views::Widget::SetPureViews( | 181 views::Widget::SetPureViews( |
| 182 CommandLine::ForCurrentProcess()->HasSwitch("use-pure-views")); | 182 CommandLine::ForCurrentProcess()->HasSwitch("use-pure-views")); |
| 183 | 183 |
| 184 examples::ExamplesMain main; | 184 examples::ExamplesMain main; |
| 185 main.Init(); | 185 main.Init(); |
| 186 | 186 |
| 187 views::AcceleratorHandler accelerator_handler; | 187 views::AcceleratorHandler accelerator_handler; |
| 188 MessageLoopForUI::current()->Run(&accelerator_handler); | 188 MessageLoopForUI::current()->RunWithDispatcher(&accelerator_handler); |
| 189 | 189 |
| 190 #if defined(OS_WIN) | 190 #if defined(OS_WIN) |
| 191 OleUninitialize(); | 191 OleUninitialize(); |
| 192 #endif | 192 #endif |
| 193 return 0; | 193 return 0; |
| 194 } | 194 } |
| OLD | NEW |