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. This will always raise native notifications. | 561 // interface. |
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 | |
569 // Returns the MSAA default action of the current view. The string returned | 564 // Returns the MSAA default action of the current view. The string returned |
570 // describes the default action that will occur when executing | 565 // describes the default action that will occur when executing |
571 // IAccessible::DoDefaultAction. For instance, default action of a button is | 566 // IAccessible::DoDefaultAction. For instance, default action of a button is |
572 // 'Press'. Sets the input string appropriately, and returns true if | 567 // 'Press'. Sets the input string appropriately, and returns true if |
573 // successful. | 568 // successful. |
574 virtual bool GetAccessibleDefaultAction(std::wstring* action) { | 569 virtual bool GetAccessibleDefaultAction(std::wstring* action) { |
575 return false; | 570 return false; |
576 } | 571 } |
577 | 572 |
578 // Returns a string containing the mnemonic, or the keyboard shortcut, for a | 573 // 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... |
1325 // The default value for how long to wait (in ms) before showing a menu | 1320 // The default value for how long to wait (in ms) before showing a menu |
1326 // button on hover. This value is used if the OS doesn't supply one. | 1321 // button on hover. This value is used if the OS doesn't supply one. |
1327 static const int kShowFolderDropMenuDelay; | 1322 static const int kShowFolderDropMenuDelay; |
1328 | 1323 |
1329 DISALLOW_COPY_AND_ASSIGN(View); | 1324 DISALLOW_COPY_AND_ASSIGN(View); |
1330 }; | 1325 }; |
1331 | 1326 |
1332 } // namespace views | 1327 } // namespace views |
1333 | 1328 |
1334 #endif // VIEWS_VIEW_H_ | 1329 #endif // VIEWS_VIEW_H_ |
OLD | NEW |