| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2008 Google Inc. | 2 * Copyright 2008 Google Inc. |
| 3 * | 3 * |
| 4 * Licensed under the Apache License, Version 2.0 (the "License"); you may not | 4 * Licensed under the Apache License, Version 2.0 (the "License"); you may not |
| 5 * use this file except in compliance with the License. You may obtain a copy of | 5 * use this file except in compliance with the License. You may obtain a copy of |
| 6 * the License at | 6 * the License at |
| 7 * | 7 * |
| 8 * http://www.apache.org/licenses/LICENSE-2.0 | 8 * http://www.apache.org/licenses/LICENSE-2.0 |
| 9 * | 9 * |
| 10 * Unless required by applicable law or agreed to in writing, software | 10 * Unless required by applicable law or agreed to in writing, software |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 | 128 |
| 129 DefaultTextOutput out = new DefaultTextOutput(true); | 129 DefaultTextOutput out = new DefaultTextOutput(true); |
| 130 | 130 |
| 131 // Emit the module's JS as a closure. | 131 // Emit the module's JS as a closure. |
| 132 out.print("(function () {"); | 132 out.print("(function () {"); |
| 133 out.newlineOpt(); | 133 out.newlineOpt(); |
| 134 out.print("var $gwt_version = \"" + About.getGwtVersionNum() + "\";"); | 134 out.print("var $gwt_version = \"" + About.getGwtVersionNum() + "\";"); |
| 135 out.newlineOpt(); | 135 out.newlineOpt(); |
| 136 out.print("var $wnd = window; /* our linker */"); | 136 out.print("var $wnd = window; /* our linker */"); |
| 137 out.newlineOpt(); | 137 out.newlineOpt(); |
| 138 out.print("var $_countWords;"); |
| 139 out.newlineOpt(); |
| 138 out.print("var $doc = $wnd.document;"); | 140 out.print("var $doc = $wnd.document;"); |
| 139 out.newlineOpt(); | 141 out.newlineOpt(); |
| 140 out.print("var $moduleName, $moduleBase;"); | 142 out.print("var $moduleName, $moduleBase;"); |
| 141 out.newlineOpt(); | 143 out.newlineOpt(); |
| 142 out.print("var $stats = $wnd.__gwtStatsEvent ? function(a) {$wnd.__gwtStatsE
vent(a)} : null;"); | 144 out.print("var $stats = $wnd.__gwtStatsEvent ? function(a) {$wnd.__gwtStatsE
vent(a)} : null;"); |
| 143 out.newlineOpt(); | 145 out.newlineOpt(); |
| 144 | 146 |
| 145 out.print("var $strongName = '" + result.getStrongName() + "';"); | 147 out.print("var $strongName = '" + result.getStrongName() + "';"); |
| 146 out.newlineOpt(); | 148 out.newlineOpt(); |
| 147 | 149 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 176 String strongName) throws UnableToCompleteException { | 178 String strongName) throws UnableToCompleteException { |
| 177 throw new UnableToCompleteException(); | 179 throw new UnableToCompleteException(); |
| 178 } | 180 } |
| 179 | 181 |
| 180 @Override | 182 @Override |
| 181 protected String getSelectionScriptTemplate(TreeLogger logger, LinkerContext c
ontext) | 183 protected String getSelectionScriptTemplate(TreeLogger logger, LinkerContext c
ontext) |
| 182 throws UnableToCompleteException { | 184 throws UnableToCompleteException { |
| 183 return "com/google/gwt/core/linker/SingleScriptTemplate.js"; | 185 return "com/google/gwt/core/linker/SingleScriptTemplate.js"; |
| 184 } | 186 } |
| 185 } | 187 } |
| OLD | NEW |