| OLD | NEW |
| 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 "ui/base/cursor/cursors_aura.h" | 5 #include "ui/base/cursor/cursors_aura.h" |
| 6 | 6 |
| 7 #include "grit/ui_resources.h" | 7 #include "grit/ui_resources.h" |
| 8 #include "third_party/skia/include/core/SkBitmap.h" | 8 #include "third_party/skia/include/core/SkBitmap.h" |
| 9 #include "ui/base/resource/resource_bundle.h" | 9 #include "ui/base/resource/resource_bundle.h" |
| 10 #include "ui/gfx/geometry/point.h" |
| 10 #include "ui/gfx/image/image_skia.h" | 11 #include "ui/gfx/image/image_skia.h" |
| 11 #include "ui/gfx/point.h" | |
| 12 | 12 |
| 13 namespace ui { | 13 namespace ui { |
| 14 namespace { | 14 namespace { |
| 15 | 15 |
| 16 struct HotPoint { | 16 struct HotPoint { |
| 17 int x; | 17 int x; |
| 18 int y; | 18 int y; |
| 19 }; | 19 }; |
| 20 | 20 |
| 21 struct CursorData { | 21 struct CursorData { |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 | 236 |
| 237 const SkBitmap* cursor_bitmap = ResourceBundle::GetSharedInstance(). | 237 const SkBitmap* cursor_bitmap = ResourceBundle::GetSharedInstance(). |
| 238 GetImageSkiaNamed(resource_id)->bitmap(); | 238 GetImageSkiaNamed(resource_id)->bitmap(); |
| 239 if (!cursor_bitmap) | 239 if (!cursor_bitmap) |
| 240 return false; | 240 return false; |
| 241 *bitmap = *cursor_bitmap; | 241 *bitmap = *cursor_bitmap; |
| 242 return true; | 242 return true; |
| 243 } | 243 } |
| 244 | 244 |
| 245 } // namespace ui | 245 } // namespace ui |
| OLD | NEW |