| 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 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 547 // handled the accelerator. | 547 // handled the accelerator. |
| 548 virtual bool AcceleratorPressed(const Accelerator& accelerator) { | 548 virtual bool AcceleratorPressed(const Accelerator& accelerator) { |
| 549 return false; | 549 return false; |
| 550 } | 550 } |
| 551 | 551 |
| 552 // Returns whether this view currently has the focus. | 552 // Returns whether this view currently has the focus. |
| 553 virtual bool HasFocus(); | 553 virtual bool HasFocus(); |
| 554 | 554 |
| 555 // Accessibility support | 555 // Accessibility support |
| 556 // TODO(klink): Move all this out to a AccessibleInfo wrapper class. | 556 // TODO(klink): Move all this out to a AccessibleInfo wrapper class. |
| 557 // | 557 |
| 558 // Notify the platform specific accessibility client of changes in the user |
| 559 // interface. |
| 560 virtual void NotifyAccessibilityEvent(AccessibilityTypes::Event event_type); |
| 561 |
| 558 // Returns the MSAA default action of the current view. The string returned | 562 // Returns the MSAA default action of the current view. The string returned |
| 559 // describes the default action that will occur when executing | 563 // describes the default action that will occur when executing |
| 560 // IAccessible::DoDefaultAction. For instance, default action of a button is | 564 // IAccessible::DoDefaultAction. For instance, default action of a button is |
| 561 // 'Press'. Sets the input string appropriately, and returns true if | 565 // 'Press'. Sets the input string appropriately, and returns true if |
| 562 // successful. | 566 // successful. |
| 563 virtual bool GetAccessibleDefaultAction(std::wstring* action) { | 567 virtual bool GetAccessibleDefaultAction(std::wstring* action) { |
| 564 return false; | 568 return false; |
| 565 } | 569 } |
| 566 | 570 |
| 567 // Returns a string containing the mnemonic, or the keyboard shortcut, for a | 571 // Returns a string containing the mnemonic, or the keyboard shortcut, for a |
| (...skipping 757 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 | 1329 // 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. | 1330 // button on hover. This value is used if the OS doesn't supply one. |
| 1327 static const int kShowFolderDropMenuDelay; | 1331 static const int kShowFolderDropMenuDelay; |
| 1328 | 1332 |
| 1329 DISALLOW_COPY_AND_ASSIGN(View); | 1333 DISALLOW_COPY_AND_ASSIGN(View); |
| 1330 }; | 1334 }; |
| 1331 | 1335 |
| 1332 } // namespace views | 1336 } // namespace views |
| 1333 | 1337 |
| 1334 #endif // VIEWS_VIEW_H_ | 1338 #endif // VIEWS_VIEW_H_ |
| OLD | NEW |