OLD | NEW |
(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_ |
OLD | NEW |