| OLD | NEW |
| 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 #ifndef CHROME_RENDERER_EXTENSIONS_AUTOMATION_INTERNAL_CUSTOM_BINDINGS_H_ | 5 #ifndef CHROME_RENDERER_EXTENSIONS_AUTOMATION_INTERNAL_CUSTOM_BINDINGS_H_ |
| 6 #define CHROME_RENDERER_EXTENSIONS_AUTOMATION_INTERNAL_CUSTOM_BINDINGS_H_ | 6 #define CHROME_RENDERER_EXTENSIONS_AUTOMATION_INTERNAL_CUSTOM_BINDINGS_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "chrome/common/extensions/api/automation.h" | 10 #include "chrome/common/extensions/api/automation.h" |
| 11 #include "extensions/renderer/object_backed_native_handler.h" | 11 #include "extensions/renderer/object_backed_native_handler.h" |
| 12 #include "ipc/ipc_message.h" | 12 #include "ipc/ipc_message.h" |
| 13 #include "ui/accessibility/ax_tree.h" | 13 #include "ui/accessibility/ax_tree.h" |
| 14 #include "v8/include/v8.h" | 14 #include "v8/include/v8.h" |
| 15 | 15 |
| 16 struct ExtensionMsg_AccessibilityEventParams; | 16 struct ExtensionMsg_AccessibilityEventParams; |
| 17 struct ExtensionMsg_AccessibilityLocationChangeParams; |
| 17 | 18 |
| 18 namespace extensions { | 19 namespace extensions { |
| 19 | 20 |
| 20 class AutomationInternalCustomBindings; | 21 class AutomationInternalCustomBindings; |
| 21 class AutomationMessageFilter; | 22 class AutomationMessageFilter; |
| 22 | 23 |
| 23 struct TreeCache { | 24 struct TreeCache { |
| 24 TreeCache(); | 25 TreeCache(); |
| 25 ~TreeCache(); | 26 ~TreeCache(); |
| 26 | 27 |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 // Returns: JS object with a string key for each state flag that's set. | 140 // Returns: JS object with a string key for each state flag that's set. |
| 140 void GetState(const v8::FunctionCallbackInfo<v8::Value>& args); | 141 void GetState(const v8::FunctionCallbackInfo<v8::Value>& args); |
| 141 | 142 |
| 142 // | 143 // |
| 143 // Helper functions. | 144 // Helper functions. |
| 144 // | 145 // |
| 145 | 146 |
| 146 // Handle accessibility events from the browser process. | 147 // Handle accessibility events from the browser process. |
| 147 void OnAccessibilityEvent(const ExtensionMsg_AccessibilityEventParams& params, | 148 void OnAccessibilityEvent(const ExtensionMsg_AccessibilityEventParams& params, |
| 148 bool is_active_profile); | 149 bool is_active_profile); |
| 150 void OnAccessibilityLocationChange( |
| 151 const ExtensionMsg_AccessibilityLocationChangeParams& params); |
| 149 | 152 |
| 150 void UpdateOverallTreeChangeObserverFilter(); | 153 void UpdateOverallTreeChangeObserverFilter(); |
| 151 | 154 |
| 152 // AXTreeDelegate implementation. | 155 // AXTreeDelegate implementation. |
| 153 void OnNodeDataWillChange(ui::AXTree* tree, | 156 void OnNodeDataWillChange(ui::AXTree* tree, |
| 154 const ui::AXNodeData& old_node_data, | 157 const ui::AXNodeData& old_node_data, |
| 155 const ui::AXNodeData& new_node_data) override; | 158 const ui::AXNodeData& new_node_data) override; |
| 156 void OnTreeDataChanged(ui::AXTree* tree) override; | 159 void OnTreeDataChanged(ui::AXTree* tree) override; |
| 157 void OnNodeWillBeDeleted(ui::AXTree* tree, ui::AXNode* node) override; | 160 void OnNodeWillBeDeleted(ui::AXTree* tree, ui::AXNode* node) override; |
| 158 void OnSubtreeWillBeDeleted(ui::AXTree* tree, ui::AXNode* node) override; | 161 void OnSubtreeWillBeDeleted(ui::AXTree* tree, ui::AXNode* node) override; |
| (...skipping 17 matching lines...) Expand all Loading... |
| 176 int tree_change_observer_overall_filter_; | 179 int tree_change_observer_overall_filter_; |
| 177 std::vector<int> deleted_node_ids_; | 180 std::vector<int> deleted_node_ids_; |
| 178 std::vector<int> text_changed_node_ids_; | 181 std::vector<int> text_changed_node_ids_; |
| 179 | 182 |
| 180 DISALLOW_COPY_AND_ASSIGN(AutomationInternalCustomBindings); | 183 DISALLOW_COPY_AND_ASSIGN(AutomationInternalCustomBindings); |
| 181 }; | 184 }; |
| 182 | 185 |
| 183 } // namespace extensions | 186 } // namespace extensions |
| 184 | 187 |
| 185 #endif // CHROME_RENDERER_EXTENSIONS_AUTOMATION_INTERNAL_CUSTOM_BINDINGS_H_ | 188 #endif // CHROME_RENDERER_EXTENSIONS_AUTOMATION_INTERNAL_CUSTOM_BINDINGS_H_ |
| OLD | NEW |