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

Unified Diff: chrome/renderer/resources/extensions/automation/automation_event.js

Issue 1938123002: Ensure that privates are private. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 years, 8 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 | « no previous file | chrome/renderer/resources/extensions/automation/automation_node.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/resources/extensions/automation/automation_event.js
diff --git a/chrome/renderer/resources/extensions/automation/automation_event.js b/chrome/renderer/resources/extensions/automation/automation_event.js
index 7d04ecc438628d07da08dba54affb6cd43d0fb8d..0ba408d9e82dae617c369e73ecc1d03c91487c35 100644
--- a/chrome/renderer/resources/extensions/automation/automation_event.js
+++ b/chrome/renderer/resources/extensions/automation/automation_event.js
@@ -19,8 +19,18 @@ AutomationEventImpl.prototype = {
}
};
-exports.AutomationEvent = utils.expose(
- 'AutomationEvent',
- AutomationEventImpl,
- { functions: ['stopPropagation'],
- readonly: ['type', 'target', 'eventPhase'] });
+function AutomationEvent() {
+ privates(AutomationEvent).constructPrivate(this, arguments);
+}
+utils.expose(AutomationEvent, AutomationEventImpl, {
+ functions: [
+ 'stopPropagation',
+ ],
+ readonly: [
+ 'type',
+ 'target',
+ 'eventPhase',
+ ],
+});
+
+exports.$set('AutomationEvent', AutomationEvent);
« no previous file with comments | « no previous file | chrome/renderer/resources/extensions/automation/automation_node.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698