summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/resources/app_strings.grd9
-rw-r--r--views/window/custom_frame_view.cc6
2 files changed, 15 insertions, 0 deletions
diff --git a/app/resources/app_strings.grd b/app/resources/app_strings.grd
index 5d79362..42d19c6 100644
--- a/app/resources/app_strings.grd
+++ b/app/resources/app_strings.grd
@@ -204,6 +204,15 @@ need to be translated for each locale.-->
<message name="IDS_APP_ACCNAME_CLOSE" desc="The accessible name for the Close button.">
Close
</message>
+ <message name="IDS_APP_ACCNAME_MINIMIZE" desc="The accessible name for the Minimize button.">
+ Minimize
+ </message>
+ <message name="IDS_APP_ACCNAME_MAXIMIZE" desc="The accessible name for the Maximize button.">
+ Maximize
+ </message>
+ <message name="IDS_APP_ACCNAME_RESTORE" desc="The accessible name for the Restore button.">
+ Restore
+ </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 cf0fc49..1598bdd 100644
--- a/views/window/custom_frame_view.cc
+++ b/views/window/custom_frame_view.cc
@@ -79,6 +79,8 @@ CustomFrameView::CustomFrameView(Window* frame)
// Close button images will be set in LayoutWindowControls().
AddChildView(close_button_);
+ restore_button_->SetAccessibleName(
+ l10n_util::GetString(IDS_APP_ACCNAME_RESTORE));
restore_button_->SetImage(CustomButton::BS_NORMAL,
rb.GetBitmapNamed(IDR_RESTORE));
restore_button_->SetImage(CustomButton::BS_HOT,
@@ -87,6 +89,8 @@ CustomFrameView::CustomFrameView(Window* frame)
rb.GetBitmapNamed(IDR_RESTORE_P));
AddChildView(restore_button_);
+ maximize_button_->SetAccessibleName(
+ l10n_util::GetString(IDS_APP_ACCNAME_MAXIMIZE));
maximize_button_->SetImage(CustomButton::BS_NORMAL,
rb.GetBitmapNamed(IDR_MAXIMIZE));
maximize_button_->SetImage(CustomButton::BS_HOT,
@@ -95,6 +99,8 @@ CustomFrameView::CustomFrameView(Window* frame)
rb.GetBitmapNamed(IDR_MAXIMIZE_P));
AddChildView(maximize_button_);
+ minimize_button_->SetAccessibleName(
+ l10n_util::GetString(IDS_APP_ACCNAME_MINIMIZE));
minimize_button_->SetImage(CustomButton::BS_NORMAL,
rb.GetBitmapNamed(IDR_MINIMIZE));
minimize_button_->SetImage(CustomButton::BS_HOT,