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

Unified Diff: ash/container_delegate.h

Issue 1949823002: WIP: Eliminate event.target() usage from TrayEventFilter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: container delegate Created 4 years, 7 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 | « ash/ash.gyp ('k') | ash/container_delegate_aura.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/container_delegate.h
diff --git a/ash/container_delegate.h b/ash/container_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..3ee16567f7ddecdbf4f34b0bfa9623a42c01c8f1
--- /dev/null
+++ b/ash/container_delegate.h
@@ -0,0 +1,30 @@
+// Copyright 2016 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_CONTAINER_DELEGATE_H_
+#define ASH_CONTAINER_DELEGATE_H_
+
+#include "ash/ash_export.h"
+
+namespace views {
+class Widget;
+}
+
+namespace ash {
+
+// Allows access to the window container hierarchy, which differs between
+// classic ash (where ash itself manages the hierarchy) and mus (where the
+// window manager manages the hierarchy). The default implementation is for
+// classic ash.
+class ASH_EXPORT ContainerDelegate {
+ public:
+ virtual ~ContainerDelegate() {}
+
+ virtual bool IsInMenuContainer(views::Widget* widget) = 0;
+ virtual bool IsInStatusContainer(views::Widget* widget) = 0;
+};
+
+} // namespace ash
+
+#endif // ASH_CONTAINER_DELEGATE_H_
« no previous file with comments | « ash/ash.gyp ('k') | ash/container_delegate_aura.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698