| 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/image_cursors.h" | 5 #include "ui/base/cursor/image_cursors.h" |
| 6 | 6 |
| 7 #include <float.h> | 7 #include <float.h> |
| 8 | 8 |
| 9 #include "base/logging.h" | 9 #include "base/logging.h" |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| 11 #include "ui/base/cursor/cursor.h" | 11 #include "ui/base/cursor/cursor.h" |
| 12 #include "ui/base/cursor/cursor_loader.h" | 12 #include "ui/base/cursor/cursor_loader.h" |
| 13 #include "ui/base/cursor/cursors_aura.h" | 13 #include "ui/base/cursor/cursors_aura.h" |
| 14 #include "ui/gfx/display.h" | 14 #include "ui/gfx/display.h" |
| 15 #include "ui/gfx/point.h" | 15 #include "ui/gfx/geometry/point.h" |
| 16 | 16 |
| 17 namespace ui { | 17 namespace ui { |
| 18 | 18 |
| 19 namespace { | 19 namespace { |
| 20 | 20 |
| 21 const int kImageCursorIds[] = { | 21 const int kImageCursorIds[] = { |
| 22 kCursorNull, | 22 kCursorNull, |
| 23 kCursorPointer, | 23 kCursorPointer, |
| 24 kCursorNoDrop, | 24 kCursorNoDrop, |
| 25 kCursorNotAllowed, | 25 kCursorNotAllowed, |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 | 141 |
| 142 if (cursor_loader_.get()) | 142 if (cursor_loader_.get()) |
| 143 ReloadCursors(); | 143 ReloadCursors(); |
| 144 } | 144 } |
| 145 | 145 |
| 146 void ImageCursors::SetPlatformCursor(gfx::NativeCursor* cursor) { | 146 void ImageCursors::SetPlatformCursor(gfx::NativeCursor* cursor) { |
| 147 cursor_loader_->SetPlatformCursor(cursor); | 147 cursor_loader_->SetPlatformCursor(cursor); |
| 148 } | 148 } |
| 149 | 149 |
| 150 } // namespace ui | 150 } // namespace ui |
| OLD | NEW |