Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(226)

Side by Side Diff: ui/aura_shell/aura_shell_main.cc

Issue 7890054: Adds code for a new Aura shell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698