summaryrefslogtreecommitdiffstats
path: root/ui/aura/window_tree_host_ozone.h
diff options
context:
space:
mode:
authorsievers <sievers@chromium.org>2015-10-16 13:44:36 -0700
committerCommit bot <commit-bot@chromium.org>2015-10-16 20:45:18 +0000
commit1b4ef1a69b08dd2d779521118ddb1f3a285d4c83 (patch)
tree6322eab33bc0a505b2623ce3e0346b6aa649094b /ui/aura/window_tree_host_ozone.h
parent37f80293c26fb0192c80f93207d917f8aa92fbfa (diff)
downloadchromium_src-1b4ef1a69b08dd2d779521118ddb1f3a285d4c83.zip
chromium_src-1b4ef1a69b08dd2d779521118ddb1f3a285d4c83.tar.gz
chromium_src-1b4ef1a69b08dd2d779521118ddb1f3a285d4c83.tar.bz2
aura: Unify Ozone+Windows+Android WindowTreeHost
This effectively adds an Android WindowTreeHost. For these three most platform-specific stuff happens in PlatformWindow* and the WTH is mostly a shim. BUG=507792 Review URL: https://codereview.chromium.org/1390883003 Cr-Commit-Position: refs/heads/master@{#354585}
Diffstat (limited to 'ui/aura/window_tree_host_ozone.h')
-rw-r--r--ui/aura/window_tree_host_ozone.h69
1 files changed, 0 insertions, 69 deletions
diff --git a/ui/aura/window_tree_host_ozone.h b/ui/aura/window_tree_host_ozone.h
deleted file mode 100644
index b356a30..0000000
--- a/ui/aura/window_tree_host_ozone.h
+++ /dev/null
@@ -1,69 +0,0 @@
-// Copyright 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_AURA_WINDOW_TREE_HOST_OZONE_H_
-#define UI_AURA_WINDOW_TREE_HOST_OZONE_H_
-
-#include "base/memory/scoped_ptr.h"
-#include "ui/aura/window_tree_host.h"
-#include "ui/gfx/geometry/rect.h"
-#include "ui/platform_window/platform_window_delegate.h"
-
-namespace ui {
-class PlatformWindow;
-}
-
-namespace aura {
-
-class AURA_EXPORT WindowTreeHostOzone : public WindowTreeHost,
- public ui::PlatformWindowDelegate {
- public:
- explicit WindowTreeHostOzone(const gfx::Rect& bounds);
- ~WindowTreeHostOzone() override;
-
- protected:
- // WindowTreeHost:
- ui::EventSource* GetEventSource() override;
- gfx::AcceleratedWidget GetAcceleratedWidget() override;
- void ShowImpl() override;
- void HideImpl() override;
- gfx::Rect GetBounds() const override;
- void SetBounds(const gfx::Rect& bounds) override;
- gfx::Point GetLocationOnNativeScreen() const override;
- void SetCapture() override;
- void ReleaseCapture() override;
- void SetCursorNative(gfx::NativeCursor cursor_type) override;
- void MoveCursorToNative(const gfx::Point& location) override;
- void OnCursorVisibilityChangedNative(bool show) override;
-
- ui::PlatformWindow* platform_window() { return platform_window_.get(); }
-
- private:
- // ui::PlatformWindowDelegate:
- void OnBoundsChanged(const gfx::Rect&) override;
- void OnDamageRect(const gfx::Rect& damaged_region) override;
- void DispatchEvent(ui::Event* event) override;
- void OnCloseRequest() override;
- void OnClosed() override;
- void OnWindowStateChanged(ui::PlatformWindowState new_state) override;
- void OnLostCapture() override;
- void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget,
- float device_pixel_ratio) override;
- void OnActivationChanged(bool active) override;
-
- // Platform-specific part of this WindowTreeHost.
- scoped_ptr<ui::PlatformWindow> platform_window_;
-
- // The identifier used to create a compositing surface.
- gfx::AcceleratedWidget widget_;
-
- // Current Aura cursor.
- gfx::NativeCursor current_cursor_;
-
- DISALLOW_COPY_AND_ASSIGN(WindowTreeHostOzone);
-};
-
-} // namespace aura
-
-#endif // UI_AURA_WINDOW_TREE_HOST_OZONE_H_