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

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

Issue 1814013002: Visual viewport API initial implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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) 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-2011, 2013, 2014 Apple Inc. All rights reserved. 6 * Copyright (C) 2003-2011, 2013, 2014 Apple 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 18 matching lines...) Expand all
29 #include "core/CoreExport.h" 29 #include "core/CoreExport.h"
30 #include "core/HTMLNames.h" 30 #include "core/HTMLNames.h"
31 #include "core/css/CSSPrimitiveValue.h" 31 #include "core/css/CSSPrimitiveValue.h"
32 #include "core/css/CSSSelector.h" 32 #include "core/css/CSSSelector.h"
33 #include "core/dom/AXObjectCache.h" 33 #include "core/dom/AXObjectCache.h"
34 #include "core/dom/Attribute.h" 34 #include "core/dom/Attribute.h"
35 #include "core/dom/ContainerNode.h" 35 #include "core/dom/ContainerNode.h"
36 #include "core/dom/Document.h" 36 #include "core/dom/Document.h"
37 #include "core/dom/ElementData.h" 37 #include "core/dom/ElementData.h"
38 #include "core/dom/SpaceSplitString.h" 38 #include "core/dom/SpaceSplitString.h"
39 #include "core/frame/VisualViewport.h"
39 #include "core/html/CollectionType.h" 40 #include "core/html/CollectionType.h"
40 #include "platform/heap/Handle.h" 41 #include "platform/heap/Handle.h"
41 #include "public/platform/WebFocusType.h" 42 #include "public/platform/WebFocusType.h"
42 43
43 namespace blink { 44 namespace blink {
44 45
45 class ElementAnimations; 46 class ElementAnimations;
46 class Attr; 47 class Attr;
47 class Attribute; 48 class Attribute;
48 class CSSStyleDeclaration; 49 class CSSStyleDeclaration;
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 int clientLeft(); 202 int clientLeft();
202 int clientTop(); 203 int clientTop();
203 int clientWidth(); 204 int clientWidth();
204 int clientHeight(); 205 int clientHeight();
205 double scrollLeft(); 206 double scrollLeft();
206 double scrollTop(); 207 double scrollTop();
207 void setScrollLeft(double); 208 void setScrollLeft(double);
208 void setScrollTop(double); 209 void setScrollTop(double);
209 int scrollWidth(); 210 int scrollWidth();
210 int scrollHeight(); 211 int scrollHeight();
212 VisualViewport* viewport();
211 213
212 void scrollBy(double x, double y); 214 void scrollBy(double x, double y);
213 virtual void scrollBy(const ScrollToOptions&); 215 virtual void scrollBy(const ScrollToOptions&);
214 void scrollTo(double x, double y); 216 void scrollTo(double x, double y);
215 virtual void scrollTo(const ScrollToOptions&); 217 virtual void scrollTo(const ScrollToOptions&);
216 218
217 IntRect boundsInViewport() const; 219 IntRect boundsInViewport() const;
218 220
219 ClientRectList* getClientRects(); 221 ClientRectList* getClientRects();
220 ClientRect* getBoundingClientRect(); 222 ClientRect* getBoundingClientRect();
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
418 // e.g. by calling Document::updateLayoutTreeIgnorePendingStylesheets(). 420 // e.g. by calling Document::updateLayoutTreeIgnorePendingStylesheets().
419 bool isFocusable() const; 421 bool isFocusable() const;
420 virtual bool isKeyboardFocusable() const; 422 virtual bool isKeyboardFocusable() const;
421 virtual bool isMouseFocusable() const; 423 virtual bool isMouseFocusable() const;
422 bool isFocusedElementInDocument() const; 424 bool isFocusedElementInDocument() const;
423 425
424 virtual void dispatchFocusEvent(Element* oldFocusedElement, WebFocusType, In putDeviceCapabilities* sourceCapabilities = nullptr); 426 virtual void dispatchFocusEvent(Element* oldFocusedElement, WebFocusType, In putDeviceCapabilities* sourceCapabilities = nullptr);
425 virtual void dispatchBlurEvent(Element* newFocusedElement, WebFocusType, Inp utDeviceCapabilities* sourceCapabilities = nullptr); 427 virtual void dispatchBlurEvent(Element* newFocusedElement, WebFocusType, Inp utDeviceCapabilities* sourceCapabilities = nullptr);
426 virtual void dispatchFocusInEvent(const AtomicString& eventType, Element* ol dFocusedElement, WebFocusType, InputDeviceCapabilities* sourceCapabilities = nul lptr); 428 virtual void dispatchFocusInEvent(const AtomicString& eventType, Element* ol dFocusedElement, WebFocusType, InputDeviceCapabilities* sourceCapabilities = nul lptr);
427 void dispatchFocusOutEvent(const AtomicString& eventType, Element* newFocuse dElement, InputDeviceCapabilities* sourceCapabilities = nullptr); 429 void dispatchFocusOutEvent(const AtomicString& eventType, Element* newFocuse dElement, InputDeviceCapabilities* sourceCapabilities = nullptr);
430 void dispatchViewportChangedEvent();
428 431
429 String innerText(); 432 String innerText();
430 String outerText(); 433 String outerText();
431 String innerHTML() const; 434 String innerHTML() const;
432 String outerHTML() const; 435 String outerHTML() const;
433 void setInnerHTML(const String&, ExceptionState&); 436 void setInnerHTML(const String&, ExceptionState&);
434 void setOuterHTML(const String&, ExceptionState&); 437 void setOuterHTML(const String&, ExceptionState&);
435 438
436 Element* insertAdjacentElement(const String& where, Element* newChild, Excep tionState&); 439 Element* insertAdjacentElement(const String& where, Element* newChild, Excep tionState&);
437 void insertAdjacentText(const String& where, const String& text, ExceptionSt ate&); 440 void insertAdjacentText(const String& where, const String& text, ExceptionSt ate&);
(...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after
951 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&) 954 static PassRefPtrWillBeRawPtr<T> create(const QualifiedName&, Document&)
952 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \ 955 #define DEFINE_ELEMENT_FACTORY_WITH_TAGNAME(T) \
953 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \ 956 PassRefPtrWillBeRawPtr<T> T::create(const QualifiedName& tagName, Document& document) \
954 { \ 957 { \
955 return adoptRefWillBeNoop(new T(tagName, document)); \ 958 return adoptRefWillBeNoop(new T(tagName, document)); \
956 } 959 }
957 960
958 } // namespace blink 961 } // namespace blink
959 962
960 #endif // Element_h 963 #endif // Element_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698