| 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 #ifndef MouseEventHitRegion_h | 5 #ifndef SKY_ENGINE_CORE_HTML_CANVAS_MOUSEEVENTHITREGION_H_ |
| 6 #define MouseEventHitRegion_h | 6 #define SKY_ENGINE_CORE_HTML_CANVAS_MOUSEEVENTHITREGION_H_ |
| 7 | 7 |
| 8 #include "sky/engine/core/events/MouseEvent.h" | 8 #include "sky/engine/core/events/MouseEvent.h" |
| 9 #include "sky/engine/core/html/HTMLCanvasElement.h" | 9 #include "sky/engine/core/html/HTMLCanvasElement.h" |
| 10 #include "sky/engine/core/html/canvas/CanvasRenderingContext.h" | 10 #include "sky/engine/core/html/canvas/CanvasRenderingContext.h" |
| 11 #include "sky/engine/core/html/canvas/CanvasRenderingContext2D.h" | 11 #include "sky/engine/core/html/canvas/CanvasRenderingContext2D.h" |
| 12 | 12 |
| 13 namespace blink { | 13 namespace blink { |
| 14 | 14 |
| 15 class MouseEventHitRegion { | 15 class MouseEventHitRegion { |
| 16 public: | 16 public: |
| (...skipping 16 matching lines...) Expand all Loading... |
| 33 String id = hitRegion->id(); | 33 String id = hitRegion->id(); |
| 34 if (id.isEmpty()) | 34 if (id.isEmpty()) |
| 35 return String(); | 35 return String(); |
| 36 | 36 |
| 37 return id; | 37 return id; |
| 38 } | 38 } |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 } // namespace blink | 41 } // namespace blink |
| 42 | 42 |
| 43 #endif | 43 #endif // SKY_ENGINE_CORE_HTML_CANVAS_MOUSEEVENTHITREGION_H_ |
| OLD | NEW |