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

Side by Side Diff: sky/engine/public/web/WebElement.h

Issue 684353002: Remove more stuff from Widget. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 1 month 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) 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 BLINK_EXPORT WebString attributeValue(unsigned index) const; 65 BLINK_EXPORT WebString attributeValue(unsigned index) const;
66 BLINK_EXPORT unsigned attributeCount() const; 66 BLINK_EXPORT unsigned attributeCount() const;
67 BLINK_EXPORT WebNode shadowRoot() const; 67 BLINK_EXPORT WebNode shadowRoot() const;
68 68
69 // Returns the language code specified for this element. This attribute 69 // Returns the language code specified for this element. This attribute
70 // is inherited, so the returned value is drawn from the closest parent 70 // is inherited, so the returned value is drawn from the closest parent
71 // element that has the lang attribute set, or from the HTTP 71 // element that has the lang attribute set, or from the HTTP
72 // "Content-Language" header as a fallback. 72 // "Content-Language" header as a fallback.
73 BLINK_EXPORT WebString computeInheritedLanguage() const; 73 BLINK_EXPORT WebString computeInheritedLanguage() const;
74 74
75 // Returns the bounds of the element in viewport space. The bounds
76 // have been adjusted to include any transformations. This view is
77 // also called the Root View in Blink.
78 // This function will update the layout if required.
79 BLINK_EXPORT WebRect boundsInViewportSpace();
80
81 // Returns the image contents of this element or a null WebImage 75 // Returns the image contents of this element or a null WebImage
82 // if there isn't any. 76 // if there isn't any.
83 BLINK_EXPORT WebImage imageContents(); 77 BLINK_EXPORT WebImage imageContents();
84 78
85 #if BLINK_IMPLEMENTATION 79 #if BLINK_IMPLEMENTATION
86 WebElement(const PassRefPtr<Element>&); 80 WebElement(const PassRefPtr<Element>&);
87 WebElement& operator=(const PassRefPtr<Element>&); 81 WebElement& operator=(const PassRefPtr<Element>&);
88 operator PassRefPtr<Element>() const; 82 operator PassRefPtr<Element>() const;
89 #endif 83 #endif
90 }; 84 };
91 85
92 } // namespace blink 86 } // namespace blink
93 87
94 #endif 88 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698