| OLD | NEW |
| 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 | 7 |
| 8 #include <oleacc.h> | 8 #include <oleacc.h> |
| 9 | 9 |
| 10 #include "base/win/scoped_comptr.h" | 10 #include "base/win/scoped_comptr.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 void set_parent_iaccessible(IAccessible* parent_iaccessible) { | 36 void set_parent_iaccessible(IAccessible* parent_iaccessible) { |
| 37 parent_iaccessible_ = parent_iaccessible; | 37 parent_iaccessible_ = parent_iaccessible; |
| 38 } | 38 } |
| 39 | 39 |
| 40 // Calls NotifyWinEvent if the parent window's IAccessible pointer is known. | 40 // Calls NotifyWinEvent if the parent window's IAccessible pointer is known. |
| 41 void MaybeCallNotifyWinEvent(DWORD event, LONG child_id); | 41 void MaybeCallNotifyWinEvent(DWORD event, LONG child_id); |
| 42 | 42 |
| 43 // BrowserAccessibilityManager methods | 43 // BrowserAccessibilityManager methods |
| 44 virtual void AddNodeToMap(BrowserAccessibility* node); | 44 virtual void AddNodeToMap(BrowserAccessibility* node); |
| 45 virtual void RemoveNode(BrowserAccessibility* node) OVERRIDE; | 45 virtual void RemoveNode(BrowserAccessibility* node) OVERRIDE; |
| 46 virtual void NotifyAccessibilityEvent(int type, BrowserAccessibility* node) | 46 virtual void NotifyAccessibilityEvent( |
| 47 OVERRIDE; | 47 WebKit::WebAXEvent event_type, BrowserAccessibility* node) OVERRIDE; |
| 48 | 48 |
| 49 // Track this object and post a VISIBLE_DATA_CHANGED notification when | 49 // Track this object and post a VISIBLE_DATA_CHANGED notification when |
| 50 // its container scrolls. | 50 // its container scrolls. |
| 51 // TODO(dmazzoni): remove once http://crbug.com/113483 is fixed. | 51 // TODO(dmazzoni): remove once http://crbug.com/113483 is fixed. |
| 52 void TrackScrollingObject(BrowserAccessibilityWin* node); | 52 void TrackScrollingObject(BrowserAccessibilityWin* node); |
| 53 | 53 |
| 54 // Return a pointer to the object corresponding to the given windows-specific | 54 // Return a pointer to the object corresponding to the given windows-specific |
| 55 // unique id, does not make a new reference. | 55 // unique id, does not make a new reference. |
| 56 BrowserAccessibilityWin* GetFromUniqueIdWin(LONG unique_id_win); | 56 BrowserAccessibilityWin* GetFromUniqueIdWin(LONG unique_id_win); |
| 57 | 57 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 73 // A mapping from the Windows-specific unique IDs (unique within the | 73 // A mapping from the Windows-specific unique IDs (unique within the |
| 74 // browser process) to renderer ids within this page. | 74 // browser process) to renderer ids within this page. |
| 75 base::hash_map<long, int32> unique_id_to_renderer_id_map_; | 75 base::hash_map<long, int32> unique_id_to_renderer_id_map_; |
| 76 | 76 |
| 77 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerWin); | 77 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerWin); |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 } // namespace content | 80 } // namespace content |
| 81 | 81 |
| 82 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_WIN_H_ | 82 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_WIN_H_ |
| OLD | NEW |