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

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

Issue 19856004: Adds WebElement::imageContents() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: fix webkit_test_support in static build, it needs to depend on skia so the SkBitma.h include works 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
« no previous file with comments | « Source/WebKit/chromium/WebKit.gyp ('k') | Source/core/html/HTMLImageElement.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 30 matching lines...) Expand all
41 class ActiveAnimations; 41 class ActiveAnimations;
42 class Attr; 42 class Attr;
43 class Attribute; 43 class Attribute;
44 class ClientRect; 44 class ClientRect;
45 class ClientRectList; 45 class ClientRectList;
46 class DOMStringMap; 46 class DOMStringMap;
47 class DOMTokenList; 47 class DOMTokenList;
48 class Element; 48 class Element;
49 class ElementRareData; 49 class ElementRareData;
50 class ElementShadow; 50 class ElementShadow;
51 class Image;
51 class InputMethodContext; 52 class InputMethodContext;
52 class IntSize; 53 class IntSize;
53 class Locale; 54 class Locale;
54 class MutableStylePropertySet; 55 class MutableStylePropertySet;
55 class PropertySetCSSStyleDeclaration; 56 class PropertySetCSSStyleDeclaration;
56 class PseudoElement; 57 class PseudoElement;
57 class RenderRegion; 58 class RenderRegion;
58 class ShadowRoot; 59 class ShadowRoot;
59 class ShareableElementData; 60 class ShareableElementData;
60 class StylePropertySet; 61 class StylePropertySet;
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
497 virtual void accessKeyAction(bool /*sendToAnyEvent*/) { } 498 virtual void accessKeyAction(bool /*sendToAnyEvent*/) { }
498 499
499 virtual bool isURLAttribute(const Attribute&) const { return false; } 500 virtual bool isURLAttribute(const Attribute&) const { return false; }
500 virtual bool isHTMLContentAttribute(const Attribute&) const { return false; } 501 virtual bool isHTMLContentAttribute(const Attribute&) const { return false; }
501 502
502 KURL getURLAttribute(const QualifiedName&) const; 503 KURL getURLAttribute(const QualifiedName&) const;
503 KURL getNonEmptyURLAttribute(const QualifiedName&) const; 504 KURL getNonEmptyURLAttribute(const QualifiedName&) const;
504 505
505 virtual const AtomicString& imageSourceURL() const; 506 virtual const AtomicString& imageSourceURL() const;
506 virtual String target() const { return String(); } 507 virtual String target() const { return String(); }
508 virtual Image* imageContents() { return 0; }
507 509
508 virtual void focus(bool restorePreviousSelection = true, FocusDirection = Fo cusDirectionNone); 510 virtual void focus(bool restorePreviousSelection = true, FocusDirection = Fo cusDirectionNone);
509 virtual void updateFocusAppearance(bool restorePreviousSelection); 511 virtual void updateFocusAppearance(bool restorePreviousSelection);
510 virtual void blur(); 512 virtual void blur();
511 virtual void dispatchFocusEvent(Element* oldFocusedElement, FocusDirection); 513 virtual void dispatchFocusEvent(Element* oldFocusedElement, FocusDirection);
512 virtual void dispatchBlurEvent(Element* newFocusedElement); 514 virtual void dispatchBlurEvent(Element* newFocusedElement);
513 void dispatchFocusInEvent(const AtomicString& eventType, Element* oldFocused Element); 515 void dispatchFocusInEvent(const AtomicString& eventType, Element* oldFocused Element);
514 void dispatchFocusOutEvent(const AtomicString& eventType, Element* newFocuse dElement); 516 void dispatchFocusOutEvent(const AtomicString& eventType, Element* newFocuse dElement);
515 517
516 String innerText(); 518 String innerText();
(...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after
1065 1067
1066 inline const Attribute* ElementData::attributeItem(unsigned index) const 1068 inline const Attribute* ElementData::attributeItem(unsigned index) const
1067 { 1069 {
1068 RELEASE_ASSERT(index < length()); 1070 RELEASE_ASSERT(index < length());
1069 return attributeBase() + index; 1071 return attributeBase() + index;
1070 } 1072 }
1071 1073
1072 } // namespace 1074 } // namespace
1073 1075
1074 #endif 1076 #endif
OLDNEW
« no previous file with comments | « Source/WebKit/chromium/WebKit.gyp ('k') | Source/core/html/HTMLImageElement.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698