OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_VIEW_H_ | 5 #ifndef VIEWS_VIEW_H_ |
6 #define VIEWS_VIEW_H_ | 6 #define VIEWS_VIEW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "build/build_config.h" | 9 #include "build/build_config.h" |
10 | 10 |
(...skipping 540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
551 return false; | 551 return false; |
552 } | 552 } |
553 | 553 |
554 // Returns whether this view currently has the focus. | 554 // Returns whether this view currently has the focus. |
555 virtual bool HasFocus(); | 555 virtual bool HasFocus(); |
556 | 556 |
557 // Accessibility support | 557 // Accessibility support |
558 // TODO(klink): Move all this out to a AccessibleInfo wrapper class. | 558 // TODO(klink): Move all this out to a AccessibleInfo wrapper class. |
559 | 559 |
560 // Notify the platform specific accessibility client of changes in the user | 560 // Notify the platform specific accessibility client of changes in the user |
561 // interface. | 561 // interface. This will always raise native notifications. |
562 virtual void NotifyAccessibilityEvent(AccessibilityTypes::Event event_type); | 562 virtual void NotifyAccessibilityEvent(AccessibilityTypes::Event event_type); |
563 | 563 |
| 564 // Raise an accessibility notification with an option to also raise a native |
| 565 // notification. |
| 566 virtual void NotifyAccessibilityEvent(AccessibilityTypes::Event event_type, |
| 567 bool send_native_event); |
| 568 |
564 // Returns the MSAA default action of the current view. The string returned | 569 // Returns the MSAA default action of the current view. The string returned |
565 // describes the default action that will occur when executing | 570 // describes the default action that will occur when executing |
566 // IAccessible::DoDefaultAction. For instance, default action of a button is | 571 // IAccessible::DoDefaultAction. For instance, default action of a button is |
567 // 'Press'. Sets the input string appropriately, and returns true if | 572 // 'Press'. Sets the input string appropriately, and returns true if |
568 // successful. | 573 // successful. |
569 virtual bool GetAccessibleDefaultAction(std::wstring* action) { | 574 virtual bool GetAccessibleDefaultAction(std::wstring* action) { |
570 return false; | 575 return false; |
571 } | 576 } |
572 | 577 |
573 // Returns a string containing the mnemonic, or the keyboard shortcut, for a | 578 // Returns a string containing the mnemonic, or the keyboard shortcut, for a |
(...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1320 // The default value for how long to wait (in ms) before showing a menu | 1325 // The default value for how long to wait (in ms) before showing a menu |
1321 // button on hover. This value is used if the OS doesn't supply one. | 1326 // button on hover. This value is used if the OS doesn't supply one. |
1322 static const int kShowFolderDropMenuDelay; | 1327 static const int kShowFolderDropMenuDelay; |
1323 | 1328 |
1324 DISALLOW_COPY_AND_ASSIGN(View); | 1329 DISALLOW_COPY_AND_ASSIGN(View); |
1325 }; | 1330 }; |
1326 | 1331 |
1327 } // namespace views | 1332 } // namespace views |
1328 | 1333 |
1329 #endif // VIEWS_VIEW_H_ | 1334 #endif // VIEWS_VIEW_H_ |
OLD | NEW |