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

Unified Diff: views/controls/resize_gripper.cc

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.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);
« chrome/browser/views/browser_actions_container.cc ('K') | « views/controls/resize_gripper.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698