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

Unified Diff: ui/ozone/public/overlay_manager_ozone.h

Issue 1285183008: Ozone integration. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: add missing license header Created 5 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
« no previous file with comments | « ui/ozone/public/overlay_candidates_ozone.cc ('k') | ui/ozone/public/ozone_gpu_test_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/public/overlay_manager_ozone.h
diff --git a/ui/ozone/public/overlay_manager_ozone.h b/ui/ozone/public/overlay_manager_ozone.h
new file mode 100644
index 0000000000000000000000000000000000000000..5e8d94fec765479493221737819ee3100c55e7d0
--- /dev/null
+++ b/ui/ozone/public/overlay_manager_ozone.h
@@ -0,0 +1,33 @@
+// Copyright 2015 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 UI_OZONE_PUBLIC_OVERLAY_MANAGER_OZONE_H_
+#define UI_OZONE_PUBLIC_OVERLAY_MANAGER_OZONE_H_
+
+#include "base/memory/scoped_ptr.h"
+#include "ui/gfx/native_widget_types.h"
+
+namespace ui {
+
+class OverlayCandidatesOzone;
+
+// Responsible for providing the oracles used to decide when overlays can be
+// used.
+class OverlayManagerOzone {
+ public:
+ virtual ~OverlayManagerOzone() {}
+
+ // Get the hal struct to check for overlay support.
+ virtual scoped_ptr<OverlayCandidatesOzone> CreateOverlayCandidates(
+ gfx::AcceleratedWidget w) = 0;
+
+ // Returns true if overlays can be shown at z-index 0, replacing the main
+ // surface. Combined with surfaceless extensions, it allows for an
+ // overlay-only mode.
+ virtual bool CanShowPrimaryPlaneAsOverlay() = 0;
+};
+
+} // namespace ui
+
+#endif // UI_OZONE_PUBLIC_OVERLAY_MANAGER_OZONE_H_
« no previous file with comments | « ui/ozone/public/overlay_candidates_ozone.cc ('k') | ui/ozone/public/ozone_gpu_test_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698