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

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

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 22 matching lines...) Expand all
33 #include "platform/PlatformMouseEvent.h" 33 #include "platform/PlatformMouseEvent.h"
34 34
35 namespace blink { 35 namespace blink {
36 36
37 PointerLockController::PointerLockController(Page* page) 37 PointerLockController::PointerLockController(Page* page)
38 : m_page(page) 38 : m_page(page)
39 , m_lockPending(false) 39 , m_lockPending(false)
40 { 40 {
41 } 41 }
42 42
43 PassOwnPtrWillBeRawPtr<PointerLockController> PointerLockController::create(Page * page) 43 RawPtr<PointerLockController> PointerLockController::create(Page* page)
44 { 44 {
45 return adoptPtrWillBeNoop(new PointerLockController(page)); 45 return new PointerLockController(page);
46 } 46 }
47 47
48 void PointerLockController::requestPointerLock(Element* target) 48 void PointerLockController::requestPointerLock(Element* target)
49 { 49 {
50 if (!target || !target->inDocument() || m_documentOfRemovedElementWhileWaiti ngForUnlock) { 50 if (!target || !target->inDocument() || m_documentOfRemovedElementWhileWaiti ngForUnlock) {
51 enqueueEvent(EventTypeNames::pointerlockerror, target); 51 enqueueEvent(EventTypeNames::pointerlockerror, target);
52 return; 52 return;
53 } 53 }
54 54
55 UseCounter::countCrossOriginIframe(target->document(), UseCounter::ElementRe questPointerLockIframe); 55 UseCounter::countCrossOriginIframe(target->document(), UseCounter::ElementRe questPointerLockIframe);
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 } 160 }
161 161
162 DEFINE_TRACE(PointerLockController) 162 DEFINE_TRACE(PointerLockController)
163 { 163 {
164 visitor->trace(m_page); 164 visitor->trace(m_page);
165 visitor->trace(m_element); 165 visitor->trace(m_element);
166 visitor->trace(m_documentOfRemovedElementWhileWaitingForUnlock); 166 visitor->trace(m_documentOfRemovedElementWhileWaitingForUnlock);
167 } 167 }
168 168
169 } // namespace blink 169 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/page/PointerLockController.h ('k') | third_party/WebKit/Source/core/page/PrintContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698