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

Side by Side Diff: Source/core/dom/Document.h

Issue 279313003: Create Document exitPointerLock and pointerLockElement API methods. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: merge Created 6 years, 7 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) 3 * (C) 1999 Antti Koivisto (koivisto@kde.org)
4 * (C) 2001 Dirk Mueller (mueller@kde.org) 4 * (C) 2001 Dirk Mueller (mueller@kde.org)
5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org) 5 * (C) 2006 Alexey Proskuryakov (ap@webkit.org)
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012 Apple Inc. All r ights reserved.
7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/) 7 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t orchmobile.com/)
8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies) 8 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies)
9 * Copyright (C) 2011 Google Inc. All rights reserved. 9 * Copyright (C) 2011 Google Inc. All rights reserved.
10 * 10 *
(...skipping 926 matching lines...) Expand 10 before | Expand all | Expand 10 after
937 bool containsValidityStyleRules() const { return m_containsValidityStyleRule s; } 937 bool containsValidityStyleRules() const { return m_containsValidityStyleRule s; }
938 void setContainsValidityStyleRules() { m_containsValidityStyleRules = true; } 938 void setContainsValidityStyleRules() { m_containsValidityStyleRules = true; }
939 939
940 void enqueueResizeEvent(); 940 void enqueueResizeEvent();
941 void enqueueScrollEventForNode(Node*); 941 void enqueueScrollEventForNode(Node*);
942 void enqueueAnimationFrameEvent(PassRefPtrWillBeRawPtr<Event>); 942 void enqueueAnimationFrameEvent(PassRefPtrWillBeRawPtr<Event>);
943 943
944 bool hasFullscreenElementStack() const { return m_hasFullscreenElementStack; } 944 bool hasFullscreenElementStack() const { return m_hasFullscreenElementStack; }
945 void setHasFullscreenElementStack() { m_hasFullscreenElementStack = true; } 945 void setHasFullscreenElementStack() { m_hasFullscreenElementStack = true; }
946 946
947 void webkitExitPointerLock(); 947 void exitPointerLock();
948 Element* webkitPointerLockElement() const; 948 Element* pointerLockElement() const;
949 949
950 // Used to allow element that loads data without going through a FrameLoader to delay the 'load' event. 950 // Used to allow element that loads data without going through a FrameLoader to delay the 'load' event.
951 void incrementLoadEventDelayCount() { ++m_loadEventDelayCount; } 951 void incrementLoadEventDelayCount() { ++m_loadEventDelayCount; }
952 void decrementLoadEventDelayCount(); 952 void decrementLoadEventDelayCount();
953 void checkLoadEventSoon(); 953 void checkLoadEventSoon();
954 bool isDelayingLoadEvent(); 954 bool isDelayingLoadEvent();
955 void loadPluginsSoon(); 955 void loadPluginsSoon();
956 956
957 PassRefPtrWillBeRawPtr<Touch> createTouch(DOMWindow*, EventTarget*, int iden tifier, int pageX, int pageY, int screenX, int screenY, int radiusX, int radiusY , float rotationAngle, float force) const; 957 PassRefPtrWillBeRawPtr<Touch> createTouch(DOMWindow*, EventTarget*, int iden tifier, int pageX, int pageY, int screenX, int screenY, int radiusX, int radiusY , float rotationAngle, float force) const;
958 PassRefPtrWillBeRawPtr<TouchList> createTouchList(WillBeHeapVector<RefPtrWil lBeMember<Touch> >&) const; 958 PassRefPtrWillBeRawPtr<TouchList> createTouchList(WillBeHeapVector<RefPtrWil lBeMember<Touch> >&) const;
(...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after
1454 inline bool Node::isDocumentNode() const 1454 inline bool Node::isDocumentNode() const
1455 { 1455 {
1456 return this == document(); 1456 return this == document();
1457 } 1457 }
1458 1458
1459 Node* eventTargetNodeForDocument(Document*); 1459 Node* eventTargetNodeForDocument(Document*);
1460 1460
1461 } // namespace WebCore 1461 } // namespace WebCore
1462 1462
1463 #endif // Document_h 1463 #endif // Document_h
OLDNEW
« no previous file with comments | « LayoutTests/pointer-lock/pointerlockelement-null-when-pending-expected.txt ('k') | Source/core/dom/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698