OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 12 matching lines...) Expand all Loading... |
23 */ | 23 */ |
24 | 24 |
25 #include "config.h" | 25 #include "config.h" |
26 #include "PointerLockController.h" | 26 #include "PointerLockController.h" |
27 | 27 |
28 #include "Chrome.h" | 28 #include "Chrome.h" |
29 #include "ChromeClient.h" | 29 #include "ChromeClient.h" |
30 #include "Element.h" | 30 #include "Element.h" |
31 #include "Event.h" | 31 #include "Event.h" |
32 #include "Page.h" | 32 #include "Page.h" |
33 #include "PlatformMouseEvent.h" | |
34 #include "VoidCallback.h" | 33 #include "VoidCallback.h" |
| 34 #include "core/platform/PlatformMouseEvent.h" |
35 | 35 |
36 namespace WebCore { | 36 namespace WebCore { |
37 | 37 |
38 PointerLockController::PointerLockController(Page* page) | 38 PointerLockController::PointerLockController(Page* page) |
39 : m_page(page) | 39 : m_page(page) |
40 { | 40 { |
41 } | 41 } |
42 | 42 |
43 PassOwnPtr<PointerLockController> PointerLockController::create(Page* page) | 43 PassOwnPtr<PointerLockController> PointerLockController::create(Page* page) |
44 { | 44 { |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 enqueueEvent(type, element->document()); | 151 enqueueEvent(type, element->document()); |
152 } | 152 } |
153 | 153 |
154 void PointerLockController::enqueueEvent(const AtomicString& type, Document* doc
ument) | 154 void PointerLockController::enqueueEvent(const AtomicString& type, Document* doc
ument) |
155 { | 155 { |
156 if (document) | 156 if (document) |
157 document->enqueueDocumentEvent(Event::create(type, true, false)); | 157 document->enqueueDocumentEvent(Event::create(type, true, false)); |
158 } | 158 } |
159 | 159 |
160 } // namespace WebCore | 160 } // namespace WebCore |
OLD | NEW |