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

Unified Diff: ui/ozone/common/window/platform_window_compat.cc

Issue 402213002: [Ozone] Migrate platform DRI & GBM to platform_window (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« no previous file with comments | « ui/ozone/common/window/platform_window_compat.h ('k') | ui/ozone/ozone.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/common/window/platform_window_compat.cc
diff --git a/ui/ozone/common/window/platform_window_compat.cc b/ui/ozone/common/window/platform_window_compat.cc
deleted file mode 100644
index 57036800ee7c7c863af9a122d67c7204b643398e..0000000000000000000000000000000000000000
--- a/ui/ozone/common/window/platform_window_compat.cc
+++ /dev/null
@@ -1,79 +0,0 @@
-// 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/common/window/platform_window_compat.h"
-
-#include "ui/events/event.h"
-#include "ui/events/platform/platform_event_source.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 {
-
-PlatformWindowCompat::PlatformWindowCompat(PlatformWindowDelegate* delegate,
- const gfx::Rect& bounds)
- : delegate_(delegate), bounds_(bounds) {
- widget_ = SurfaceFactoryOzone::GetInstance()->GetAcceleratedWidget();
- delegate_->OnAcceleratedWidgetAvailable(widget_);
- ui::PlatformEventSource::GetInstance()->AddPlatformEventDispatcher(this);
-}
-
-PlatformWindowCompat::~PlatformWindowCompat() {
- ui::PlatformEventSource::GetInstance()->RemovePlatformEventDispatcher(this);
-}
-
-bool PlatformWindowCompat::CanDispatchEvent(const ui::PlatformEvent& ne) {
- CHECK(ne);
- ui::Event* event = static_cast<ui::Event*>(ne);
- if (event->IsMouseEvent() || event->IsScrollEvent())
- return ui::CursorFactoryOzone::GetInstance()->GetCursorWindow() == widget_;
-
- return true;
-}
-
-uint32_t PlatformWindowCompat::DispatchEvent(const ui::PlatformEvent& ne) {
- ui::Event* event = static_cast<ui::Event*>(ne);
- delegate_->DispatchEvent(event);
- return ui::POST_DISPATCH_STOP_PROPAGATION;
-}
-
-gfx::Rect PlatformWindowCompat::GetBounds() {
- return bounds_;
-}
-
-void PlatformWindowCompat::SetBounds(const gfx::Rect& bounds) {
- bounds_ = bounds;
- delegate_->OnBoundsChanged(bounds);
-}
-
-void PlatformWindowCompat::Show() {
-}
-
-void PlatformWindowCompat::Hide() {
-}
-
-void PlatformWindowCompat::Close() {
-}
-
-void PlatformWindowCompat::SetCapture() {
-}
-
-void PlatformWindowCompat::ReleaseCapture() {
-}
-
-void PlatformWindowCompat::ToggleFullscreen() {
-}
-
-void PlatformWindowCompat::Maximize() {
-}
-
-void PlatformWindowCompat::Minimize() {
-}
-
-void PlatformWindowCompat::Restore() {
-}
-
-} // namespace ui
« no previous file with comments | « ui/ozone/common/window/platform_window_compat.h ('k') | ui/ozone/ozone.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698