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

Unified Diff: client/samples/total/src/InnerMenuView.dart

Issue 8835006: New version of dart:html (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix typos Created 9 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 | « client/samples/total/src/HtmlTable.dart ('k') | client/samples/total/src/SelectionManager.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/samples/total/src/InnerMenuView.dart
diff --git a/client/samples/total/src/InnerMenuView.dart b/client/samples/total/src/InnerMenuView.dart
index 0fc016f38df5821f17a65dd44f28a820602da425..7a0ae24bc00d035e91d80b038148d565bf295600 100644
--- a/client/samples/total/src/InnerMenuView.dart
+++ b/client/samples/total/src/InnerMenuView.dart
@@ -23,9 +23,9 @@ class InnerMenuView {
String classOfDiv,
void clickedFunc(DivElement div)) {
Document document = parent.document;
- ButtonElement button = document.createElement("button");
+ ButtonElement button = new Element.tag("button");
button.attributes["class"] = classOfButton;
- Element div = document.createElement("div");
+ Element div = new Element.tag("div");
div.attributes["class"] = classOfDiv;
button.nodes.add(div);
parent.nodes.add(button);
@@ -104,12 +104,12 @@ class InnerMenuView {
_pinHeight(_window, _row);
Document document = _row.document;
- _bar = document.createElement("div");
+ _bar = new Element.tag("div");
_bar.classes.add("inner-menu");
// Close the menu when the non-button area is clicked
// We use the supplied _callToHide function to initiate the hiding
- Element buttons = document.createElement("div");
+ Element buttons = new Element.tag("div");
buttons.classes.add("inner-menu-buttons");
buttons.on.click.add((Event e) { _callToHide(); });
@@ -259,7 +259,7 @@ class InnerMenuView {
ColorPicker _createColorPicker(Element buttons, String name, String className,
SetStyleFunction action) {
- DivElement div = buttons.document.createElement("div");
+ DivElement div = new Element.tag("div");
div.id = "${name}Div";
ColorPicker picker = new ColorPicker(div, Formats.htmlColors, 8, 6, 18, 3);
@@ -285,7 +285,7 @@ class InnerMenuView {
ValuePicker _createValuePicker(Element buttons, String name, String className,
List<String> values, SetStyleFunction action) {
- DivElement div = buttons.document.createElement("div");
+ DivElement div = new Element.tag("div");
div.id = "${name}Div";
DivElement button = _addButton(buttons, "inner-menu-button", "n",
« no previous file with comments | « client/samples/total/src/HtmlTable.dart ('k') | client/samples/total/src/SelectionManager.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698