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

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

Issue 395633011: Implement the unprefixed the Fullscreen API (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 5 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 Peter Kelly (pmk@post.com) 4 * (C) 2001 Peter Kelly (pmk@post.com)
5 * (C) 2001 Dirk Mueller (mueller@kde.org) 5 * (C) 2001 Dirk Mueller (mueller@kde.org)
6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 Appl e Inc. All rights reserved. 6 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2013 Appl e Inc. All rights reserved.
7 * 7 *
8 * This library is free software; you can redistribute it and/or 8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Library General Public 9 * modify it under the terms of the GNU Library General Public
10 * License as published by the Free Software Foundation; either 10 * License as published by the Free Software Foundation; either
(...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 virtual bool isDisabledFormControl() const { return false; } 455 virtual bool isDisabledFormControl() const { return false; }
456 456
457 bool hasPendingResources() const { return hasElementFlag(HasPendingResources ); } 457 bool hasPendingResources() const { return hasElementFlag(HasPendingResources ); }
458 void setHasPendingResources() { setElementFlag(HasPendingResources); } 458 void setHasPendingResources() { setElementFlag(HasPendingResources); }
459 void clearHasPendingResources() { clearElementFlag(HasPendingResources); } 459 void clearHasPendingResources() { clearElementFlag(HasPendingResources); }
460 virtual void buildPendingResource() { }; 460 virtual void buildPendingResource() { };
461 461
462 void setCustomElementDefinition(PassRefPtr<CustomElementDefinition>); 462 void setCustomElementDefinition(PassRefPtr<CustomElementDefinition>);
463 CustomElementDefinition* customElementDefinition() const; 463 CustomElementDefinition* customElementDefinition() const;
464 464
465 // Fullscreen API
466 void requestFullscreen();
467
465 // Mozilla version 468 // Mozilla version
466 static const unsigned short ALLOW_KEYBOARD_INPUT = 1; 469 static const unsigned short ALLOW_KEYBOARD_INPUT = 1;
467 void webkitRequestFullScreen(unsigned short flags); 470 void webkitRequestFullScreen(unsigned short flags);
468 471
469 // W3C version 472 // W3C version
470 void webkitRequestFullscreen(); 473 void webkitRequestFullscreen();
471 474
472 bool containsFullScreenElement() const { return hasElementFlag(ContainsFullS creenElement); } 475 bool containsFullScreenElement() const { return hasElementFlag(ContainsFullS creenElement); }
473 void setContainsFullScreenElement(bool); 476 void setContainsFullScreenElement(bool);
474 void setContainsFullScreenElementOnAncestorsCrossingFrameBoundaries(bool); 477 void setContainsFullScreenElementOnAncestorsCrossingFrameBoundaries(bool);
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
866 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) 869 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&)
867 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 870 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
868 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \ 871 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \
869 { \ 872 { \
870 return adoptRefWillBeNoop(new T(tagName, document)); \ 873 return adoptRefWillBeNoop(new T(tagName, document)); \
871 } 874 }
872 875
873 } // namespace 876 } // namespace
874 877
875 #endif 878 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698