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

Side by Side Diff: ash/common/system/tray_accessibility.cc

Issue 2699443004: Modify TrayItemMore to use enabled status (Closed)
Patch Set: Rebased Created 3 years, 10 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 unified diff | Download patch
« no previous file with comments | « ash/common/system/tray/tray_item_more.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/common/system/tray_accessibility.h" 5 #include "ash/common/system/tray_accessibility.h"
6 6
7 #include "ash/common/accessibility_delegate.h" 7 #include "ash/common/accessibility_delegate.h"
8 #include "ash/common/accessibility_types.h" 8 #include "ash/common/accessibility_types.h"
9 #include "ash/common/material_design/material_design_controller.h" 9 #include "ash/common/material_design/material_design_controller.h"
10 #include "ash/common/session/session_state_delegate.h" 10 #include "ash/common/session/session_state_delegate.h"
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 return WmShell::Get()->system_tray_delegate()->GetUserLoginStatus(); 78 return WmShell::Get()->system_tray_delegate()->GetUserLoginStatus();
79 } 79 }
80 80
81 } // namespace 81 } // namespace
82 82
83 namespace tray { 83 namespace tray {
84 84
85 class DefaultAccessibilityView : public TrayItemMore { 85 class DefaultAccessibilityView : public TrayItemMore {
86 public: 86 public:
87 explicit DefaultAccessibilityView(SystemTrayItem* owner) 87 explicit DefaultAccessibilityView(SystemTrayItem* owner)
88 : TrayItemMore(owner, true) { 88 : TrayItemMore(owner) {
89 base::string16 label = 89 base::string16 label =
90 l10n_util::GetStringUTF16(IDS_ASH_STATUS_TRAY_ACCESSIBILITY); 90 l10n_util::GetStringUTF16(IDS_ASH_STATUS_TRAY_ACCESSIBILITY);
91 SetLabel(label); 91 SetLabel(label);
92 SetAccessibleName(label); 92 SetAccessibleName(label);
93 set_id(test::kAccessibilityTrayItemViewId); 93 set_id(test::kAccessibilityTrayItemViewId);
94 } 94 }
95 95
96 ~DefaultAccessibilityView() override {} 96 ~DefaultAccessibilityView() override {}
97 97
98 protected: 98 protected:
(...skipping 356 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 if (detailed_popup_) 455 if (detailed_popup_)
456 detailed_popup_->GetWidget()->Close(); 456 detailed_popup_->GetWidget()->Close();
457 if (detailed_menu_) 457 if (detailed_menu_)
458 detailed_menu_->GetWidget()->Close(); 458 detailed_menu_->GetWidget()->Close();
459 } 459 }
460 460
461 previous_accessibility_state_ = accessibility_state; 461 previous_accessibility_state_ = accessibility_state;
462 } 462 }
463 463
464 } // namespace ash 464 } // namespace ash
OLDNEW
« no previous file with comments | « ash/common/system/tray/tray_item_more.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698