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

Side by Side Diff: ash/test/ash_test_base.cc

Issue 273073002: Changes code using Compositor to pass in ContextFactory (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix tooltip on chromeos Created 6 years, 7 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 | « ash/test/ash_test_base.h ('k') | ash/test/ash_test_helper.h » ('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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ash/test/ash_test_base.h" 5 #include "ash/test/ash_test_base.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "ash/ash_switches.h" 10 #include "ash/ash_switches.h"
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 } 192 }
193 193
194 aura::test::EventGenerator& AshTestBase::GetEventGenerator() { 194 aura::test::EventGenerator& AshTestBase::GetEventGenerator() {
195 if (!event_generator_) { 195 if (!event_generator_) {
196 event_generator_.reset( 196 event_generator_.reset(
197 new aura::test::EventGenerator(new AshEventGeneratorDelegate())); 197 new aura::test::EventGenerator(new AshEventGeneratorDelegate()));
198 } 198 }
199 return *event_generator_.get(); 199 return *event_generator_.get();
200 } 200 }
201 201
202 ui::ContextFactory* AshTestBase::context_factory() {
203 return ash_test_helper_->context_factory();
204 }
205
202 bool AshTestBase::SupportsMultipleDisplays() { 206 bool AshTestBase::SupportsMultipleDisplays() {
203 return AshTestHelper::SupportsMultipleDisplays(); 207 return AshTestHelper::SupportsMultipleDisplays();
204 } 208 }
205 209
206 bool AshTestBase::SupportsHostWindowResize() { 210 bool AshTestBase::SupportsHostWindowResize() {
207 return AshTestHelper::SupportsHostWindowResize(); 211 return AshTestHelper::SupportsHostWindowResize();
208 } 212 }
209 213
210 void AshTestBase::UpdateDisplay(const std::string& display_specs) { 214 void AshTestBase::UpdateDisplay(const std::string& display_specs) {
211 DisplayManagerTestApi display_manager_test_api( 215 DisplayManagerTestApi display_manager_test_api(
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 338
335 void AshTestBase::UnblockUserSession() { 339 void AshTestBase::UnblockUserSession() {
336 Shell::GetInstance()->session_state_delegate()->UnlockScreen(); 340 Shell::GetInstance()->session_state_delegate()->UnlockScreen();
337 SetSessionStarted(true); 341 SetSessionStarted(true);
338 SetUserAddingScreenRunning(false); 342 SetUserAddingScreenRunning(false);
339 } 343 }
340 344
341 345
342 } // namespace test 346 } // namespace test
343 } // namespace ash 347 } // namespace ash
OLDNEW
« no previous file with comments | « ash/test/ash_test_base.h ('k') | ash/test/ash_test_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698