[go: nahoru, domu]

blob: 840f615af15d1fdd1957bd25f913a9b113a92ec4 [file] [log] [blame]
aboxhall7abfb3d2014-11-06 02:03:051// 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
Jan Wilken Dörriead587c32021-03-11 14:09:278#include <string>
9
avi2d124c02015-12-23 06:36:4210#include "base/macros.h"
aboxhall7abfb3d2014-11-06 02:03:0511#include "base/strings/string16.h"
Devlin Croninab75d9a82017-10-17 02:01:2012#include "content/public/renderer/render_frame_observer.h"
aboxhall7abfb3d2014-11-06 02:03:0513
14namespace extensions {
15
16// Renderer-side implementation for chrome.automation API (for the few pieces
17// which aren't built in to the existing accessibility system).
Devlin Croninab75d9a82017-10-17 02:01:2018class AutomationApiHelper : public content::RenderFrameObserver {
aboxhall7abfb3d2014-11-06 02:03:0519 public:
Devlin Croninab75d9a82017-10-17 02:01:2020 explicit AutomationApiHelper(content::RenderFrame* render_frame);
aboxhall7abfb3d2014-11-06 02:03:0521 ~AutomationApiHelper() override;
22
23 private:
Devlin Croninab75d9a82017-10-17 02:01:2024 // content::RenderFrameObserver:
aboxhall7abfb3d2014-11-06 02:03:0525 bool OnMessageReceived(const IPC::Message& message) override;
xjz694b50a92016-06-07 21:49:3726 void OnDestruct() override;
aboxhall7abfb3d2014-11-06 02:03:0527
28 void OnQuerySelector(int acc_obj_id,
29 int request_id,
Jan Wilken Dörrie85285b02021-03-11 23:38:4730 const std::u16string& selector);
aboxhall7abfb3d2014-11-06 02:03:0531
32 DISALLOW_COPY_AND_ASSIGN(AutomationApiHelper);
33};
34
35} // namespace extensions
36
37#endif // EXTENSIONS_RENDERER_API_AUTOMATION_AUTOMATION_API_HELPER_H_