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

Side by Side Diff: content/browser/accessibility/browser_accessibility_manager_win.h

Issue 10544099: Refactor all accessibility code out of webkit/glue. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: More Mac compile errors Created 8 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_WIN_H_ 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_WIN_H_
6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_WIN_H_ 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_WIN_H_
7 #pragma once 7 #pragma once
8 8
9 #include <oleacc.h> 9 #include <oleacc.h>
10 10
11 #include "base/win/scoped_comptr.h" 11 #include "base/win/scoped_comptr.h"
12 #include "content/browser/accessibility/browser_accessibility_manager.h" 12 #include "content/browser/accessibility/browser_accessibility_manager.h"
13 #include "webkit/glue/webaccessibility.h"
14 13
15 class BrowserAccessibilityWin; 14 class BrowserAccessibilityWin;
16 15
17 using webkit_glue::WebAccessibility;
18
19 // Manages a tree of BrowserAccessibilityWin objects. 16 // Manages a tree of BrowserAccessibilityWin objects.
20 class BrowserAccessibilityManagerWin : public BrowserAccessibilityManager { 17 class BrowserAccessibilityManagerWin : public BrowserAccessibilityManager {
21 public: 18 public:
22 virtual ~BrowserAccessibilityManagerWin(); 19 virtual ~BrowserAccessibilityManagerWin();
23 20
24 // Get a the default IAccessible for the parent window, does not make a 21 // Get a the default IAccessible for the parent window, does not make a
25 // new reference. 22 // new reference.
26 IAccessible* GetParentWindowIAccessible(); 23 IAccessible* GetParentWindowIAccessible();
27 24
28 // BrowserAccessibilityManager methods 25 // BrowserAccessibilityManager methods
29 virtual void NotifyAccessibilityEvent(int type, BrowserAccessibility* node); 26 virtual void NotifyAccessibilityEvent(int type, BrowserAccessibility* node);
30 27
31 // Track this object and post a VISIBLE_DATA_CHANGED notification when 28 // Track this object and post a VISIBLE_DATA_CHANGED notification when
32 // its container scrolls. 29 // its container scrolls.
33 // TODO(dmazzoni): remove once http://crbug.com/113483 is fixed. 30 // TODO(dmazzoni): remove once http://crbug.com/113483 is fixed.
34 void TrackScrollingObject(BrowserAccessibilityWin* node); 31 void TrackScrollingObject(BrowserAccessibilityWin* node);
35 32
36 private: 33 private:
37 BrowserAccessibilityManagerWin( 34 BrowserAccessibilityManagerWin(
38 HWND parent_window, 35 HWND parent_window,
39 const WebAccessibility& src, 36 const content::AccessibilityNodeData& src,
40 BrowserAccessibilityDelegate* delegate, 37 BrowserAccessibilityDelegate* delegate,
41 BrowserAccessibilityFactory* factory); 38 BrowserAccessibilityFactory* factory);
42 39
43 // A default IAccessible instance for the parent window. 40 // A default IAccessible instance for the parent window.
44 base::win::ScopedComPtr<IAccessible> window_iaccessible_; 41 base::win::ScopedComPtr<IAccessible> window_iaccessible_;
45 42
46 // Give BrowserAccessibilityManager::Create access to our constructor. 43 // Give BrowserAccessibilityManager::Create access to our constructor.
47 friend class BrowserAccessibilityManager; 44 friend class BrowserAccessibilityManager;
48 45
49 // Track the most recent object that has been asked to scroll and 46 // Track the most recent object that has been asked to scroll and
50 // post a notification directly on it when it reaches its destination. 47 // post a notification directly on it when it reaches its destination.
51 // TODO(dmazzoni): remove once http://crbug.com/113483 is fixed. 48 // TODO(dmazzoni): remove once http://crbug.com/113483 is fixed.
52 BrowserAccessibilityWin* tracked_scroll_object_; 49 BrowserAccessibilityWin* tracked_scroll_object_;
53 50
54 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerWin); 51 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerWin);
55 }; 52 };
56 53
57 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_WIN_H_ 54 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698