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

Side by Side 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: Fix heap-use-after-free issue by not keeping a scoped_ptr to automation_api_helper in extension_hel… Created 6 years, 1 month 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef EXTENSIONS_RENDERER_API_AUTOMATION_AUTOMATION_API_HELPER_H_
6 #define EXTENSIONS_RENDERER_API_AUTOMATION_AUTOMATION_API_HELPER_H_
7
8 #include "base/strings/string16.h"
9 #include "content/public/renderer/render_view_observer.h"
10
11 namespace extensions {
12
13 // Renderer-side implementation for chrome.automation API (for the few pieces
14 // which aren't built in to the existing accessibility system).
15 class AutomationApiHelper : public content::RenderViewObserver {
16 public:
17 explicit AutomationApiHelper(content::RenderView* render_view);
18 ~AutomationApiHelper() override;
19
20 private:
21 // RenderViewObserver implementation.
22 bool OnMessageReceived(const IPC::Message& message) override;
23
24 void OnQuerySelector(int acc_obj_id,
25 int request_id,
26 const base::string16& selector);
27
28 DISALLOW_COPY_AND_ASSIGN(AutomationApiHelper);
29 };
30
31 } // namespace extensions
32
33 #endif // EXTENSIONS_RENDERER_API_AUTOMATION_AUTOMATION_API_HELPER_H_
OLDNEW
« no previous file with comments | « extensions/renderer/BUILD.gn ('k') | extensions/renderer/api/automation/automation_api_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698