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

Unified Diff: tools/dom/templates/html/dartium/html_dartium.darttemplate

Issue 1428593002: Deprecate new internal Dartium/JsInterop APIs that are public (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 5 years, 2 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 | « tools/dom/scripts/systemhtml.py ('k') | tools/dom/templates/html/dartium/indexed_db_dartium.darttemplate » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dom/templates/html/dartium/html_dartium.darttemplate
diff --git a/tools/dom/templates/html/dartium/html_dartium.darttemplate b/tools/dom/templates/html/dartium/html_dartium.darttemplate
index 4dc5fc93615d351b5e6f578939eb4c2b593c3d91..850b539fd9ff646346e34cb38ff020e1c85669d9 100644
--- a/tools/dom/templates/html/dartium/html_dartium.darttemplate
+++ b/tools/dom/templates/html/dartium/html_dartium.darttemplate
@@ -151,6 +151,7 @@ Future<Isolate> spawnDomUri(Uri uri, List<String> args, message) {
return _Utils.spawnDomUri(uri.toString());
}
// FIXME: Can we make this private?
+@Deprecated("Internal Use Only")
final htmlBlinkMap = {
'_HistoryCrossFrame': () => _HistoryCrossFrame,
'_LocationCrossFrame': () => _LocationCrossFrame,
@@ -259,6 +260,7 @@ $!TYPE_FUNCTION_MAP
// TODO(terry): We may want to move this elsewhere if html becomes
// a package to avoid dartium depending on pkg:html.
+@Deprecated("Internal Use Only")
getHtmlCreateFunction(String key) {
var result;
@@ -391,9 +393,13 @@ String _getCustomElementName(element) {
/// An abstract class for all DOM objects we wrap in dart:html and related
/// libraries.
+///
+/// ** Internal Use Only **
+@Deprecated("Internal Use Only")
class DartHtmlDomObject {
/// The underlying JS DOM object.
+ @Deprecated("Internal Use Only")
js.JsObject blink_jsObject;
}
@@ -424,11 +430,13 @@ _upgradeHtmlElement(dartInstance) {
return dartInstance;
}
+@Deprecated("Internal Use Only")
class DebugAssertException implements Exception {
String message;
DebugAssertException(this.message);
}
+@Deprecated("Internal Use Only")
debug_or_assert(message, expression) {
if (!expression) {
throw new DebugAssertException("$message");
@@ -441,6 +449,7 @@ debug_or_assert(message, expression) {
// user's this (this is needed for futures) and listener function.
Map<int, Map<int, js.JsFunction>> _knownListeners = {};
+@Deprecated("Internal Use Only")
js.JsFunction wrap_event_listener(theObject, Function listener) {
var thisHashCode = theObject.hashCode;
var listenerHashCode = identityHashCode(listener);
@@ -452,6 +461,7 @@ js.JsFunction wrap_event_listener(theObject, Function listener) {
return _knownListeners[thisHashCode][listenerHashCode];
}
+@Deprecated("Internal Use Only")
Map<String, dynamic> convertNativeObjectToDartMap(js.JsObject jsObject) {
var result = new Map();
var keys = js.JsNative.callMethod(js.JsNative.getProperty(js.context, 'Object'), 'keys', [jsObject]);
« no previous file with comments | « tools/dom/scripts/systemhtml.py ('k') | tools/dom/templates/html/dartium/indexed_db_dartium.darttemplate » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698