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

Unified Diff: ash/common/system/chromeos/bluetooth/tray_bluetooth.cc

Issue 2506133003: [ash-md] Allows ToggleButton to have a border and adds focus rectangle (Closed)
Patch Set: [ash-md] Allows ToggleButton to have a border and adds focus rectangle (comments) Created 4 years, 1 month 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: ash/common/system/chromeos/bluetooth/tray_bluetooth.cc
diff --git a/ash/common/system/chromeos/bluetooth/tray_bluetooth.cc b/ash/common/system/chromeos/bluetooth/tray_bluetooth.cc
index 9af25ca7f384f8600039bb5d4738b3c1796c9d95..2706bfc8a6c236ea50b80fdf4a08a81c118088d8 100644
--- a/ash/common/system/chromeos/bluetooth/tray_bluetooth.cc
+++ b/ash/common/system/chromeos/bluetooth/tray_bluetooth.cc
@@ -542,13 +542,8 @@ class BluetoothDetailedView : public TrayDetailsView {
tri_view()->SetContainerVisible(TriView::Container::END, true);
- // TODO(tdanderson): Move common toggle-creation logic to TrayPopupUtils.
- // See crbug.com/614453.
- toggle_ = new views::ToggleButton(this);
- toggle_->SetFocusForPlatform();
- toggle_->SetAccessibleName(
- ui::ResourceBundle::GetSharedInstance().GetLocalizedString(
- IDS_ASH_STATUS_TRAY_BLUETOOTH));
+ toggle_ = TrayPopupUtils::CreateToggleButton(
+ this, IDS_ASH_STATUS_TRAY_BLUETOOTH);
tri_view()->AddView(TriView::Container::END, toggle_);
settings_ = CreateSettingsButton(login_);
« no previous file with comments | « no previous file | ash/common/system/chromeos/ime_menu/ime_list_view.cc » ('j') | ash/common/system/tray/tray_popup_utils.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698