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

Unified Diff: sky/engine/core/loader/ImageLoader.idl

Issue 1156003007: Refactor image handling in Sky (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: CR feedback from abarth Created 5 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/core/loader/CanvasImageLoader.cpp ('k') | sky/engine/core/loader/ImageLoaderCallback.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/core/loader/ImageLoader.idl
diff --git a/sky/engine/core/frame/ImageBitmap.idl b/sky/engine/core/loader/ImageLoader.idl
similarity index 55%
copy from sky/engine/core/frame/ImageBitmap.idl
copy to sky/engine/core/loader/ImageLoader.idl
index 903a2d7421f10c16804e3e29f10767cd7d119251..c4f7723958ac81ea6303cf53bf2780457c448803 100644
--- a/sky/engine/core/frame/ImageBitmap.idl
+++ b/sky/engine/core/loader/ImageLoader.idl
@@ -3,7 +3,8 @@
// found in the LICENSE file.
[
-] interface ImageBitmap {
- readonly attribute long width;
- readonly attribute long height;
+ Constructor(DOMString src, ImageLoaderCallback callback),
+ ImplementedAs=CanvasImageLoader,
+] interface ImageLoader {
+ void load();
abarth-chromium 2015/06/01 23:24:49 What's the point of having a |load| function anymo
};
« no previous file with comments | « sky/engine/core/loader/CanvasImageLoader.cpp ('k') | sky/engine/core/loader/ImageLoaderCallback.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698