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

Side by Side Diff: content/shell/renderer/test_runner/test_runner.cc

Issue 268673015: Support screen.lockOrientation() / screen.unlockOrientation() when running layout tests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Take feedback into consideration 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "content/shell/renderer/test_runner/test_runner.h" 5 #include "content/shell/renderer/test_runner/test_runner.h"
6 6
7 #include <limits> 7 #include <limits>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "content/shell/common/test_runner/test_preferences.h" 10 #include "content/shell/common/test_runner/test_preferences.h"
(...skipping 1401 matching lines...) Expand 10 before | Expand all | Expand 10 after
1412 1412
1413 if (delegate_) { 1413 if (delegate_) {
1414 // Reset the default quota for each origin to 5MB 1414 // Reset the default quota for each origin to 5MB
1415 delegate_->setDatabaseQuota(5 * 1024 * 1024); 1415 delegate_->setDatabaseQuota(5 * 1024 * 1024);
1416 delegate_->setDeviceScaleFactor(1); 1416 delegate_->setDeviceScaleFactor(1);
1417 delegate_->setAcceptAllCookies(false); 1417 delegate_->setAcceptAllCookies(false);
1418 delegate_->setLocale(""); 1418 delegate_->setLocale("");
1419 delegate_->useUnfortunateSynchronousResizeMode(false); 1419 delegate_->useUnfortunateSynchronousResizeMode(false);
1420 delegate_->disableAutoResizeMode(WebSize()); 1420 delegate_->disableAutoResizeMode(WebSize());
1421 delegate_->deleteAllCookies(); 1421 delegate_->deleteAllCookies();
1422 delegate_->resetScreenOrientation();
1422 } 1423 }
1423 1424
1424 dump_editting_callbacks_ = false; 1425 dump_editting_callbacks_ = false;
1425 dump_as_text_ = false; 1426 dump_as_text_ = false;
1426 dump_as_markup_ = false; 1427 dump_as_markup_ = false;
1427 generate_pixel_results_ = true; 1428 generate_pixel_results_ = true;
1428 dump_child_frame_scroll_positions_ = false; 1429 dump_child_frame_scroll_positions_ = false;
1429 dump_child_frames_as_text_ = false; 1430 dump_child_frames_as_text_ = false;
1430 dump_icon_changes_ = false; 1431 dump_icon_changes_ = false;
1431 dump_as_audio_ = false; 1432 dump_as_audio_ = false;
(...skipping 1178 matching lines...) Expand 10 before | Expand all | Expand 10 after
2610 } 2611 }
2611 2612
2612 void TestRunner::DidLosePointerLockInternal() { 2613 void TestRunner::DidLosePointerLockInternal() {
2613 bool was_locked = pointer_locked_; 2614 bool was_locked = pointer_locked_;
2614 pointer_locked_ = false; 2615 pointer_locked_ = false;
2615 if (was_locked) 2616 if (was_locked)
2616 web_view_->didLosePointerLock(); 2617 web_view_->didLosePointerLock();
2617 } 2618 }
2618 2619
2619 } // namespace content 2620 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698