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

Side by Side Diff: ash/magnifier/magnification_controller_unittest.cc

Issue 155493002: Add key based scrolling on magnified screen for kiosk mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 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 (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/magnifier/magnification_controller.h" 5 #include "ash/magnifier/magnification_controller.h"
6
6 #include "ash/magnifier/magnifier_constants.h" 7 #include "ash/magnifier/magnifier_constants.h"
7 #include "ash/shell.h" 8 #include "ash/shell.h"
8 #include "ash/test/ash_test_base.h" 9 #include "ash/test/ash_test_base.h"
9 #include "base/strings/stringprintf.h" 10 #include "base/strings/stringprintf.h"
10 #include "ui/aura/client/aura_constants.h" 11 #include "ui/aura/client/aura_constants.h"
11 #include "ui/aura/env.h" 12 #include "ui/aura/env.h"
12 #include "ui/aura/root_window.h" 13 #include "ui/aura/root_window.h"
13 #include "ui/aura/test/event_generator.h" 14 #include "ui/aura/test/event_generator.h"
14 #include "ui/gfx/rect_conversions.h" 15 #include "ui/gfx/rect_conversions.h"
15 #include "ui/gfx/screen.h" 16 #include "ui/gfx/screen.h"
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
433 scale *= kMagnificationScaleFactor; 434 scale *= kMagnificationScaleFactor;
434 GetMagnificationController()->SetScale(scale, false); 435 GetMagnificationController()->SetScale(scale, false);
435 EXPECT_FLOAT_EQ(4.f, GetMagnificationController()->GetScale()); 436 EXPECT_FLOAT_EQ(4.f, GetMagnificationController()->GetScale());
436 generator.MoveMouseToInHost(gfx::Point(0, 300)); 437 generator.MoveMouseToInHost(gfx::Point(0, 300));
437 EXPECT_EQ("139,298", env->last_mouse_location().ToString()); 438 EXPECT_EQ("139,298", env->last_mouse_location().ToString());
438 EXPECT_EQ("100,300", GetHostMouseLocation()); 439 EXPECT_EQ("100,300", GetHostMouseLocation());
439 } 440 }
440 441
441 } // namespace internal 442 } // namespace internal
442 } // namespace ash 443 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698