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

Unified Diff: chrome/renderer/extensions/automation_internal_custom_bindings.h

Issue 1268163002: Dispatch automation events to the last used profile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 5 years, 3 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
Index: chrome/renderer/extensions/automation_internal_custom_bindings.h
diff --git a/chrome/renderer/extensions/automation_internal_custom_bindings.h b/chrome/renderer/extensions/automation_internal_custom_bindings.h
index c4f2cd23850cfc59bbc3e764b434aa2a19d99c14..6b126c5a896292a18d38d0cff6e467fd06e214b2 100644
--- a/chrome/renderer/extensions/automation_internal_custom_bindings.h
+++ b/chrome/renderer/extensions/automation_internal_custom_bindings.h
@@ -148,8 +148,8 @@ class AutomationInternalCustomBindings : public ObjectBackedNativeHandler,
v8::Local<v8::Value> CreateV8String(const std::string& str);
// Handle accessibility events from the browser process.
- void OnAccessibilityEvent(
- const ExtensionMsg_AccessibilityEventParams& params);
+ void OnAccessibilityEvent(const ExtensionMsg_AccessibilityEventParams& params,
+ bool is_active_profile);
// AXTreeDelegate implementation.
void OnNodeWillBeDeleted(ui::AXTree* tree, ui::AXNode* node) override;
@@ -167,6 +167,7 @@ class AutomationInternalCustomBindings : public ObjectBackedNativeHandler,
base::hash_map<int, TreeCache*> tree_id_to_tree_cache_map_;
base::hash_map<ui::AXTree*, TreeCache*> axtree_to_tree_cache_map_;
scoped_refptr<AutomationMessageFilter> message_filter_;
+ bool is_active_profile_;
DISALLOW_COPY_AND_ASSIGN(AutomationInternalCustomBindings);
};

Powered by Google App Engine
This is Rietveld 408576698