| OLD | NEW |
| 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 UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_WIN_H_ | 5 #ifndef UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_WIN_H_ |
| 6 #define UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_WIN_H_ | 6 #define UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_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 356 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 367 int lower_bound, | 367 int lower_bound, |
| 368 int upper_bound) const; | 368 int upper_bound) const; |
| 369 | 369 |
| 370 // Determines if the child id variant is valid. | 370 // Determines if the child id variant is valid. |
| 371 bool IsValidId(const VARIANT& child) const; | 371 bool IsValidId(const VARIANT& child) const; |
| 372 | 372 |
| 373 // Helper function which sets applicable states of view. | 373 // Helper function which sets applicable states of view. |
| 374 void SetState(VARIANT* msaa_state, View* view); | 374 void SetState(VARIANT* msaa_state, View* view); |
| 375 | 375 |
| 376 // Return the text to use for IAccessibleText. | 376 // Return the text to use for IAccessibleText. |
| 377 string16 TextForIAccessibleText(); | 377 base::string16 TextForIAccessibleText(); |
| 378 | 378 |
| 379 // If offset is a member of IA2TextSpecialOffsets this function updates the | 379 // If offset is a member of IA2TextSpecialOffsets this function updates the |
| 380 // value of offset and returns, otherwise offset remains unchanged. | 380 // value of offset and returns, otherwise offset remains unchanged. |
| 381 void HandleSpecialTextOffset(const string16& text, LONG* offset); | 381 void HandleSpecialTextOffset(const base::string16& text, LONG* offset); |
| 382 | 382 |
| 383 // Convert from a IA2TextBoundaryType to a ui::TextBoundaryType. | 383 // Convert from a IA2TextBoundaryType to a ui::TextBoundaryType. |
| 384 ui::TextBoundaryType IA2TextBoundaryToTextBoundary(IA2TextBoundaryType type); | 384 ui::TextBoundaryType IA2TextBoundaryToTextBoundary(IA2TextBoundaryType type); |
| 385 | 385 |
| 386 // Search forwards (direction == 1) or backwards (direction == -1) | 386 // Search forwards (direction == 1) or backwards (direction == -1) |
| 387 // from the given offset until the given boundary is found, and | 387 // from the given offset until the given boundary is found, and |
| 388 // return the offset of that boundary. | 388 // return the offset of that boundary. |
| 389 LONG FindBoundary(const string16& text, | 389 LONG FindBoundary(const base::string16& text, |
| 390 IA2TextBoundaryType ia2_boundary, | 390 IA2TextBoundaryType ia2_boundary, |
| 391 LONG start_offset, | 391 LONG start_offset, |
| 392 ui::TextBoundaryDirection direction); | 392 ui::TextBoundaryDirection direction); |
| 393 | 393 |
| 394 // Populates the given vector with all widgets that are either a child | 394 // Populates the given vector with all widgets that are either a child |
| 395 // or are owned by this view's widget, and who are not contained in a | 395 // or are owned by this view's widget, and who are not contained in a |
| 396 // NativeViewHost. | 396 // NativeViewHost. |
| 397 void PopulateChildWidgetVector(std::vector<Widget*>* child_widgets); | 397 void PopulateChildWidgetVector(std::vector<Widget*>* child_widgets); |
| 398 | 398 |
| 399 // Give CComObject access to the class constructor. | 399 // Give CComObject access to the class constructor. |
| (...skipping 17 matching lines...) Expand all Loading... |
| 417 | 417 |
| 418 // Next index into |view_storage_ids_| to use. | 418 // Next index into |view_storage_ids_| to use. |
| 419 static int next_view_storage_id_index_; | 419 static int next_view_storage_id_index_; |
| 420 | 420 |
| 421 DISALLOW_COPY_AND_ASSIGN(NativeViewAccessibilityWin); | 421 DISALLOW_COPY_AND_ASSIGN(NativeViewAccessibilityWin); |
| 422 }; | 422 }; |
| 423 | 423 |
| 424 } // namespace views | 424 } // namespace views |
| 425 | 425 |
| 426 #endif // UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_WIN_H_ | 426 #endif // UI_VIEWS_ACCESSIBILITY_NATIVE_VIEW_ACCESSIBILITY_WIN_H_ |
| OLD | NEW |