Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / extensions / renderer / api / automation / automation_api_helper.h
blob0f1c8b09eb0b1be3f6175ef7b01a8ccdc289f135
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.
5 #ifndef EXTENSIONS_RENDERER_API_AUTOMATION_AUTOMATION_API_HELPER_H_
6 #define EXTENSIONS_RENDERER_API_AUTOMATION_AUTOMATION_API_HELPER_H_
8 #include "base/strings/string16.h"
9 #include "content/public/renderer/render_view_observer.h"
11 namespace extensions {
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;
20 private:
21 // RenderViewObserver implementation.
22 bool OnMessageReceived(const IPC::Message& message) override;
24 void OnQuerySelector(int acc_obj_id,
25 int request_id,
26 const base::string16& selector);
28 DISALLOW_COPY_AND_ASSIGN(AutomationApiHelper);
31 } // namespace extensions
33 #endif // EXTENSIONS_RENDERER_API_AUTOMATION_AUTOMATION_API_HELPER_H_