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

Unified Diff: ash/common/system/view_observer.h

Issue 2147143002: [Chrome OS MD] Draw a 1px separator between 2 tray items (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: new approach Created 4 years, 5 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/view_observer.h
diff --git a/ash/common/system/view_observer.h b/ash/common/system/view_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..8c6ce2c14285340e23b68d141d48c5780a3e3af4
--- /dev/null
+++ b/ash/common/system/view_observer.h
@@ -0,0 +1,27 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ASH_COMMON_SYSTEM_VIEW_OBSERVER_H_
+#define ASH_COMMON_SYSTEM_VIEW_OBSERVER_H_
+
+#include "ash/ash_export.h"
+#include "base/macros.h"
+#include "ui/views/widget/widget.h"
+
+namespace ash {
+class TrayBackgroundView;
+
+class ASH_EXPORT ViewObserver {
varkha 2016/07/26 23:10:15 This name seems too generic. Maybe TrayBackgroundV
+ public:
+ ViewObserver() {}
+
+ // Called when |tray| visibility changes.
+ virtual void OnVisibilityChange(TrayBackgroundView* tray) {}
+
+ DISALLOW_COPY_AND_ASSIGN(ViewObserver);
+};
+
+} // namespace ash
+
+#endif // ASH_COMMON_SYSTEM_VIEW_OBSERVER_H_
« no previous file with comments | « ash/common/system/tray/tray_constants.cc ('k') | ash/common/system/web_notification/web_notification_tray.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698