Remove existing Skia suppressions
[chromium-blink-merge.git] / ash / test / cursor_manager_test_api.cc
bloba8bffe8b1858e91a7befb0474de8d50af38535c5
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
3 // found in the LICENSE file.
5 #include "ash/test/cursor_manager_test_api.h"
7 #include "ash/shell.h"
8 #include "ash/test/shell_test_api.h"
9 #include "ash/wm/ash_native_cursor_manager.h"
10 #include "ui/base/cursor/image_cursors.h"
11 #include "ui/gfx/display.h"
12 #include "ui/wm/core/cursor_manager.h"
14 namespace ash {
15 namespace test {
17 CursorManagerTestApi::CursorManagerTestApi(
18 wm::CursorManager* cursor_manager)
19 : cursor_manager_(cursor_manager) {
22 CursorManagerTestApi::~CursorManagerTestApi() {
25 // TODO(tdanderson): CursorManagerTestApi may no longer be needed.
26 ui::CursorSetType CursorManagerTestApi::GetCurrentCursorSet() const {
27 return cursor_manager_->GetCursorSet();
30 gfx::NativeCursor CursorManagerTestApi::GetCurrentCursor() const {
31 return cursor_manager_->GetCursor();
34 gfx::Display::Rotation
35 CursorManagerTestApi::GetCurrentCursorRotation() const {
36 return ShellTestApi(Shell::GetInstance()).ash_native_cursor_manager()->
37 image_cursors_->GetRotation();
40 float
41 CursorManagerTestApi::GetCurrentCursorScale() const {
42 return ShellTestApi(Shell::GetInstance()).ash_native_cursor_manager()->
43 image_cursors_->GetScale();
46 } // namespace test
47 } // namespace ash