| 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/shared_impl/ppb_instance_shared.h" | 5 #include "ppapi/shared_impl/ppb_instance_shared.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/debug/trace_event.h" | |
| 10 #include "base/threading/platform_thread.h" | |
| 11 #include "ppapi/c/pp_errors.h" | 9 #include "ppapi/c/pp_errors.h" |
| 12 #include "ppapi/c/ppb_input_event.h" | 10 #include "ppapi/c/ppb_input_event.h" |
| 13 #include "ppapi/shared_impl/ppapi_globals.h" | 11 #include "ppapi/shared_impl/ppapi_globals.h" |
| 14 #include "ppapi/shared_impl/ppb_image_data_shared.h" | 12 #include "ppapi/shared_impl/ppb_image_data_shared.h" |
| 15 #include "ppapi/shared_impl/var.h" | 13 #include "ppapi/shared_impl/var.h" |
| 16 #include "ppapi/thunk/enter.h" | 14 #include "ppapi/thunk/enter.h" |
| 17 #include "ppapi/thunk/ppb_image_data_api.h" | 15 #include "ppapi/thunk/ppb_image_data_api.h" |
| 18 | 16 |
| 19 namespace ppapi { | 17 namespace ppapi { |
| 20 | 18 |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 return false; | 92 return false; |
| 95 | 93 |
| 96 // Validate the hot spot location. | 94 // Validate the hot spot location. |
| 97 if (hot_spot->x < 0 || hot_spot->x >= desc.size.width || | 95 if (hot_spot->x < 0 || hot_spot->x >= desc.size.width || |
| 98 hot_spot->y < 0 || hot_spot->y >= desc.size.height) | 96 hot_spot->y < 0 || hot_spot->y >= desc.size.height) |
| 99 return false; | 97 return false; |
| 100 return true; | 98 return true; |
| 101 } | 99 } |
| 102 | 100 |
| 103 } // namespace ppapi | 101 } // namespace ppapi |
| OLD | NEW |