OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "base/at_exit.h" |
| 6 #include "base/command_line.h" |
| 7 #include "base/i18n/icu_util.h" |
| 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/message_loop.h" |
| 10 #include "third_party/skia/include/core/SkXfermode.h" |
| 11 #include "ui/aura/desktop.h" |
| 12 #include "ui/aura/desktop_host.h" |
| 13 #include "ui/aura/window.h" |
| 14 #include "ui/aura/window_delegate.h" |
| 15 #include "ui/base/resource/resource_bundle.h" |
| 16 #include "ui/base/ui_base_paths.h" |
| 17 #include "ui/gfx/canvas.h" |
| 18 #include "ui/gfx/canvas_skia.h" |
| 19 #include "ui/gfx/rect.h" |
| 20 #include "views/widget/widget.h" |
| 21 #include "views/widget/widget_delegate.h" |
| 22 |
| 23 #if !defined(OS_WIN) |
| 24 #include "ui/aura/hit_test.h" |
| 25 #endif |
| 26 |
| 27 int main(int argc, char** argv) { |
| 28 CommandLine::Init(argc, argv); |
| 29 |
| 30 // The exit manager is in charge of calling the dtors of singleton objects. |
| 31 base::AtExitManager exit_manager; |
| 32 |
| 33 ui::RegisterPathProvider(); |
| 34 icu_util::Initialize(); |
| 35 ResourceBundle::InitSharedInstance("en-US"); |
| 36 |
| 37 #if defined(USE_X11) |
| 38 base::MessagePumpX::DisableGtkMessagePump(); |
| 39 #endif |
| 40 |
| 41 // Create the message-loop here before creating the desktop. |
| 42 MessageLoop message_loop(MessageLoop::TYPE_UI); |
| 43 |
| 44 aura::Desktop::GetInstance()->Run(); |
| 45 |
| 46 delete aura::Desktop::GetInstance(); |
| 47 |
| 48 return 0; |
| 49 } |
| 50 |
OLD | NEW |