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

Unified Diff: views/window/custom_frame_view.cc

Issue 1155005: views: [accessibility] Add accessible name for the Close button in generic Wi... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
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
« no previous file with comments | « app/resources/app_strings.grd ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: views/window/custom_frame_view.cc
===================================================================
--- views/window/custom_frame_view.cc (revision 42181)
+++ views/window/custom_frame_view.cc (working copy)
@@ -6,6 +6,7 @@
#include "app/gfx/canvas.h"
#include "app/gfx/font.h"
+#include "app/l10n_util.h"
#include "app/resource_bundle.h"
#include "app/theme_provider.h"
#if defined(OS_WIN)
@@ -14,6 +15,7 @@
#endif
#include "gfx/path.h"
#include "grit/app_resources.h"
+#include "grit/app_strings.h"
#include "views/window/client_view.h"
#if defined(OS_LINUX)
#include "views/window/hit_test.h"
@@ -72,6 +74,8 @@
ResourceBundle& rb = ResourceBundle::GetSharedInstance();
+ close_button_->SetAccessibleName(l10n_util::GetString(IDS_APP_ACCNAME_CLOSE));
+
// Close button images will be set in LayoutWindowControls().
AddChildView(close_button_);
« no previous file with comments | « app/resources/app_strings.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698