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

Side by Side Diff: chrome/browser/chrome_browser_main_extra_parts_aura.cc

Issue 8873001: Revert 113470 - Makes tests either use mock compositor or mock WebGraphicsContext3D depending upo... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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 | « build/all.gyp ('k') | chrome/chrome_dll.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Deleted: svn:mergeinfo
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 "chrome/browser/chrome_browser_main_extra_parts_aura.h" 5 #include "chrome/browser/chrome_browser_main_extra_parts_aura.h"
6
7 #include "base/command_line.h"
8 #include "chrome/common/chrome_switches.h"
9 #include "chrome/browser/ui/views/aura/chrome_shell_delegate.h" 6 #include "chrome/browser/ui/views/aura/chrome_shell_delegate.h"
10 #include "chrome/browser/ui/views/aura/screen_orientation_listener.h" 7 #include "chrome/browser/ui/views/aura/screen_orientation_listener.h"
11 #include "ui/aura/root_window.h" 8 #include "ui/aura/root_window.h"
12 #include "ui/aura_shell/shell.h" 9 #include "ui/aura_shell/shell.h"
13 10
14 #if defined(OS_CHROMEOS) 11 #if defined(OS_CHROMEOS)
15 #include "chrome/browser/chromeos/system/runtime_environment.h" 12 #include "chrome/browser/chromeos/system/runtime_environment.h"
16 #endif 13 #endif
17 14
18 #if defined(USE_WEBKIT_COMPOSITOR)
19 #include "ui/gfx/compositor/compositor_setup.h"
20 #else
21 #include "ui/gfx/test/gfx_test_utils.h"
22 #endif
23
24 ChromeBrowserMainExtraPartsAura::ChromeBrowserMainExtraPartsAura() 15 ChromeBrowserMainExtraPartsAura::ChromeBrowserMainExtraPartsAura()
25 : ChromeBrowserMainExtraParts() { 16 : ChromeBrowserMainExtraParts() {
26 } 17 }
27 18
28 void ChromeBrowserMainExtraPartsAura::PostBrowserProcessInit() { 19 void ChromeBrowserMainExtraPartsAura::PostBrowserProcessInit() {
29 if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kTestCompositor)) {
30 #if defined(USE_WEBKIT_COMPOSITOR)
31 ui::SetupTestCompositor();
32 #else
33 ui::gfx_test_utils::SetupTestCompositor();
34 #endif
35 }
36
37 #if defined(OS_CHROMEOS) 20 #if defined(OS_CHROMEOS)
38 if (chromeos::system::runtime_environment::IsRunningOnChromeOS()) 21 if (chromeos::system::runtime_environment::IsRunningOnChromeOS())
39 aura::RootWindow::set_use_fullscreen_host_window(true); 22 aura::RootWindow::set_use_fullscreen_host_window(true);
40 #endif 23 #endif
41 24
42 // Shell takes ownership of ChromeShellDelegate. 25 // Shell takes ownership of ChromeShellDelegate.
43 aura_shell::Shell::CreateInstance(new ChromeShellDelegate); 26 aura_shell::Shell::CreateInstance(new ChromeShellDelegate);
44 27
45 // Make sure the singleton ScreenOrientationListener object is created. 28 // Make sure the singleton ScreenOrientationListener object is created.
46 ScreenOrientationListener::GetInstance(); 29 ScreenOrientationListener::GetInstance();
47 } 30 }
48 31
49 void ChromeBrowserMainExtraPartsAura::PostMainMessageLoopRun() { 32 void ChromeBrowserMainExtraPartsAura::PostMainMessageLoopRun() {
50 aura_shell::Shell::DeleteInstance(); 33 aura_shell::Shell::DeleteInstance();
51 aura::RootWindow::DeleteInstance(); 34 aura::RootWindow::DeleteInstance();
52 } 35 }
OLDNEW
« no previous file with comments | « build/all.gyp ('k') | chrome/chrome_dll.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698