| 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/macros.h" | 10 #include "base/macros.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 void OnWindowFocused() override; | 46 void OnWindowFocused() override; |
| 47 void UserIsReloading() override; | 47 void UserIsReloading() override; |
| 48 void NotifyAccessibilityEvent( | 48 void NotifyAccessibilityEvent( |
| 49 ui::AXEvent event_type, BrowserAccessibility* node) override; | 49 ui::AXEvent event_type, BrowserAccessibility* node) override; |
| 50 | 50 |
| 51 // Track this object and post a VISIBLE_DATA_CHANGED notification when | 51 // Track this object and post a VISIBLE_DATA_CHANGED notification when |
| 52 // its container scrolls. | 52 // its container scrolls. |
| 53 // TODO(dmazzoni): remove once http://crbug.com/113483 is fixed. | 53 // TODO(dmazzoni): remove once http://crbug.com/113483 is fixed. |
| 54 void TrackScrollingObject(BrowserAccessibilityWin* node); | 54 void TrackScrollingObject(BrowserAccessibilityWin* node); |
| 55 | 55 |
| 56 // Return a pointer to the object corresponding to the given windows-specific | |
| 57 // unique id, does not make a new reference. | |
| 58 BrowserAccessibilityWin* GetFromUniqueIdWin(LONG unique_id_win); | |
| 59 | |
| 60 // Called when |accessible_hwnd_| is deleted by its parent. | 56 // Called when |accessible_hwnd_| is deleted by its parent. |
| 61 void OnAccessibleHwndDeleted(); | 57 void OnAccessibleHwndDeleted(); |
| 62 | 58 |
| 63 protected: | 59 protected: |
| 64 // AXTree methods. | 60 // AXTree methods. |
| 65 void OnNodeWillBeDeleted(ui::AXTree* tree, ui::AXNode* node) override; | 61 void OnNodeWillBeDeleted(ui::AXTree* tree, ui::AXNode* node) override; |
| 66 void OnNodeCreated(ui::AXTree* tree, ui::AXNode* node) override; | 62 void OnNodeCreated(ui::AXTree* tree, ui::AXNode* node) override; |
| 67 void OnAtomicUpdateFinished( | 63 void OnAtomicUpdateFinished( |
| 68 ui::AXTree* tree, | 64 ui::AXTree* tree, |
| 69 bool root_changed, | 65 bool root_changed, |
| (...skipping 15 matching lines...) Expand all Loading... |
| 85 // A flag to keep track of if we're inside the OnWindowFocused call stack | 81 // A flag to keep track of if we're inside the OnWindowFocused call stack |
| 86 // so we don't keep calling it recursively. | 82 // so we don't keep calling it recursively. |
| 87 bool inside_on_window_focused_; | 83 bool inside_on_window_focused_; |
| 88 | 84 |
| 89 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerWin); | 85 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerWin); |
| 90 }; | 86 }; |
| 91 | 87 |
| 92 } // namespace content | 88 } // namespace content |
| 93 | 89 |
| 94 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_WIN_H_ | 90 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_WIN_H_ |
| OLD | NEW |