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

Unified Diff: ui/views/bubble/tray_bubble_view.h

Issue 2816193002: Introduce a type of View background that stays in sync with its host (Closed)
Patch Set: rebase 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
« no previous file with comments | « ui/views/background.cc ('k') | ui/views/bubble/tray_bubble_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/bubble/tray_bubble_view.h
diff --git a/ui/views/bubble/tray_bubble_view.h b/ui/views/bubble/tray_bubble_view.h
index 8de9c3053ed8a920002c80f5dd90987bff1ae8f3..12b9bad4709cbc68aff3c371cd0604060dc19bd0 100644
--- a/ui/views/bubble/tray_bubble_view.h
+++ b/ui/views/bubble/tray_bubble_view.h
@@ -8,6 +8,7 @@
#include <memory>
#include "base/macros.h"
+#include "base/optional.h"
#include "ui/views/bubble/bubble_dialog_delegate.h"
#include "ui/views/mouse_watcher.h"
#include "ui/views/views_export.h"
@@ -83,7 +84,8 @@ class VIEWS_EXPORT TrayBubbleView : public views::BubbleDialogDelegateView,
int max_height;
bool can_activate;
bool close_on_deactivate;
- SkColor bg_color;
+ // If not provided, the bg color will be derived from the NativeTheme.
+ base::Optional<SkColor> bg_color;
};
// Constructs and returns a TrayBubbleView. |init_params| may be modified.
« no previous file with comments | « ui/views/background.cc ('k') | ui/views/bubble/tray_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698