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

Side by Side Diff: public/web/WebElement.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/web/tests/WebFrameTest.cpp ('k') | public/web/WebNode.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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 // element that has the lang attribute set, or from the HTTP 77 // element that has the lang attribute set, or from the HTTP
78 // "Content-Language" header as a fallback. 78 // "Content-Language" header as a fallback.
79 WEBKIT_EXPORT WebString computeInheritedLanguage() const; 79 WEBKIT_EXPORT WebString computeInheritedLanguage() const;
80 80
81 // Returns the bounds of the element in viewport space. The bounds 81 // Returns the bounds of the element in viewport space. The bounds
82 // have been adjusted to include any transformations. This view is 82 // have been adjusted to include any transformations. This view is
83 // also called the Root View in WebKit. 83 // also called the Root View in WebKit.
84 // This function will update the layout if required. 84 // This function will update the layout if required.
85 WEBKIT_EXPORT WebRect boundsInViewportSpace(); 85 WEBKIT_EXPORT WebRect boundsInViewportSpace();
86 86
87 // Returns the image contents of this element or a null WebImage
88 // if there isn't any.
89 WEBKIT_EXPORT WebImage imageContents();
90
87 #if WEBKIT_IMPLEMENTATION 91 #if WEBKIT_IMPLEMENTATION
88 WebElement(const WTF::PassRefPtr<WebCore::Element>&); 92 WebElement(const WTF::PassRefPtr<WebCore::Element>&);
89 WebElement& operator=(const WTF::PassRefPtr<WebCore::Element>&); 93 WebElement& operator=(const WTF::PassRefPtr<WebCore::Element>&);
90 operator WTF::PassRefPtr<WebCore::Element>() const; 94 operator WTF::PassRefPtr<WebCore::Element>() const;
91 #endif 95 #endif
92 }; 96 };
93 97
94 } // namespace WebKit 98 } // namespace WebKit
95 99
96 #endif 100 #endif
OLDNEW
« no previous file with comments | « Source/web/tests/WebFrameTest.cpp ('k') | public/web/WebNode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698