OLD | NEW |
---|---|
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 "ui/aura/desktop/desktop_cursor_client.h" | 5 #include "ui/aura/desktop/desktop_cursor_client.h" |
6 | 6 |
7 #include "ui/aura/root_window.h" | 7 #include "ui/aura/root_window.h" |
8 | 8 |
9 namespace aura { | 9 namespace aura { |
10 | 10 |
11 DesktopCursorClient::DesktopCursorClient(aura::RootWindow* window) | 11 DesktopCursorClient::DesktopCursorClient(aura::RootWindow* window) |
12 : root_window_(window) { | 12 : root_window_(window) { |
13 } | 13 } |
14 | 14 |
15 DesktopCursorClient::~DesktopCursorClient() { | 15 DesktopCursorClient::~DesktopCursorClient() { |
16 } | 16 } |
17 | 17 |
18 void DesktopCursorClient::SetCursor(gfx::NativeCursor cursor) { | 18 void DesktopCursorClient::SetCursor(gfx::NativeCursor cursor) { |
19 root_window_->SetCursor(cursor); | 19 root_window_->SetCursor(cursor); |
20 } | 20 } |
21 | 21 |
22 void DesktopCursorClient::ShowCursor(bool show) { | 22 void DesktopCursorClient::ShowCursor(bool show) { |
23 root_window_->ShowCursor(show); | 23 root_window_->ShowCursor(show); |
24 } | 24 } |
25 | 25 |
26 bool DesktopCursorClient::IsCursorVisible() const { | 26 bool DesktopCursorClient::IsCursorVisible() const { |
27 return root_window_->cursor_shown(); | 27 return root_window_->cursor_shown(); |
28 } | 28 } |
29 | 29 |
30 void DesktopCursorClient::SetDeviceScaleFactor(float scale_factor) { | |
31 // NOTIMPLEMENTED(); | |
oshima
2012/09/07 19:52:01
Instead, can you add TODO(erg|ben) regarding what
mazda
2012/09/07 22:38:14
Done.
| |
32 } | |
33 | |
30 } // namespace aura | 34 } // namespace aura |
OLD | NEW |