Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1689)

Unified Diff: views/controls/resize_gripper.h

Issue 1105008: Allow Extensions to have MSAA information (Closed)
Patch Set: Created 10 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: views/controls/resize_gripper.h
diff --git a/views/controls/resize_gripper.h b/views/controls/resize_gripper.h
index 588b01d64aed26cd0df2f4aa5771146c8ed0ff34..8586a222727409d3599a8e12b3e0d1f2fb3a388d 100644
--- a/views/controls/resize_gripper.h
+++ b/views/controls/resize_gripper.h
@@ -44,6 +44,9 @@ class ResizeGripper : public ImageView {
virtual bool OnMousePressed(const views::MouseEvent& event);
virtual bool OnMouseDragged(const views::MouseEvent& event);
virtual void OnMouseReleased(const views::MouseEvent& event, bool canceled);
+ virtual bool GetAccessibleRole(AccessibilityTypes::Role* role);
+ virtual bool GetAccessibleName(std::wstring* name);
+ virtual void SetAccessibleName(const std::wstring& name);
static const char kViewClassName[];
@@ -58,6 +61,9 @@ class ResizeGripper : public ImageView {
// The mouse position at start (in screen coordinates).
int initial_position_;
+ // The storage string for the accessibility name associated with this control.
+ std::wstring accessible_name_;
+
DISALLOW_COPY_AND_ASSIGN(ResizeGripper);
};

Powered by Google App Engine
This is Rietveld 408576698