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

Side by Side Diff: lib/dom/templates/crossframe_impl.darttemplate

Issue 10378040: Generate and use cross frame wrappers for types in other frames/windows. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Factored out template Created 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1
2 class _$(NAME)CrossFrameImpl implements $(NAME) {
3 $!MEMBERS
4 // Implementation.
5 $(CLASSNAME) $POINTER;
6
7 _$(NAME)CrossFrameImpl._(this.$POINTER);
8
9 static _createSafe(ptr) {
10 if (ptr === $LOCAL) {
11 return $LOCAL;
12 } else {
13 // TODO(vsm): Should we cache to try to get reference equality?
14 return new _$(NAME)CrossFrameImpl._(ptr);
15 }
16 }
17
18 operator ==(other) {
19 return (other is _$(NAME)CrossFrameImpl) &&
20 (this.$POINTER === other.$POINTER);
21 }
22 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698