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

Unified Diff: sdk/lib/html/src/dart2js_LocationWrapper.dart

Issue 11691009: Moved most of html lib generating scripts into tools. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years 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 | « sdk/lib/html/src/dart2js_KeyEvent.dart ('k') | sdk/lib/html/src/dart2js_TypedArrayFactoryProvider.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/src/dart2js_LocationWrapper.dart
diff --git a/sdk/lib/html/src/dart2js_LocationWrapper.dart b/sdk/lib/html/src/dart2js_LocationWrapper.dart
deleted file mode 100644
index f430534da8cbc8bd45a81ca6f960f229b0718c9f..0000000000000000000000000000000000000000
--- a/sdk/lib/html/src/dart2js_LocationWrapper.dart
+++ /dev/null
@@ -1,84 +0,0 @@
-// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
-// for details. All rights reserved. Use of this source code is governed by a
-// BSD-style license that can be found in the LICENSE file.
-
-part of html;
-
-// On Firefox 11, the object obtained from 'window.location' is very strange.
-// It can't be monkey-patched and seems immune to putting methods on
-// Object.prototype. We are forced to wrap the object.
-
-class _LocationWrapper implements Location {
-
- final _ptr; // Opaque reference to real location.
-
- _LocationWrapper(this._ptr);
-
- // TODO(sra): Replace all the _set and _get calls with 'JS' forms.
-
- // final List<String> ancestorOrigins;
- List<String> get ancestorOrigins => _get(_ptr, 'ancestorOrigins');
-
- // String hash;
- String get hash => _get(_ptr, 'hash');
- void set hash(String value) {
- _set(_ptr, 'hash', value);
- }
-
- // String host;
- String get host => _get(_ptr, 'host');
- void set host(String value) {
- _set(_ptr, 'host', value);
- }
-
- // String hostname;
- String get hostname => _get(_ptr, 'hostname');
- void set hostname(String value) {
- _set(_ptr, 'hostname', value);
- }
-
- // String href;
- String get href => _get(_ptr, 'href');
- void set href(String value) {
- _set(_ptr, 'href', value);
- }
-
- // final String origin;
- String get origin => _get(_ptr, 'origin');
-
- // String pathname;
- String get pathname => _get(_ptr, 'pathname');
- void set pathname(String value) {
- _set(_ptr, 'pathname', value);
- }
-
- // String port;
- String get port => _get(_ptr, 'port');
- void set port(String value) {
- _set(_ptr, 'port', value);
- }
-
- // String protocol;
- String get protocol => _get(_ptr, 'protocol');
- void set protocol(String value) {
- _set(_ptr, 'protocol', value);
- }
-
- // String search;
- String get search => _get(_ptr, 'search');
- void set search(String value) {
- _set(_ptr, 'search', value);
- }
-
- void assign(String url) => JS('void', '#.assign(#)', _ptr, url);
-
- void reload() => JS('void', '#.reload()', _ptr);
-
- void replace(String url) => JS('void', '#.replace(#)', _ptr, url);
-
- String toString() => JS('String', '#.toString()', _ptr);
-
-
- static _get(p, m) => JS('var', '#[#]', p, m);
- static _set(p, m, v) => JS('void', '#[#] = #', p, m, v);
-}
« no previous file with comments | « sdk/lib/html/src/dart2js_KeyEvent.dart ('k') | sdk/lib/html/src/dart2js_TypedArrayFactoryProvider.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698