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

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

Issue 8360018: Revert 106606 - Use WebKit compositor in ui::Layer (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 2 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
« no previous file with comments | « ui/aura_shell/aura_shell.gyp ('k') | ui/aura_shell/test_suite.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "base/at_exit.h" 5 #include "base/at_exit.h"
6 #include "base/command_line.h" 6 #include "base/command_line.h"
7 #include "base/i18n/icu_util.h" 7 #include "base/i18n/icu_util.h"
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "ui/aura/desktop.h" 10 #include "ui/aura/desktop.h"
11 #include "ui/aura_shell/examples/toplevel_window.h" 11 #include "ui/aura_shell/examples/toplevel_window.h"
12 #include "ui/aura_shell/launcher/launcher_types.h" 12 #include "ui/aura_shell/launcher/launcher_types.h"
13 #include "ui/aura_shell/shell.h" 13 #include "ui/aura_shell/shell.h"
14 #include "ui/aura_shell/shell_delegate.h" 14 #include "ui/aura_shell/shell_delegate.h"
15 #include "ui/aura_shell/shell_factory.h" 15 #include "ui/aura_shell/shell_factory.h"
16 #include "ui/base/resource/resource_bundle.h" 16 #include "ui/base/resource/resource_bundle.h"
17 #include "ui/base/ui_base_paths.h" 17 #include "ui/base/ui_base_paths.h"
18 #include "ui/gfx/compositor/compositor_test_support.h"
19 18
20 namespace { 19 namespace {
21 20
22 class ShellDelegateImpl : public aura_shell::ShellDelegate { 21 class ShellDelegateImpl : public aura_shell::ShellDelegate {
23 public: 22 public:
24 ShellDelegateImpl() { 23 ShellDelegateImpl() {
25 } 24 }
26 25
27 virtual void CreateNewWindow() OVERRIDE { 26 virtual void CreateNewWindow() OVERRIDE {
28 aura_shell::examples::ToplevelWindow::CreateParams create_params; 27 aura_shell::examples::ToplevelWindow::CreateParams create_params;
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 62
64 // The exit manager is in charge of calling the dtors of singleton objects. 63 // The exit manager is in charge of calling the dtors of singleton objects.
65 base::AtExitManager exit_manager; 64 base::AtExitManager exit_manager;
66 65
67 ui::RegisterPathProvider(); 66 ui::RegisterPathProvider();
68 icu_util::Initialize(); 67 icu_util::Initialize();
69 ResourceBundle::InitSharedInstance("en-US"); 68 ResourceBundle::InitSharedInstance("en-US");
70 69
71 // Create the message-loop here before creating the desktop. 70 // Create the message-loop here before creating the desktop.
72 MessageLoop message_loop(MessageLoop::TYPE_UI); 71 MessageLoop message_loop(MessageLoop::TYPE_UI);
73 ui::CompositorTestSupport::Initialize();
74 72
75 aura_shell::Shell::GetInstance()->SetDelegate(new ShellDelegateImpl);; 73 aura_shell::Shell::GetInstance()->SetDelegate(new ShellDelegateImpl);;
76 74
77 aura_shell::examples::InitWindowTypeLauncher(); 75 aura_shell::examples::InitWindowTypeLauncher();
78 76
79 aura::Desktop::GetInstance()->Run(); 77 aura::Desktop::GetInstance()->Run();
80 78
81 delete aura::Desktop::GetInstance(); 79 delete aura::Desktop::GetInstance();
82 80
83 ui::CompositorTestSupport::Terminate();
84
85 return 0; 81 return 0;
86 } 82 }
87 83
OLDNEW
« no previous file with comments | « ui/aura_shell/aura_shell.gyp ('k') | ui/aura_shell/test_suite.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698