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

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

Issue 634703003: Replacing the OVERRIDE with override and FINAL with final in content/browser/[accessibility|battery… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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_MAC_H_ 5 #ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MAC_H_
6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MAC_H_ 6 #define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MAC_H_
7 7
8 #include <map> 8 #include <map>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
11 11
12 #include "content/browser/accessibility/browser_accessibility.h" 12 #include "content/browser/accessibility/browser_accessibility.h"
13 13
14 @class BrowserAccessibilityCocoa; 14 @class BrowserAccessibilityCocoa;
15 15
16 namespace content { 16 namespace content {
17 17
18 class BrowserAccessibilityMac : public BrowserAccessibility { 18 class BrowserAccessibilityMac : public BrowserAccessibility {
19 public: 19 public:
20 // BrowserAccessibility overrides. 20 // BrowserAccessibility overrides.
21 virtual void NativeReleaseReference() OVERRIDE; 21 virtual void NativeReleaseReference() override;
22 virtual bool IsNative() const OVERRIDE; 22 virtual bool IsNative() const override;
23 virtual void OnDataChanged() OVERRIDE; 23 virtual void OnDataChanged() override;
24 24
25 // The BrowserAccessibilityCocoa associated with us. 25 // The BrowserAccessibilityCocoa associated with us.
26 BrowserAccessibilityCocoa* native_view() const { 26 BrowserAccessibilityCocoa* native_view() const {
27 return browser_accessibility_cocoa_; 27 return browser_accessibility_cocoa_;
28 } 28 }
29 29
30 // Detach the BrowserAccessibilityCocoa object and then recreate it. 30 // Detach the BrowserAccessibilityCocoa object and then recreate it.
31 // This is only used to work around VoiceOver bugs by forcing VoiceOver 31 // This is only used to work around VoiceOver bugs by forcing VoiceOver
32 // to rebuild its internal state. 32 // to rebuild its internal state.
33 void RecreateNativeObject(); 33 void RecreateNativeObject();
34 34
35 private: 35 private:
36 // This gives BrowserAccessibility::Create access to the class constructor. 36 // This gives BrowserAccessibility::Create access to the class constructor.
37 friend class BrowserAccessibility; 37 friend class BrowserAccessibility;
38 38
39 BrowserAccessibilityMac(); 39 BrowserAccessibilityMac();
40 40
41 // Allows access to the BrowserAccessibilityCocoa which wraps this. 41 // Allows access to the BrowserAccessibilityCocoa which wraps this.
42 // BrowserAccessibility. 42 // BrowserAccessibility.
43 // We own this object until our manager calls ReleaseReference; 43 // We own this object until our manager calls ReleaseReference;
44 // thereafter, the cocoa object owns us. 44 // thereafter, the cocoa object owns us.
45 BrowserAccessibilityCocoa* browser_accessibility_cocoa_; 45 BrowserAccessibilityCocoa* browser_accessibility_cocoa_;
46 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityMac); 46 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityMac);
47 }; 47 };
48 48
49 } // namespace content 49 } // namespace content
50 50
51 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MAC_H_ 51 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698