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

Side by Side Diff: chrome/renderer/resources/extensions/automation/automation_node.js

Issue 1942683005: Refactor event handler classes to make it easier to add new event type listeners. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 var AutomationEvent = require('automationEvent').AutomationEvent; 5 var AutomationEvent = require('automationEvent').AutomationEvent;
6 var automationInternal = 6 var automationInternal =
7 require('binding').Binding.create('automationInternal').generate(); 7 require('binding').Binding.create('automationInternal').generate();
8 var exceptionHandler = require('uncaught_exception_handler'); 8 var exceptionHandler = require('uncaught_exception_handler');
9 var IsInteractPermitted = 9 var IsInteractPermitted =
10 requireNative('automationInternal').IsInteractPermitted; 10 requireNative('automationInternal').IsInteractPermitted;
(...skipping 611 matching lines...) Expand 10 before | Expand all | Expand 10 after
622 'tableColumnCount', 622 'tableColumnCount',
623 'tableColumnIndex', 623 'tableColumnIndex',
624 'tableRowCount', 624 'tableRowCount',
625 'tableRowIndex', 625 'tableRowIndex',
626 'textDirection', 626 'textDirection',
627 'textSelEnd', 627 'textSelEnd',
628 'textSelStart', 628 'textSelStart',
629 'textStyle']; 629 'textStyle'];
630 630
631 var nodeRefAttributes = [ 631 var nodeRefAttributes = [
632 ['activedescendantId', 'activedescendant'], 632 ['activedescendantId', 'activeDescendant'],
633 ['tableColumnHeaderId', 'tableColumnHeader'], 633 ['tableColumnHeaderId', 'tableColumnHeader'],
634 ['tableHeaderId', 'tableHeader'], 634 ['tableHeaderId', 'tableHeader'],
635 ['tableRowHeaderId', 'tableRowHeader'], 635 ['tableRowHeaderId', 'tableRowHeader'],
636 ['titleUiElement', 'titleUIElement']]; 636 ['titleUiElement', 'titleUIElement']];
637 637
638 var intListAttributes = [ 638 var intListAttributes = [
639 'characterOffsets', 639 'characterOffsets',
640 'lineBreaks', 640 'lineBreaks',
641 'wordEnds', 641 'wordEnds',
642 'wordStarts']; 642 'wordStarts'];
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after
987 AutomationRootNode.getOrCreate = function(treeID) { 987 AutomationRootNode.getOrCreate = function(treeID) {
988 return AutomationRootNodeImpl.getOrCreate(treeID); 988 return AutomationRootNodeImpl.getOrCreate(treeID);
989 } 989 }
990 990
991 AutomationRootNode.destroy = function(treeID) { 991 AutomationRootNode.destroy = function(treeID) {
992 AutomationRootNodeImpl.destroy(treeID); 992 AutomationRootNodeImpl.destroy(treeID);
993 } 993 }
994 994
995 exports.$set('AutomationNode', AutomationNode); 995 exports.$set('AutomationNode', AutomationNode);
996 exports.$set('AutomationRootNode', AutomationRootNode); 996 exports.$set('AutomationRootNode', AutomationRootNode);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698