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

Unified Diff: extensions/renderer/api/automation/automation_api_helper.h

Issue 655273005: Implement AutomationNode.querySelector(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Address comments Created 6 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
Index: extensions/renderer/api/automation/automation_api_helper.h
diff --git a/extensions/renderer/api/automation/automation_api_helper.h b/extensions/renderer/api/automation/automation_api_helper.h
new file mode 100644
index 0000000000000000000000000000000000000000..4f3fbe3b5e2b910b5fe8ee9a065ec46f4d05334c
--- /dev/null
+++ b/extensions/renderer/api/automation/automation_api_helper.h
@@ -0,0 +1,34 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef EXTENSIONS_RENDERER_API_AUTOMATION_AUTOMATION_API_HELPER_H_
+#define EXTENSIONS_RENDERER_API_AUTOMATION_AUTOMATION_API_HELPER_H_
+
+#include <string>
Devlin 2014/10/29 21:23:44 don't need this.
aboxhall 2014/10/30 18:34:18 Done.
+
+#include "base/strings/string16.h"
+#include "content/public/renderer/render_view_observer.h"
+
+namespace extensions {
+
+// Renderer-side implementation for chrome.automation API (for the few pieces
+// which aren't built in to the existing accessibility system).
+class AutomationApiHelper : public content::RenderViewObserver {
+ public:
+ AutomationApiHelper(content::RenderView* render_view);
Devlin 2014/10/29 21:23:44 explicit
aboxhall 2014/10/30 18:34:18 Done.
+ virtual ~AutomationApiHelper();
Devlin 2014/10/29 21:23:44 Same virtual/override comments
aboxhall 2014/10/30 18:34:18 Done.
+
+ private:
+ // RenderViewObserver implementation.
+ virtual bool OnMessageReceived(const IPC::Message& message) override;
+
+ void OnQuerySelector(int acc_obj_id,
+ int request_id,
+ const base::string16& selector);
+
+ DISALLOW_COPY_AND_ASSIGN(AutomationApiHelper);
+};
+
+}
Devlin 2014/10/29 21:23:44 nit: newline
Devlin 2014/10/29 21:23:44 nit: // namespace extensions
aboxhall 2014/10/30 18:34:18 Done.
aboxhall 2014/10/30 18:34:18 Done.
+#endif // EXTENSIONS_RENDERER_API_AUTOMATION_AUTOMATION_API_HELPER_H_

Powered by Google App Engine
This is Rietveld 408576698