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

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

Issue 2209443006: Show small notification icons in notification tray (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 4 years, 4 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_background_view.h
diff --git a/ash/common/system/tray/tray_background_view.h b/ash/common/system/tray/tray_background_view.h
index 905a083cc86d6abb9895e8576d2b2ef253960cb8..f2b0d808da2335d2dca92c51032642fbc79da4f4 100644
--- a/ash/common/system/tray/tray_background_view.h
+++ b/ash/common/system/tray/tray_background_view.h
@@ -43,6 +43,8 @@ class ASH_EXPORT TrayBackgroundView : public ActionableView,
void set_size(const gfx::Size& size) { size_ = size; }
+ void set_insets(const gfx::Insets& insets) { insets_ = insets; }
+
// views::View:
gfx::Size GetPreferredSize() const override;
@@ -52,12 +54,14 @@ class ASH_EXPORT TrayBackgroundView : public ActionableView,
void ChildVisibilityChanged(View* child) override;
void ViewHierarchyChanged(
const ViewHierarchyChangedDetails& details) override;
+ gfx::Insets GetInsets() const override;
private:
void UpdateLayout();
ShelfAlignment alignment_;
gfx::Size size_;
+ gfx::Insets insets_;
DISALLOW_COPY_AND_ASSIGN(TrayContainer);
};
« no previous file with comments | « no previous file | ash/common/system/tray/tray_background_view.cc » ('j') | ash/common/system/tray/tray_background_view.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698