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

Unified Diff: ui/base/linux/native_surface_linux_factory_delegate.h

Issue 13886018: Add a factory and defines for native Linux surfaces. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
Index: ui/base/linux/native_surface_linux_factory_delegate.h
diff --git a/ui/base/linux/native_surface_linux_factory_delegate.h b/ui/base/linux/native_surface_linux_factory_delegate.h
new file mode 100644
index 0000000000000000000000000000000000000000..7f14ce31bff7aca9feeaf504fc8839100be92431
--- /dev/null
+++ b/ui/base/linux/native_surface_linux_factory_delegate.h
@@ -0,0 +1,25 @@
+// Copyright (c) 2013 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_BASE_LINUX_NATIVE_SURFACE_LNUX_FACTORY_DELEGATE_
DaveMoore 2013/04/30 17:53:42 Nit: LINUX not LNUX
rjkroege 2013/05/06 18:46:24 Done.
+#define UI_BASE_LINUX_NATIVE_SURFACE_LNUX_FACTORY_DELEGATE_
+
+#include "ui/gfx/native_widget_types.h"
+
+namespace ui {
+
+class NativeSurfaceLinuxFactoryDelegate {
+ public:
+ virtual ~NativeSurfaceLinuxFactoryDelegate();
+ virtual void InitializeHardware() = 0;
+ virtual void ShutdownHardware() = 0;
+ virtual gfx::AcceleratedWidget GetAcceleratedWidget(
+ const gfx::GLSurfaceHandle& handle) = 0;
+ virtual bool AcceleratedWidgetCanBeResized(gfx::AcceleratedWidget w) = 0;
+ virtual bool LoadEGLGLES2Bindings() = 0;
+};
+
+} // namespace ui
+
+#endif

Powered by Google App Engine
This is Rietveld 408576698