summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/resources/app_strings.grd3
-rw-r--r--views/window/custom_frame_view.cc6
2 files changed, 8 insertions, 1 deletions
diff --git a/app/resources/app_strings.grd b/app/resources/app_strings.grd
index 3e352be0..5d79362 100644
--- a/app/resources/app_strings.grd
+++ b/app/resources/app_strings.grd
@@ -201,6 +201,9 @@ need to be translated for each locale.-->
<message name="IDS_APP_ACCACTION_PRESS" desc="The accessible default action for a button.">
Press
</message>
+ <message name="IDS_APP_ACCNAME_CLOSE" desc="The accessible name for the Close button.">
+ Close
+ </message>
<!-- Scroll Bar Context Menu Labels -->
<message name="IDS_APP_SCROLLBAR_CXMENU_SCROLLHERE" desc="The label for the 'Scroll Here' item">
diff --git a/views/window/custom_frame_view.cc b/views/window/custom_frame_view.cc
index e45b998..d3d256f 100644
--- a/views/window/custom_frame_view.cc
+++ b/views/window/custom_frame_view.cc
@@ -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 @@ CustomFrameView::CustomFrameView(Window* frame)
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_);
@@ -569,7 +573,7 @@ void CustomFrameView::InitClass() {
#if defined(OS_WIN)
title_font_ = new gfx::Font(win_util::GetWindowTitleFont());
#elif defined(OS_LINUX)
- // TODO: need to resolve what font this is.
+ // TODO(ben): need to resolve what font this is.
title_font_ = new gfx::Font();
#endif
initialized = true;