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

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

Issue 2866283003: Remove BrowserAccessibilityWin::Destroy in favor of using the destructor (Closed)
Patch Set: Rebase Created 3 years, 7 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.cc » ('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_WIN_H_ 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_
6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_
7 7
8 #include <atlbase.h> 8 #include <atlbase.h>
9 #include <atlcom.h> 9 #include <atlcom.h>
10 10
(...skipping 11 matching lines...) Expand all
22 // This is used to call UpdateStep1ComputeWinAttributes, ... above when 22 // This is used to call UpdateStep1ComputeWinAttributes, ... above when
23 // a node needs to be updated for some other reason other than via 23 // a node needs to be updated for some other reason other than via
24 // OnAtomicUpdateFinished. 24 // OnAtomicUpdateFinished.
25 void UpdatePlatformAttributes() override; 25 void UpdatePlatformAttributes() override;
26 26
27 // 27 //
28 // BrowserAccessibility methods. 28 // BrowserAccessibility methods.
29 // 29 //
30 void OnSubtreeWillBeDeleted() override; 30 void OnSubtreeWillBeDeleted() override;
31 bool IsNative() const override; 31 bool IsNative() const override;
32 void Destroy() override;
33 void OnLocationChanged() override; 32 void OnLocationChanged() override;
34 base::string16 GetText() const override; 33 base::string16 GetText() const override;
35 34
36 class BrowserAccessibilityComWin* GetCOM() const; 35 class BrowserAccessibilityComWin* GetCOM() const;
37 36
38 private: 37 private:
39 CComObject<BrowserAccessibilityComWin>* browser_accessibility_com_; 38 CComObject<BrowserAccessibilityComWin>* browser_accessibility_com_;
40 // Give BrowserAccessibility::Create access to our constructor. 39 // Give BrowserAccessibility::Create access to our constructor.
41 friend class BrowserAccessibility; 40 friend class BrowserAccessibility;
42 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityWin); 41 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityWin);
43 }; 42 };
44 43
45 CONTENT_EXPORT BrowserAccessibilityWin* 44 CONTENT_EXPORT BrowserAccessibilityWin*
46 ToBrowserAccessibilityWin(BrowserAccessibility* obj); 45 ToBrowserAccessibilityWin(BrowserAccessibility* obj);
47 46
48 CONTENT_EXPORT const BrowserAccessibilityWin* 47 CONTENT_EXPORT const BrowserAccessibilityWin*
49 ToBrowserAccessibilityWin(const BrowserAccessibility* obj); 48 ToBrowserAccessibilityWin(const BrowserAccessibility* obj);
50 49
51 } // namespace content 50 } // namespace content
52 51
53 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ 52 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_
OLDNEW
« no previous file with comments | « no previous file | content/browser/accessibility/browser_accessibility_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698