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

Unified Diff: ash/common/system/tray/tray_popup_utils.h

Issue 2803893002: Reuse the code within UpdateCheckMark() (Closed)
Patch Set: Update comments. Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: ash/common/system/tray/tray_popup_utils.h
diff --git a/ash/common/system/tray/tray_popup_utils.h b/ash/common/system/tray/tray_popup_utils.h
index ecec2227b9618b85c8cbc0315ec7c4be3eb0b3ce..bd7ceb303662222b0ff4ea088553eaea91dd07f0 100644
--- a/ash/common/system/tray/tray_popup_utils.h
+++ b/ash/common/system/tray/tray_popup_utils.h
@@ -32,6 +32,7 @@ class ToggleButton;
} // namespace views
namespace ash {
+class HoverHighlightView;
// Factory/utility functions used by the system menu.
class TrayPopupUtils {
@@ -203,6 +204,15 @@ class TrayPopupUtils {
// account flow.
static bool CanOpenWebUISettings(LoginStatus status);
+ // Initializes a row in the system menu as checkable and update the check mark
+ // status of this row.
+ static void InitializeAsCheckableRow(HoverHighlightView* container,
+ bool checked);
+
+ // Updates the visibility and a11y state of the checkable row |container|.
+ static void UpdateCheckMarkVisibility(HoverHighlightView* container,
+ bool visible);
+
private:
// Returns the effective ink drop insets for |host| according to the
// |ink_drop_style|.
« no previous file with comments | « ash/common/system/chromeos/palette/common_palette_tool.cc ('k') | ash/common/system/tray/tray_popup_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698