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

Unified Diff: client/base/DomWrapper.dart

Issue 9382027: Move client/{base, observable, layout, touch, util, view} to samples/ui_lib . (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: '' Created 8 years, 10 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 | « client/base/Device.dart ('k') | client/base/Env.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/base/DomWrapper.dart
===================================================================
--- client/base/DomWrapper.dart (revision 4144)
+++ client/base/DomWrapper.dart (working copy)
@@ -1,26 +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.
-
-/**
- * Embedded DSL for generating DOM elements.
- */
-class Dom {
- static void ready(void f()) {
- if (document.readyState == 'interactive' ||
- document.readyState == 'complete') {
- window.setTimeout(f, 0);
- } else {
- // TODO(jacobr): give this event a named property.
- window.on.contentLoaded.add((Event e) { f(); });
- }
- }
-
- /** Adds the given <style> text to the page. */
- static void addStyle(String cssText) {
- StyleElement style = new Element.tag('style');
- style.type = 'text/css';
- style.text = cssText;
- document.head.nodes.add(style);
- }
-}
« no previous file with comments | « client/base/Device.dart ('k') | client/base/Env.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698