Chromium Code Reviews| Index: ui/aura/window_tree_host_impl.h |
| diff --git a/ui/aura/window_tree_host_win.h b/ui/aura/window_tree_host_impl.h |
| similarity index 74% |
| rename from ui/aura/window_tree_host_win.h |
| rename to ui/aura/window_tree_host_impl.h |
| index e49890d2f67ea7789136ba32711820ead8437e1d..b40409b14493f0c2b6acb2a2dabb7dbebb7bec74 100644 |
| --- a/ui/aura/window_tree_host_win.h |
| +++ b/ui/aura/window_tree_host_impl.h |
| @@ -1,26 +1,30 @@ |
| -// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| +// Copyright 2015 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_WIN_H_ |
| -#define UI_AURA_WINDOW_TREE_HOST_WIN_H_ |
| +#ifndef UI_AURA_WINDOW_TREE_HOST_IMPL_H_ |
| +#define UI_AURA_WINDOW_TREE_HOST_IMPL_H_ |
| #include "base/compiler_specific.h" |
| #include "base/memory/scoped_ptr.h" |
| #include "ui/aura/aura_export.h" |
| #include "ui/aura/window_tree_host.h" |
| +#include "ui/gfx/native_widget_types.h" |
| #include "ui/platform_window/platform_window.h" |
| #include "ui/platform_window/platform_window_delegate.h" |
| namespace aura { |
| -class AURA_EXPORT WindowTreeHostWin |
| +// The unified WindowTreeHost implementation for platforms |
| +// that implement PlatformWindow. |
| +class AURA_EXPORT WindowTreeHostImpl |
|
sadrul
2015/10/08 15:18:10
Because we have other impls of WindowTreeHost, thi
no sievers
2015/10/09 00:34:18
Done.
|
| : public WindowTreeHost, |
| public NON_EXPORTED_BASE(ui::PlatformWindowDelegate) { |
| public: |
| - explicit WindowTreeHostWin(const gfx::Rect& bounds); |
| - ~WindowTreeHostWin() override; |
| + explicit WindowTreeHostImpl(const gfx::Rect& bounds); |
| + ~WindowTreeHostImpl() override; |
| + protected: |
| // WindowTreeHost: |
| ui::EventSource* GetEventSource() override; |
| gfx::AcceleratedWidget GetAcceleratedWidget() override; |
| @@ -35,8 +39,7 @@ class AURA_EXPORT WindowTreeHostWin |
| void MoveCursorToNative(const gfx::Point& location) override; |
| void OnCursorVisibilityChangedNative(bool show) override; |
| - protected: |
| - gfx::AcceleratedWidget hwnd() const { return widget_; } |
| + ui::PlatformWindow* platform_window() { return platform_window_.get(); } |
| private: |
| // ui::PlatformWindowDelegate: |
| @@ -51,14 +54,15 @@ class AURA_EXPORT WindowTreeHostWin |
| float device_pixel_ratio) override; |
| void OnActivationChanged(bool active) override; |
| - bool has_capture_; |
| - gfx::Rect bounds_; |
| gfx::AcceleratedWidget widget_; |
| scoped_ptr<ui::PlatformWindow> window_; |
| + bool has_capture_; |
| + gfx::NativeCursor current_cursor_; |
| + gfx::Rect bounds_; |
| - DISALLOW_COPY_AND_ASSIGN(WindowTreeHostWin); |
| + DISALLOW_COPY_AND_ASSIGN(WindowTreeHostImpl); |
| }; |
| } // namespace aura |
| -#endif // UI_AURA_WINDOW_TREE_HOST_WIN_H_ |
| +#endif // UI_AURA_WINDOW_TREE_HOST_IMPL_H_ |