OLD | NEW |
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 "ui/base/cursor/cursor_loader_ozone.h" | 5 #include "ui/base/cursor/cursor_loader_ozone.h" |
6 | 6 |
7 #include "ui/base/cursor/cursor.h" | 7 #include "ui/base/cursor/cursor.h" |
8 #include "ui/base/cursor/ozone/cursor_factory_ozone.h" | |
9 #include "ui/base/resource/resource_bundle.h" | 8 #include "ui/base/resource/resource_bundle.h" |
10 #include "ui/gfx/image/image_skia.h" | 9 #include "ui/gfx/image/image_skia.h" |
| 10 #include "ui/ozone/public/cursor_factory_ozone.h" |
11 | 11 |
12 namespace ui { | 12 namespace ui { |
13 | 13 |
14 CursorLoaderOzone::CursorLoaderOzone() {} | 14 CursorLoaderOzone::CursorLoaderOzone() {} |
15 | 15 |
16 CursorLoaderOzone::~CursorLoaderOzone() {} | 16 CursorLoaderOzone::~CursorLoaderOzone() {} |
17 | 17 |
18 void CursorLoaderOzone::LoadImageCursor(int id, | 18 void CursorLoaderOzone::LoadImageCursor(int id, |
19 int resource_id, | 19 int resource_id, |
20 const gfx::Point& hot) { | 20 const gfx::Point& hot) { |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 } | 59 } |
60 | 60 |
61 cursor->SetPlatformCursor(platform); | 61 cursor->SetPlatformCursor(platform); |
62 } | 62 } |
63 | 63 |
64 CursorLoader* CursorLoader::Create() { | 64 CursorLoader* CursorLoader::Create() { |
65 return new CursorLoaderOzone(); | 65 return new CursorLoaderOzone(); |
66 } | 66 } |
67 | 67 |
68 } // namespace ui | 68 } // namespace ui |
OLD | NEW |