| 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 "app/app_paths.h" | 5 #include "app/app_paths.h" |
| 6 #include "base/at_exit.h" | 6 #include "base/at_exit.h" |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/i18n/icu_util.h" | 8 #include "base/i18n/icu_util.h" |
| 9 #include "base/process_util.h" | 9 #include "base/process_util.h" |
| 10 #include "ui/base/resource/resource_bundle.h" | 10 #include "ui/base/resource/resource_bundle.h" |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 ResourceBundle::InitSharedInstance("en-US"); | 43 ResourceBundle::InitSharedInstance("en-US"); |
| 44 | 44 |
| 45 MessageLoop main_message_loop(MessageLoop::TYPE_UI); | 45 MessageLoop main_message_loop(MessageLoop::TYPE_UI); |
| 46 | 46 |
| 47 views::desktop::DesktopViewsDelegate views_delegate; | 47 views::desktop::DesktopViewsDelegate views_delegate; |
| 48 | 48 |
| 49 // Desktop mode only supports a pure-views configuration. | 49 // Desktop mode only supports a pure-views configuration. |
| 50 views::Widget::SetPureViews(true); | 50 views::Widget::SetPureViews(true); |
| 51 | 51 |
| 52 views::desktop::DesktopWindow::CreateDesktopWindow(); | 52 views::desktop::DesktopWindow::CreateDesktopWindow(); |
| 53 views::desktop::DesktopWindow::desktop_window->CreateTestWindow( |
| 54 L"Sample Window 1", SK_ColorWHITE, gfx::Rect(500, 200, 400, 400), true); |
| 55 views::desktop::DesktopWindow::desktop_window->CreateTestWindow( |
| 56 L"Sample Window 2", SK_ColorRED, gfx::Rect(600, 450, 450, 300), false); |
| 53 | 57 |
| 54 views::AcceleratorHandler accelerator_handler; | 58 views::AcceleratorHandler accelerator_handler; |
| 55 MessageLoopForUI::current()->Run(&accelerator_handler); | 59 MessageLoopForUI::current()->Run(&accelerator_handler); |
| 56 | 60 |
| 57 #if defined(OS_WIN) | 61 #if defined(OS_WIN) |
| 58 OleUninitialize(); | 62 OleUninitialize(); |
| 59 #endif | 63 #endif |
| 60 return 0; | 64 return 0; |
| 61 } | 65 } |
| OLD | NEW |