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

Unified Diff: webkit/glue/webaccessibilitymanager.h

Issue 46013: Removes all use of COM and dependencies on Windows-specific classes (includin... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/glue/webaccessibility.h ('k') | webkit/glue/webaccessibilitymanager_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webaccessibilitymanager.h
===================================================================
--- webkit/glue/webaccessibilitymanager.h (revision 0)
+++ webkit/glue/webaccessibilitymanager.h (revision 0)
@@ -0,0 +1,54 @@
+// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef WEBKIT_GLUE_WEBACCESSIBILITYMANAGER_H_
+#define WEBKIT_GLUE_WEBACCESSIBILITYMANAGER_H_
+
+#include "webkit/glue/webaccessibility.h"
+
+class WebView;
+
+////////////////////////////////////////////////////////////////////////////////
+//
+// WebAccessibilityManager
+//
+// Responds to incoming accessibility requests from the browser side. Retrieves
+// the requested information from the active AccessibilityObject, through the
+// GlueAccessibilityObject.
+////////////////////////////////////////////////////////////////////////////////
+namespace webkit_glue {
+
+class WebAccessibilityManager {
+ public:
+ WebAccessibilityManager() {}
+ virtual ~WebAccessibilityManager() {}
+
+ static WebAccessibilityManager* Create();
+
+ // Retrieves the accessibility information as requested in in_params, by
+ // calling into WebKit's AccessibilityObject. Maintains a hashmap of the
+ // currently active (browser side ref-count non-zero) instances. Returns true
+ // if successful, false otherwise.
+ virtual bool GetAccObjInfo(WebView* view,
+ const WebAccessibility::InParams& in_params,
+ WebAccessibility::OutParams* out_params) = 0;
+
+ // Erases the entry identified by the [acc_obj_id] from the hash maps. If
+ // [clear_all] is true, all entries are erased. Returns true if successful,
+ // false otherwise.
+ virtual bool ClearAccObjMap(int acc_obj_id, bool clear_all) = 0;
+
+ // Retrieves the RenderObject associated with this WebView, and uses it to
+ // initialize the root of the GlueAccessibilityObject tree with the
+ // associated accessibility information. Returns true if successful, false
+ // otherwise.
+ virtual bool InitAccObjRoot(WebView* view) = 0;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(WebAccessibilityManager);
+};
+
+}; // namespace webkit_glue
darin (slow to review) 2009/03/20 17:23:15 nit: no ';' when closing a namespace.
+
+#endif // WEBKIT_GLUE_WEBACCESSIBILITYMANAGER_H_
Property changes on: webkit\glue\webaccessibilitymanager.h
___________________________________________________________________
Added: svn:eol-style
+ LF
« no previous file with comments | « webkit/glue/webaccessibility.h ('k') | webkit/glue/webaccessibilitymanager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698