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

Unified Diff: ui/ozone/common/platform_window_base.cc

Issue 375053002: ozone: Port WindowTreeHostOzone on top of PlatformWindow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase onto sadrul's CL Created 6 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: ui/ozone/common/platform_window_base.cc
diff --git a/ui/ozone/common/platform_window_base.cc b/ui/ozone/common/platform_window_base.cc
new file mode 100644
index 0000000000000000000000000000000000000000..27311c683cf46e69ad616c9c4ee4449c632be567
--- /dev/null
+++ b/ui/ozone/common/platform_window_base.cc
@@ -0,0 +1,65 @@
+// Copyright (c) 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/common/platform_window_base.h"
+#include "ui/ozone/public/cursor_factory_ozone.h"
+#include "ui/ozone/public/event_factory_ozone.h"
+#include "ui/ozone/public/surface_factory_ozone.h"
+#include "ui/platform_window/platform_window_delegate.h"
+
+namespace ui {
+
+PlatformWindowBase::PlatformWindowBase() {
+}
+
+PlatformWindowBase::~PlatformWindowBase() {
+}
+
+void PlatformWindowBase::Show() {
+}
+
+void PlatformWindowBase::Hide() {
+}
+
+void PlatformWindowBase::Close() {
+}
+
+void PlatformWindowBase::SetCapture() {
+}
+
+void PlatformWindowBase::ReleaseCapture() {
+}
+
+void PlatformWindowBase::ToggleFullscreen() {
+}
+
+void PlatformWindowBase::Maximize() {
+}
+
+void PlatformWindowBase::Minimize() {
+}
+
+void PlatformWindowBase::Restore() {
+}
+
+PlatformWindowCompat::PlatformWindowCompat(PlatformWindowDelegate* delegate,
+ const gfx::Rect& bounds)
+ : delegate_(delegate), bounds_(bounds) {
+ delegate_->OnAcceleratedWidgetAvailable(
+ SurfaceFactoryOzone::GetInstance()->GetAcceleratedWidget());
+}
+
+PlatformWindowCompat::~PlatformWindowCompat() {
+}
+
+gfx::Rect PlatformWindowCompat::GetBounds() {
+ return bounds_;
+}
+
+void PlatformWindowCompat::SetBounds(const gfx::Rect& bounds) {
+ bounds_ = bounds;
+ delegate_->OnBoundsChanged(bounds);
+}
+
+} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698