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

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

Issue 1091093006: Update {virtual,override} to follow C++11 style in content. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Back out some webrtc files. Created 5 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
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility_win.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
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 13
14 namespace content { 14 namespace content {
15 class BrowserAccessibilityWin; 15 class BrowserAccessibilityWin;
16 16
17 // Manages a tree of BrowserAccessibilityWin objects. 17 // Manages a tree of BrowserAccessibilityWin objects.
18 class CONTENT_EXPORT BrowserAccessibilityManagerWin 18 class CONTENT_EXPORT BrowserAccessibilityManagerWin
19 : public BrowserAccessibilityManager { 19 : public BrowserAccessibilityManager {
20 public: 20 public:
21 BrowserAccessibilityManagerWin( 21 BrowserAccessibilityManagerWin(
22 const ui::AXTreeUpdate& initial_tree, 22 const ui::AXTreeUpdate& initial_tree,
23 BrowserAccessibilityDelegate* delegate, 23 BrowserAccessibilityDelegate* delegate,
24 BrowserAccessibilityFactory* factory = new BrowserAccessibilityFactory()); 24 BrowserAccessibilityFactory* factory = new BrowserAccessibilityFactory());
25 25
26 virtual ~BrowserAccessibilityManagerWin(); 26 ~BrowserAccessibilityManagerWin() override;
27 27
28 static ui::AXTreeUpdate GetEmptyDocument(); 28 static ui::AXTreeUpdate GetEmptyDocument();
29 29
30 // Get the closest containing HWND. 30 // Get the closest containing HWND.
31 HWND GetParentHWND(); 31 HWND GetParentHWND();
32 32
33 // The IAccessible for the parent window. 33 // The IAccessible for the parent window.
34 IAccessible* GetParentIAccessible(); 34 IAccessible* GetParentIAccessible();
35 35
36 // Calls NotifyWinEvent if the parent window's IAccessible pointer is known. 36 // Calls NotifyWinEvent if the parent window's IAccessible pointer is known.
37 void MaybeCallNotifyWinEvent(DWORD event, BrowserAccessibility* node); 37 void MaybeCallNotifyWinEvent(DWORD event, BrowserAccessibility* node);
38 38
39 // AXTree methods 39 // AXTree methods
40 virtual void OnNodeWillBeDeleted(ui::AXNode* node) override; 40 void OnNodeWillBeDeleted(ui::AXNode* node) override;
41 virtual void OnNodeCreated(ui::AXNode* node) override; 41 void OnNodeCreated(ui::AXNode* node) override;
42 42
43 // BrowserAccessibilityManager methods 43 // BrowserAccessibilityManager methods
44 void OnWindowFocused() override; 44 void OnWindowFocused() override;
45 void UserIsReloading() override; 45 void UserIsReloading() override;
46 void NotifyAccessibilityEvent( 46 void NotifyAccessibilityEvent(
47 ui::AXEvent event_type, BrowserAccessibility* node) override; 47 ui::AXEvent 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.
(...skipping 28 matching lines...) Expand all
80 // Set to true if we need to fire a focus event on the root as soon as 80 // Set to true if we need to fire a focus event on the root as soon as
81 // possible. 81 // possible.
82 bool focus_event_on_root_needed_; 82 bool focus_event_on_root_needed_;
83 83
84 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerWin); 84 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerWin);
85 }; 85 };
86 86
87 } // namespace content 87 } // namespace content
88 88
89 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_WIN_H_ 89 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_WIN_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698