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

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

Issue 642313003: [C++11 Allowed Features] Declares a type-safe null pointer converting from NULL to nullptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Including id in the AUTHORS file. 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_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 #include <oleacc.h> 10 #include <oleacc.h>
(...skipping 762 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 773
774 private: 774 private:
775 // Add one to the reference count and return the same object. Always 775 // Add one to the reference count and return the same object. Always
776 // use this method when returning a BrowserAccessibilityWin object as 776 // use this method when returning a BrowserAccessibilityWin object as
777 // an output parameter to a COM interface, never use it otherwise. 777 // an output parameter to a COM interface, never use it otherwise.
778 BrowserAccessibilityWin* NewReference(); 778 BrowserAccessibilityWin* NewReference();
779 779
780 // Many MSAA methods take a var_id parameter indicating that the operation 780 // Many MSAA methods take a var_id parameter indicating that the operation
781 // should be performed on a particular child ID, rather than this object. 781 // should be performed on a particular child ID, rather than this object.
782 // This method tries to figure out the target object from |var_id| and 782 // This method tries to figure out the target object from |var_id| and
783 // returns a pointer to the target object if it exists, otherwise NULL. 783 // returns a pointer to the target object if it exists, otherwise nullptr.
784 // Does not return a new reference. 784 // Does not return a new reference.
785 BrowserAccessibilityWin* GetTargetFromChildID(const VARIANT& var_id); 785 BrowserAccessibilityWin* GetTargetFromChildID(const VARIANT& var_id);
786 786
787 // Initialize the role and state metadata from the role enum and state 787 // Initialize the role and state metadata from the role enum and state
788 // bitmasks defined in ui::AXNodeData. 788 // bitmasks defined in ui::AXNodeData.
789 void InitRoleAndState(); 789 void InitRoleAndState();
790 790
791 // Retrieve the value of an attribute from the string attribute map and 791 // Retrieve the value of an attribute from the string attribute map and
792 // if found and nonempty, allocate a new BSTR (with SysAllocString) 792 // if found and nonempty, allocate a new BSTR (with SysAllocString)
793 // and return S_OK. If not found or empty, return S_FALSE. 793 // and return S_OK. If not found or empty, return S_FALSE.
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
893 // Give BrowserAccessibility::Create access to our constructor. 893 // Give BrowserAccessibility::Create access to our constructor.
894 friend class BrowserAccessibility; 894 friend class BrowserAccessibility;
895 friend class BrowserAccessibilityRelation; 895 friend class BrowserAccessibilityRelation;
896 896
897 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityWin); 897 DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityWin);
898 }; 898 };
899 899
900 } // namespace content 900 } // namespace content
901 901
902 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_ 902 #endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_WIN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698