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

Side by Side Diff: trunk/src/ui/aura/test/test_cursor_client.cc

Issue 233693002: Revert 263043 "Remove obsolete scale related APIs for cursor" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 8 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 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 "ui/aura/test/test_cursor_client.h" 5 #include "ui/aura/test/test_cursor_client.h"
6 6
7 #include "ui/aura/client/cursor_client_observer.h" 7 #include "ui/aura/client/cursor_client_observer.h"
8 8
9 namespace aura { 9 namespace aura {
10 namespace test { 10 namespace test {
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 OnCursorVisibilityChanged(false)); 42 OnCursorVisibilityChanged(false));
43 } 43 }
44 44
45 void TestCursorClient::SetCursorSet(ui::CursorSetType cursor_set) { 45 void TestCursorClient::SetCursorSet(ui::CursorSetType cursor_set) {
46 } 46 }
47 47
48 ui::CursorSetType TestCursorClient::GetCursorSet() const { 48 ui::CursorSetType TestCursorClient::GetCursorSet() const {
49 return ui::CURSOR_SET_NORMAL; 49 return ui::CURSOR_SET_NORMAL;
50 } 50 }
51 51
52 void TestCursorClient::SetScale(float scale) {
53 }
54
55 float TestCursorClient::GetScale() const {
56 return 1.f;
57 }
58
52 bool TestCursorClient::IsCursorVisible() const { 59 bool TestCursorClient::IsCursorVisible() const {
53 return visible_; 60 return visible_;
54 } 61 }
55 62
56 void TestCursorClient::EnableMouseEvents() { 63 void TestCursorClient::EnableMouseEvents() {
57 mouse_events_enabled_ = true; 64 mouse_events_enabled_ = true;
58 } 65 }
59 66
60 void TestCursorClient::DisableMouseEvents() { 67 void TestCursorClient::DisableMouseEvents() {
61 mouse_events_enabled_ = false; 68 mouse_events_enabled_ = false;
(...skipping 30 matching lines...) Expand all
92 observers_.RemoveObserver(observer); 99 observers_.RemoveObserver(observer);
93 } 100 }
94 101
95 bool TestCursorClient::ShouldHideCursorOnKeyEvent( 102 bool TestCursorClient::ShouldHideCursorOnKeyEvent(
96 const ui::KeyEvent& event) const { 103 const ui::KeyEvent& event) const {
97 return true; 104 return true;
98 } 105 }
99 106
100 } // namespace test 107 } // namespace test
101 } // namespace aura 108 } // namespace aura
OLDNEW
« no previous file with comments | « trunk/src/ui/aura/test/test_cursor_client.h ('k') | trunk/src/ui/views/widget/desktop_aura/desktop_native_cursor_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698