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

Unified Diff: ash/common/system/tray_accessibility.cc

Issue 2497813002: Modify Ash MD system menu layout for title rows (Closed)
Patch Set: trybots 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
« no previous file with comments | « ash/common/system/tray/tray_details_view.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/common/system/tray_accessibility.cc
diff --git a/ash/common/system/tray_accessibility.cc b/ash/common/system/tray_accessibility.cc
index b8cd8448d15872b2e28531f302994aa11259867b..bb6f81957a7eb2f965b820a001006009dbc09be8 100644
--- a/ash/common/system/tray_accessibility.cc
+++ b/ash/common/system/tray_accessibility.cc
@@ -19,6 +19,7 @@
#include "ash/common/system/tray/tray_popup_item_style.h"
#include "ash/common/system/tray/tray_popup_label_button.h"
#include "ash/common/system/tray/tray_popup_utils.h"
+#include "ash/common/system/tray/tri_view.h"
#include "ash/common/wm_shell.h"
#include "ash/resources/vector_icons/vector_icons.h"
#include "base/strings/utf_string_conversions.h"
@@ -336,8 +337,15 @@ void AccessibilityDetailedView::HandleButtonPressed(views::Button* sender,
void AccessibilityDetailedView::CreateExtraTitleRowButtons() {
if (UseMdMenu()) {
- help_view_ = title_row()->AddHelpButton(this, login_);
- settings_view_ = title_row()->AddSettingsButton(this, login_);
+ DCHECK(!help_view_);
+ DCHECK(!settings_view_);
+
+ tri_view()->SetContainerVisible(TriView::Container::END, true);
+
+ help_view_ = CreateHelpButton(login_);
+ settings_view_ = CreateSettingsButton(login_);
+ tri_view()->AddView(TriView::Container::END, help_view_);
+ tri_view()->AddView(TriView::Container::END, settings_view_);
}
}
« no previous file with comments | « ash/common/system/tray/tray_details_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698