| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_WIN_H_ | 5 #ifndef VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_WIN_H_ |
| 6 #define VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_WIN_H_ | 6 #define VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_WIN_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <atlbase.h> | 9 #include <atlbase.h> |
| 10 #include <atlcom.h> | 10 #include <atlcom.h> |
| 11 | 11 |
| 12 #include <oleacc.h> | 12 #include <oleacc.h> |
| 13 | 13 |
| 14 #include "base/scoped_ptr.h" | 14 #include "base/scoped_ptr.h" |
| 15 #include "base/win/atlcheck.h" |
| 15 #include "ui/base/accessibility/accessible_view_state.h" | 16 #include "ui/base/accessibility/accessible_view_state.h" |
| 16 #include "views/controls/native/native_view_host.h" | 17 #include "views/controls/native/native_view_host.h" |
| 17 #include "views/view.h" | 18 #include "views/view.h" |
| 18 | 19 |
| 19 namespace views { | 20 namespace views { |
| 20 extern const char kViewsNativeHostPropForAccessibility[]; | 21 extern const char kViewsNativeHostPropForAccessibility[]; |
| 21 // Note: do not put NativeViewAccessibilityWin in the namespace "views"; | 22 // Note: do not put NativeViewAccessibilityWin in the namespace "views"; |
| 22 // Visual Studio 2005 does not allow an ATL::CComObject symbol in a namespace. | 23 // Visual Studio 2005 does not allow an ATL::CComObject symbol in a namespace. |
| 23 } | 24 } |
| 24 | 25 |
| (...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 // Give CComObject access to the class constructor. | 162 // Give CComObject access to the class constructor. |
| 162 template <class Base> friend class CComObject; | 163 template <class Base> friend class CComObject; |
| 163 | 164 |
| 164 // Member View needed for view-specific calls. | 165 // Member View needed for view-specific calls. |
| 165 views::View* view_; | 166 views::View* view_; |
| 166 | 167 |
| 167 DISALLOW_COPY_AND_ASSIGN(NativeViewAccessibilityWin); | 168 DISALLOW_COPY_AND_ASSIGN(NativeViewAccessibilityWin); |
| 168 }; | 169 }; |
| 169 | 170 |
| 170 #endif // VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_WIN_H_ | 171 #endif // VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_WIN_H_ |
| OLD | NEW |