Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_DELEGATE_H_ | 5 #ifndef UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_DELEGATE_H_ |
| 6 #define UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_DELEGATE_H_ | 6 #define UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "ui/accessibility/ax_enums.h" | 8 #include "ui/accessibility/ax_enums.h" |
| 9 #include "ui/accessibility/ax_export.h" | 9 #include "ui/accessibility/ax_export.h" |
| 10 #include "ui/gfx/geometry/vector2d.h" | 10 #include "ui/gfx/geometry/vector2d.h" |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 78 | 78 |
| 79 // | 79 // |
| 80 // Actions. | 80 // Actions. |
| 81 // | 81 // |
| 82 | 82 |
| 83 // Perform the default action, e.g. click a button, follow a link, or | 83 // Perform the default action, e.g. click a button, follow a link, or |
| 84 // toggle a checkbox. | 84 // toggle a checkbox. |
| 85 virtual void DoDefaultAction() = 0; | 85 virtual void DoDefaultAction() = 0; |
| 86 | 86 |
| 87 // Change the value of a control, such as the text content of a text field. | 87 // Change the value of a control, such as the text content of a text field. |
| 88 virtual bool SetStringValue(const base::string16& new_value) = 0; | 88 // Optionally replace it or insert at the cursor if |replace| is true. |
| 89 | 89 virtual bool SetStringValue(const base::string16& new_value, |
| 90 // Whether the string value is settable. | 90 const bool& replace) = 0; |
|
tapted
2016/10/20 05:54:59
const bool& -> bool
Patti Lor
2016/10/24 04:31:48
Done.
| |
| 91 // Whether SetStringValue() and ReplaceSelectedText() are callable, i.e. if | |
|
tapted
2016/10/20 05:54:59
nit: blank line before
Patti Lor
2016/10/24 04:31:48
Done.
| |
| 92 // the string value is read only and if the callback exists. | |
| 91 virtual bool CanSetStringValue() = 0; | 93 virtual bool CanSetStringValue() = 0; |
| 92 }; | 94 }; |
| 93 | 95 |
| 94 } // namespace ui | 96 } // namespace ui |
| 95 | 97 |
| 96 #endif // UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_DELEGATE_H_ | 98 #endif // UI_ACCESSIBILITY_PLATFORM_AX_PLATFORM_NODE_DELEGATE_H_ |
| OLD | NEW |