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

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

Issue 13770015: Rename confusing child_id to unique_id_win (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Addressed feedback Created 7 years, 8 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
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 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 20 matching lines...) Expand all
31 // Get the closest containing HWND. 31 // Get the closest containing HWND.
32 HWND parent_hwnd() { return parent_hwnd_; } 32 HWND parent_hwnd() { return parent_hwnd_; }
33 33
34 // The IAccessible for the parent window. 34 // The IAccessible for the parent window.
35 IAccessible* parent_iaccessible() { return parent_iaccessible_; } 35 IAccessible* parent_iaccessible() { return parent_iaccessible_; }
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 // BrowserAccessibilityManager methods 40 // BrowserAccessibilityManager methods
41 virtual void NotifyAccessibilityEvent(int type, BrowserAccessibility* node); 41 virtual void AddNodeToMap(BrowserAccessibility* node);
42 virtual void RemoveNode(BrowserAccessibility* node) OVERRIDE;
43 virtual void NotifyAccessibilityEvent(int type, BrowserAccessibility* node)
44 OVERRIDE;
42 45
43 // Track this object and post a VISIBLE_DATA_CHANGED notification when 46 // Track this object and post a VISIBLE_DATA_CHANGED notification when
44 // its container scrolls. 47 // its container scrolls.
45 // TODO(dmazzoni): remove once http://crbug.com/113483 is fixed. 48 // TODO(dmazzoni): remove once http://crbug.com/113483 is fixed.
46 void TrackScrollingObject(BrowserAccessibilityWin* node); 49 void TrackScrollingObject(BrowserAccessibilityWin* node);
47 50
51 // Return a pointer to the object corresponding to the given windows-specific
52 // unique id, does not make a new reference.
53 BrowserAccessibilityWin* GetFromUniqueIdWin(LONG unique_id_win);
54
48 private: 55 private:
49 // The closest ancestor HWND. 56 // The closest ancestor HWND.
50 HWND parent_hwnd_; 57 HWND parent_hwnd_;
51 58
52 // The accessibility instance for the parent window. 59 // The accessibility instance for the parent window.
53 IAccessible* parent_iaccessible_; 60 IAccessible* parent_iaccessible_;
54 61
55 // Give BrowserAccessibilityManager::Create access to our constructor. 62 // Give BrowserAccessibilityManager::Create access to our constructor.
56 friend class BrowserAccessibilityManager; 63 friend class BrowserAccessibilityManager;
57 64
58 // Track the most recent object that has been asked to scroll and 65 // Track the most recent object that has been asked to scroll and
59 // post a notification directly on it when it reaches its destination. 66 // post a notification directly on it when it reaches its destination.
60 // TODO(dmazzoni): remove once http://crbug.com/113483 is fixed. 67 // TODO(dmazzoni): remove once http://crbug.com/113483 is fixed.
61 BrowserAccessibilityWin* tracked_scroll_object_; 68 BrowserAccessibilityWin* tracked_scroll_object_;
62 69
70 // A mapping from the Windows-specific unique IDs (unique within the
71 // browser process) to renderer ids within this page.
72 base::hash_map<long, int32> unique_id_to_renderer_id_map_;
73
63 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerWin); 74 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerWin);
64 }; 75 };
65 76
66 } // namespace content 77 } // namespace content
67 78
68 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_WIN_H_ 79 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698