Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(284)

Side by Side Diff: third_party/WebKit/Source/core/page/PointerLockController.h

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 19 matching lines...) Expand all
30 #include "wtf/RefPtr.h" 30 #include "wtf/RefPtr.h"
31 #include "wtf/text/AtomicString.h" 31 #include "wtf/text/AtomicString.h"
32 32
33 namespace blink { 33 namespace blink {
34 34
35 class Element; 35 class Element;
36 class Document; 36 class Document;
37 class Page; 37 class Page;
38 class PlatformMouseEvent; 38 class PlatformMouseEvent;
39 39
40 class CORE_EXPORT PointerLockController final : public NoBaseWillBeGarbageCollec ted<PointerLockController> { 40 class CORE_EXPORT PointerLockController final : public GarbageCollected<PointerL ockController> {
41 WTF_MAKE_NONCOPYABLE(PointerLockController); 41 WTF_MAKE_NONCOPYABLE(PointerLockController);
42 USING_FAST_MALLOC_WILL_BE_REMOVED(PointerLockController);
43 public: 42 public:
44 static PassOwnPtrWillBeRawPtr<PointerLockController> create(Page*); 43 static RawPtr<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*);
49 void documentDetached(Document*); 48 void documentDetached(Document*);
50 bool lockPending() const; 49 bool lockPending() const;
51 Element* element() const; 50 Element* element() const;
52 51
53 void didAcquirePointerLock(); 52 void didAcquirePointerLock();
54 void didNotAcquirePointerLock(); 53 void didNotAcquirePointerLock();
55 void didLosePointerLock(); 54 void didLosePointerLock();
56 void dispatchLockedMouseEvent(const PlatformMouseEvent&, const AtomicString& eventType); 55 void dispatchLockedMouseEvent(const PlatformMouseEvent&, const AtomicString& eventType);
57 56
58 DECLARE_TRACE(); 57 DECLARE_TRACE();
59 58
60 private: 59 private:
61 explicit PointerLockController(Page*); 60 explicit PointerLockController(Page*);
62 void clearElement(); 61 void clearElement();
63 void enqueueEvent(const AtomicString& type, Element*); 62 void enqueueEvent(const AtomicString& type, Element*);
64 void enqueueEvent(const AtomicString& type, Document*); 63 void enqueueEvent(const AtomicString& type, Document*);
65 64
66 RawPtrWillBeMember<Page> m_page; 65 Member<Page> m_page;
67 bool m_lockPending; 66 bool m_lockPending;
68 RefPtrWillBeMember<Element> m_element; 67 Member<Element> m_element;
69 RefPtrWillBeMember<Document> m_documentOfRemovedElementWhileWaitingForUnlock ; 68 Member<Document> m_documentOfRemovedElementWhileWaitingForUnlock;
70 }; 69 };
71 70
72 } // namespace blink 71 } // namespace blink
73 72
74 #endif // PointerLockController_h 73 #endif // PointerLockController_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698