OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2006-2008 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 WEBKIT_GLUE_WEBACCESSIBILITYMANAGER_H_ |
| 6 #define WEBKIT_GLUE_WEBACCESSIBILITYMANAGER_H_ |
| 7 |
| 8 #include "webkit/glue/webaccessibility.h" |
| 9 |
| 10 class WebView; |
| 11 |
| 12 //////////////////////////////////////////////////////////////////////////////// |
| 13 // |
| 14 // WebAccessibilityManager |
| 15 // |
| 16 // Responds to incoming accessibility requests from the browser side. Retrieves |
| 17 // the requested information from the active AccessibilityObject, through the |
| 18 // GlueAccessibilityObject. |
| 19 //////////////////////////////////////////////////////////////////////////////// |
| 20 namespace webkit_glue { |
| 21 |
| 22 class WebAccessibilityManager { |
| 23 public: |
| 24 WebAccessibilityManager() {} |
| 25 virtual ~WebAccessibilityManager() {} |
| 26 |
| 27 static WebAccessibilityManager* Create(); |
| 28 |
| 29 // Retrieves the accessibility information as requested in in_params, by |
| 30 // calling into WebKit's AccessibilityObject. Maintains a hashmap of the |
| 31 // currently active (browser side ref-count non-zero) instances. Returns true |
| 32 // if successful, false otherwise. |
| 33 virtual bool GetAccObjInfo(WebView* view, |
| 34 const WebAccessibility::InParams& in_params, |
| 35 WebAccessibility::OutParams* out_params) = 0; |
| 36 |
| 37 // Erases the entry identified by the [acc_obj_id] from the hash maps. If |
| 38 // [clear_all] is true, all entries are erased. Returns true if successful, |
| 39 // false otherwise. |
| 40 virtual bool ClearAccObjMap(int acc_obj_id, bool clear_all) = 0; |
| 41 |
| 42 // Retrieves the RenderObject associated with this WebView, and uses it to |
| 43 // initialize the root of the GlueAccessibilityObject tree with the |
| 44 // associated accessibility information. Returns true if successful, false |
| 45 // otherwise. |
| 46 virtual bool InitAccObjRoot(WebView* view) = 0; |
| 47 |
| 48 private: |
| 49 DISALLOW_COPY_AND_ASSIGN(WebAccessibilityManager); |
| 50 }; |
| 51 |
| 52 }; // namespace webkit_glue |
| 53 |
| 54 #endif // WEBKIT_GLUE_WEBACCESSIBILITYMANAGER_H_ |
OLD | NEW |