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

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

Issue 19555002: Translate viewport related meta tags into @viewport descriptors as suggested by the CSS Device Adap… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 4 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 393 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 PassRefPtr<HTMLCollection> windowNamedItems(const AtomicString& name); 404 PassRefPtr<HTMLCollection> windowNamedItems(const AtomicString& name);
405 PassRefPtr<HTMLCollection> documentNamedItems(const AtomicString& name); 405 PassRefPtr<HTMLCollection> documentNamedItems(const AtomicString& name);
406 406
407 bool isHTMLDocument() const { return m_documentClasses & HTMLDocumentClass; } 407 bool isHTMLDocument() const { return m_documentClasses & HTMLDocumentClass; }
408 bool isXHTMLDocument() const { return m_documentClasses & XHTMLDocumentClass ; } 408 bool isXHTMLDocument() const { return m_documentClasses & XHTMLDocumentClass ; }
409 bool isImageDocument() const { return m_documentClasses & ImageDocumentClass ; } 409 bool isImageDocument() const { return m_documentClasses & ImageDocumentClass ; }
410 bool isSVGDocument() const { return m_documentClasses & SVGDocumentClass; } 410 bool isSVGDocument() const { return m_documentClasses & SVGDocumentClass; }
411 bool isPluginDocument() const { return m_documentClasses & PluginDocumentCla ss; } 411 bool isPluginDocument() const { return m_documentClasses & PluginDocumentCla ss; }
412 bool isMediaDocument() const { return m_documentClasses & MediaDocumentClass ; } 412 bool isMediaDocument() const { return m_documentClasses & MediaDocumentClass ; }
413 413
414 bool isXHTMLMobileProfile() const;
415
414 bool hasSVGRootNode() const; 416 bool hasSVGRootNode() const;
415 417
416 bool isFrameSet() const; 418 bool isFrameSet() const;
417 419
418 bool isSrcdocDocument() const { return m_isSrcdocDocument; } 420 bool isSrcdocDocument() const { return m_isSrcdocDocument; }
419 421
420 StyleResolver* styleResolverIfExists() const { return m_styleResolver.get(); } 422 StyleResolver* styleResolverIfExists() const { return m_styleResolver.get(); }
421 423
422 bool isViewSource() const { return m_isViewSource; } 424 bool isViewSource() const { return m_isViewSource; }
423 void setIsViewSource(bool); 425 void setIsViewSource(bool);
(...skipping 320 matching lines...) Expand 10 before | Expand all | Expand 10 after
744 /** 746 /**
745 * Handles a HTTP header equivalent set by a meta tag using <meta http-equiv ="..." content="...">. This is called 747 * Handles a HTTP header equivalent set by a meta tag using <meta http-equiv ="..." content="...">. This is called
746 * when a meta tag is encountered during document parsing, and also when a s cript dynamically changes or adds a meta 748 * when a meta tag is encountered during document parsing, and also when a s cript dynamically changes or adds a meta
747 * tag. This enables scripts to use meta tags to perform refreshes and set e xpiry dates in addition to them being 749 * tag. This enables scripts to use meta tags to perform refreshes and set e xpiry dates in addition to them being
748 * specified in a HTML file. 750 * specified in a HTML file.
749 * 751 *
750 * @param equiv The http header name (value of the meta tag's "equiv" attrib ute) 752 * @param equiv The http header name (value of the meta tag's "equiv" attrib ute)
751 * @param content The header value (value of the meta tag's "content" attrib ute) 753 * @param content The header value (value of the meta tag's "content" attrib ute)
752 */ 754 */
753 void processHttpEquiv(const String& equiv, const String& content); 755 void processHttpEquiv(const String& equiv, const String& content);
754 void processViewport(const String& features, ViewportArguments::Type origin) ;
755 void updateViewportArguments(); 756 void updateViewportArguments();
756 void processReferrerPolicy(const String& policy); 757 void processReferrerPolicy(const String& policy);
757 758
758 // Returns the owning element in the parent document. 759 // Returns the owning element in the parent document.
759 // Returns 0 if this is the top level document. 760 // Returns 0 if this is the top level document.
760 HTMLFrameOwnerElement* ownerElement() const; 761 HTMLFrameOwnerElement* ownerElement() const;
761 762
762 HTMLIFrameElement* seamlessParentIFrame() const; 763 HTMLIFrameElement* seamlessParentIFrame() const;
763 bool shouldDisplaySeamlesslyWithParent() const; 764 bool shouldDisplaySeamlesslyWithParent() const;
764 765
(...skipping 312 matching lines...) Expand 10 before | Expand all | Expand 10 after
1077 virtual void dispose() OVERRIDE; 1078 virtual void dispose() OVERRIDE;
1078 1079
1079 private: 1080 private:
1080 friend class Node; 1081 friend class Node;
1081 friend class IgnoreDestructiveWriteCountIncrementer; 1082 friend class IgnoreDestructiveWriteCountIncrementer;
1082 1083
1083 void updateDistributionIfNeeded(); 1084 void updateDistributionIfNeeded();
1084 1085
1085 void detachParser(); 1086 void detachParser();
1086 1087
1087 typedef void (*ArgumentsCallback)(const String& keyString, const String& val ueString, Document*, void* data);
1088 void processArguments(const String& features, void* data, ArgumentsCallback) ;
1089
1090 virtual bool isDocument() const OVERRIDE { return true; } 1088 virtual bool isDocument() const OVERRIDE { return true; }
1091 1089
1092 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang e = 0, Node* afterChange = 0, int childCountDelta = 0); 1090 virtual void childrenChanged(bool changedByParser = false, Node* beforeChang e = 0, Node* afterChange = 0, int childCountDelta = 0);
1093 1091
1094 virtual String nodeName() const; 1092 virtual String nodeName() const;
1095 virtual NodeType nodeType() const; 1093 virtual NodeType nodeType() const;
1096 virtual bool childTypeAllowed(NodeType) const; 1094 virtual bool childTypeAllowed(NodeType) const;
1097 virtual PassRefPtr<Node> cloneNode(bool deep = true); 1095 virtual PassRefPtr<Node> cloneNode(bool deep = true);
1098 1096
1099 virtual void refScriptExecutionContext() { ref(); } 1097 virtual void refScriptExecutionContext() { ref(); }
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
1426 inline bool Node::isDocumentNode() const 1424 inline bool Node::isDocumentNode() const
1427 { 1425 {
1428 return this == documentInternal(); 1426 return this == documentInternal();
1429 } 1427 }
1430 1428
1431 Node* eventTargetNodeForDocument(Document*); 1429 Node* eventTargetNodeForDocument(Document*);
1432 1430
1433 } // namespace WebCore 1431 } // namespace WebCore
1434 1432
1435 #endif // Document_h 1433 #endif // Document_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698