| 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 "ppapi/cpp/mouse_cursor.h" | 5 #include "ppapi/cpp/mouse_cursor.h" |
| 6 | 6 |
| 7 #include "ppapi/cpp/module_impl.h" | 7 #include "ppapi/cpp/module_impl.h" |
| 8 | 8 |
| 9 namespace pp { | 9 namespace pp { |
| 10 | 10 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 const ImageData& image, | 22 const ImageData& image, |
| 23 const Point& hot_spot) { | 23 const Point& hot_spot) { |
| 24 if (!has_interface<PPB_MouseCursor_1_0>()) | 24 if (!has_interface<PPB_MouseCursor_1_0>()) |
| 25 return false; | 25 return false; |
| 26 return PP_ToBool(get_interface<PPB_MouseCursor_1_0>()->SetCursor( | 26 return PP_ToBool(get_interface<PPB_MouseCursor_1_0>()->SetCursor( |
| 27 instance.pp_instance(), type, image.pp_resource(), | 27 instance.pp_instance(), type, image.pp_resource(), |
| 28 &hot_spot.pp_point())); | 28 &hot_spot.pp_point())); |
| 29 } | 29 } |
| 30 | 30 |
| 31 } // namespace pp | 31 } // namespace pp |
| OLD | NEW |