| 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 17 matching lines...) Expand all Loading... |
| 28 #include "platform/heap/Handle.h" | 28 #include "platform/heap/Handle.h" |
| 29 #include "wtf/RefPtr.h" | 29 #include "wtf/RefPtr.h" |
| 30 #include "wtf/text/AtomicString.h" | 30 #include "wtf/text/AtomicString.h" |
| 31 | 31 |
| 32 namespace blink { | 32 namespace blink { |
| 33 | 33 |
| 34 class Element; | 34 class Element; |
| 35 class Document; | 35 class Document; |
| 36 class Page; | 36 class Page; |
| 37 class PlatformMouseEvent; | 37 class PlatformMouseEvent; |
| 38 class VoidCallback; | |
| 39 | 38 |
| 40 class PointerLockController FINAL : public NoBaseWillBeGarbageCollected<PointerL
ockController> { | 39 class PointerLockController FINAL : public NoBaseWillBeGarbageCollected<PointerL
ockController> { |
| 41 WTF_MAKE_NONCOPYABLE(PointerLockController); | 40 WTF_MAKE_NONCOPYABLE(PointerLockController); |
| 42 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; | 41 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED; |
| 43 public: | 42 public: |
| 44 static PassOwnPtrWillBeRawPtr<PointerLockController> create(Page*); | 43 static PassOwnPtrWillBeRawPtr<PointerLockController> create(Page*); |
| 45 | 44 |
| 46 void requestPointerLock(Element* target); | 45 void requestPointerLock(Element* target); |
| 47 void requestPointerUnlock(); | 46 void requestPointerUnlock(); |
| 48 void elementRemoved(Element*); | 47 void elementRemoved(Element*); |
| (...skipping 16 matching lines...) Expand all Loading... |
| 65 | 64 |
| 66 RawPtrWillBeMember<Page> m_page; | 65 RawPtrWillBeMember<Page> m_page; |
| 67 bool m_lockPending; | 66 bool m_lockPending; |
| 68 RefPtrWillBeMember<Element> m_element; | 67 RefPtrWillBeMember<Element> m_element; |
| 69 RefPtrWillBeMember<Document> m_documentOfRemovedElementWhileWaitingForUnlock
; | 68 RefPtrWillBeMember<Document> m_documentOfRemovedElementWhileWaitingForUnlock
; |
| 70 }; | 69 }; |
| 71 | 70 |
| 72 } // namespace blink | 71 } // namespace blink |
| 73 | 72 |
| 74 #endif // PointerLockController_h | 73 #endif // PointerLockController_h |
| OLD | NEW |