Chromium Code Reviews| Index: views/controls/resize_gripper.cc |
| diff --git a/views/controls/resize_gripper.cc b/views/controls/resize_gripper.cc |
| index 59a93ab02af93f99ecfecf66d1fdec996b74b7c5..b4fd55f355b025cf762c08e6709609f0337b2da4 100644 |
| --- a/views/controls/resize_gripper.cc |
| +++ b/views/controls/resize_gripper.cc |
| @@ -4,8 +4,8 @@ |
| #include "views/controls/resize_gripper.h" |
| -#include "base/logging.h" |
| #include "app/resource_bundle.h" |
| +#include "base/logging.h" |
| #include "grit/app_resources.h" |
| namespace views { |
| @@ -76,6 +76,25 @@ void ResizeGripper::OnMouseReleased(const views::MouseEvent& event, |
| ReportResizeAmount(event.x(), true); |
| } |
| +bool ResizeGripper::GetAccessibleRole(AccessibilityTypes::Role* role) { |
| + DCHECK(role); |
| + *role = AccessibilityTypes::ROLE_SEPARATOR; |
|
tfarina (gmail-do not use)
2010/03/20 19:47:21
nit: could you add the following lines?
if (!role)
|
| + return true; |
| +} |
| + |
| +bool ResizeGripper::GetAccessibleName(std::wstring* name) { |
| + DCHECK(name); |
| + if (!accessible_name_.empty()) { |
|
tfarina (gmail-do not use)
2010/03/20 19:47:21
nit: could you add the following lines?
if (!name)
|
| + *name = accessible_name_; |
| + return true; |
| + } |
| + return false; |
| +} |
| + |
| +void ResizeGripper::SetAccessibleName(const std::wstring& name) { |
| + accessible_name_.assign(name); |
| +} |
| + |
| void ResizeGripper::ReportResizeAmount(int resize_amount, bool last_update) { |
| gfx::Point point(resize_amount, 0); |
| View::ConvertPointToScreen(this, &point); |