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

Unified Diff: ui/ozone/window/ozone_window.cc

Issue 205433005: ozone: Add OzoneWindowFactory & OzoneWindow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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/ozone/window/ozone_window.cc
diff --git a/ui/ozone/window/ozone_window.cc b/ui/ozone/window/ozone_window.cc
new file mode 100644
index 0000000000000000000000000000000000000000..5fac93f5e52828b52bfbb0098309114efd2079d2
--- /dev/null
+++ b/ui/ozone/window/ozone_window.cc
@@ -0,0 +1,42 @@
+// Copyright 2014 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.
+
+#include "ui/ozone/window/ozone_window.h"
+
+#include "base/logging.h"
+#include "base/memory/scoped_ptr.h"
+#include "ui/gfx/geometry/rect.h"
+#include "ui/gfx/ozone/surface_factory_ozone.h"
+#include "ui/gfx/vsync_provider.h"
+
+namespace ui {
+
+OzoneWindow::OzoneWindow() {}
+
+OzoneWindow::~OzoneWindow() {}
+
+gfx::AcceleratedWidget OzoneWindow::GetAcceleratedWidget() {
+ // This is for simple platforms with one surface only!
+ NOTIMPLEMENTED();
+ return gfx::kDefaultAcceleratedWidgetForSingleWindow;
+}
+
+gfx::Rect OzoneWindow::GetBounds() {
+ // 800x600 is the universal default chrome window size.
+ NOTIMPLEMENTED();
+ return gfx::Rect(0, 0, 800, 600);
+}
+
+bool OzoneWindow::Resize(const gfx::Rect& bounds) {
+ NOTIMPLEMENTED();
+ return false;
+}
+
+void OzoneWindow::SetCursor(PlatformCursor cursor) { NOTIMPLEMENTED(); }
+
+void OzoneWindow::WarpCursorTo(const gfx::PointF& location) {
+ NOTIMPLEMENTED();
+}
+
+} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698