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

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

Issue 2244003002: Materialized font style for TrayItemMore type system tray rows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Deferred generic TrayItemPopupStyle application to TrayItemMore. Created 4 years, 3 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_item_more.h
diff --git a/ash/common/system/tray/tray_item_more.h b/ash/common/system/tray/tray_item_more.h
index 918d3c38fe5b64ecdf80d73af2de2d26589d837b..0459aa569bec71cb30d7428a05efeafec474378e 100644
--- a/ash/common/system/tray/tray_item_more.h
+++ b/ash/common/system/tray/tray_item_more.h
@@ -38,12 +38,19 @@ class TrayItemMore : public ActionableView {
void ReplaceIcon(views::View* view);
private:
+ // TODO(bruthig): Re-design to inform subclasses when the style changes while
+ // avoiding virtual function calls from the constructor.
+ void UpdateStyle();
+
// Overridden from ActionableView.
bool PerformAction(const ui::Event& event) override;
// Overridden from views::View.
void Layout() override;
void GetAccessibleState(ui::AXViewState* state) override;
+ void ViewHierarchyChanged(
+ const ViewHierarchyChangedDetails& details) override;
+ void OnNativeThemeChanged(const ui::NativeTheme* theme) override;
SystemTrayItem* owner_;
// True if |more_| should be shown.

Powered by Google App Engine
This is Rietveld 408576698