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

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

Issue 387353004: Create only a single LegacyRenderWidgetHostHWND per WebContentsViewAura. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@render_frame_ax_3
Patch Set: Created 6 years, 5 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/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 22 matching lines...) Expand all
33 33
34 // Get the closest containing HWND. 34 // Get the closest containing HWND.
35 HWND parent_hwnd() { return parent_hwnd_; } 35 HWND parent_hwnd() { return parent_hwnd_; }
36 36
37 // The IAccessible for the parent window. 37 // The IAccessible for the parent window.
38 IAccessible* parent_iaccessible() { return parent_iaccessible_; } 38 IAccessible* parent_iaccessible() { return parent_iaccessible_; }
39 void set_parent_iaccessible(IAccessible* parent_iaccessible) { 39 void set_parent_iaccessible(IAccessible* parent_iaccessible) {
40 parent_iaccessible_ = parent_iaccessible; 40 parent_iaccessible_ = parent_iaccessible;
41 } 41 }
42 42
43 void SetAccessibleHWND(LegacyRenderWidgetHostHWND* accessible_hwnd);
44
45 // Calls NotifyWinEvent if the parent window's IAccessible pointer is known. 43 // Calls NotifyWinEvent if the parent window's IAccessible pointer is known.
46 void MaybeCallNotifyWinEvent(DWORD event, LONG child_id); 44 void MaybeCallNotifyWinEvent(DWORD event, LONG child_id);
47 45
48 // AXTree methods 46 // AXTree methods
49 virtual void OnNodeWillBeDeleted(ui::AXNode* node) OVERRIDE; 47 virtual void OnNodeWillBeDeleted(ui::AXNode* node) OVERRIDE;
50 virtual void OnNodeCreated(ui::AXNode* node) OVERRIDE; 48 virtual void OnNodeCreated(ui::AXNode* node) OVERRIDE;
51 49
52 // BrowserAccessibilityManager methods 50 // BrowserAccessibilityManager methods
53 virtual void OnWindowFocused() OVERRIDE; 51 virtual void OnWindowFocused() OVERRIDE;
54 virtual void NotifyAccessibilityEvent( 52 virtual void NotifyAccessibilityEvent(
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 // Set to true if we need to fire a focus event on the root as soon as 93 // Set to true if we need to fire a focus event on the root as soon as
96 // possible. 94 // possible.
97 bool focus_event_on_root_needed_; 95 bool focus_event_on_root_needed_;
98 96
99 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerWin); 97 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerWin);
100 }; 98 };
101 99
102 } // namespace content 100 } // namespace content
103 101
104 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_WIN_H_ 102 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698