summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_accessibility_manager.h
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-16 18:31:26 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-16 18:31:26 +0000
commit8c8657d61fb8792985888c88730b2eb2f4fc4019 (patch)
tree73f4290e22afe39a19d64a0792a5a2ff2740a32c /chrome/browser/browser_accessibility_manager.h
parent52ef74f432e2fb08be4f7ea323244884894fc656 (diff)
downloadchromium_src-8c8657d61fb8792985888c88730b2eb2f4fc4019.zip
chromium_src-8c8657d61fb8792985888c88730b2eb2f4fc4019.tar.gz
chromium_src-8c8657d61fb8792985888c88730b2eb2f4fc4019.tar.bz2
Move functions required by the rest of the browser from RenderProcessHost to an interface and move the implementation to BrowserRenderProcessHost. This will allow me to write render view unit tests without using the actual renderer, but there are no tests yet.
Review URL: http://codereview.chromium.org/18132 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8188 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_accessibility_manager.h')
-rw-r--r--chrome/browser/browser_accessibility_manager.h30
1 files changed, 15 insertions, 15 deletions
diff --git a/chrome/browser/browser_accessibility_manager.h b/chrome/browser/browser_accessibility_manager.h
index 4d837bf..8356bc4 100644
--- a/chrome/browser/browser_accessibility_manager.h
+++ b/chrome/browser/browser_accessibility_manager.h
@@ -16,21 +16,6 @@ class BrowserAccessibility;
class RenderProcessHost;
class RenderWidgetHost;
-// Member variable structure, used in instance hashmap.
-struct UniqueMembers {
- RenderWidgetHost* render_widget_host_;
- HWND parent_hwnd_;
-
- UniqueMembers(HWND parent_hwnd, RenderWidgetHost* render_widget_host)
- : parent_hwnd_(parent_hwnd),
- render_widget_host_(render_widget_host) {
- }
-};
-
-typedef stdext::hash_map<int, UniqueMembers*> InstanceMap;
-typedef stdext::hash_map<RenderProcessHost*, BrowserAccessibility*>
- RenderProcessHostMap;
-
////////////////////////////////////////////////////////////////////////////////
//
// BrowserAccessibilityManager
@@ -91,6 +76,21 @@ class BrowserAccessibilityManager : public NotificationObserver {
~BrowserAccessibilityManager();
private:
+ // Member variable structure, used in instance hashmap.
+ struct UniqueMembers {
+ RenderWidgetHost* render_widget_host_;
+ HWND parent_hwnd_;
+
+ UniqueMembers(HWND parent_hwnd, RenderWidgetHost* render_widget_host)
+ : parent_hwnd_(parent_hwnd),
+ render_widget_host_(render_widget_host) {
+ }
+ };
+
+ typedef stdext::hash_map<int, UniqueMembers*> InstanceMap;
+ typedef stdext::hash_map<RenderProcessHost*, BrowserAccessibility*>
+ RenderProcessHostMap;
+
// Caching of the unique member variables used to handle browser accessibility
// requests from multiple processes.
InstanceMap instance_map_;