Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef UI_AURA_WINDOW_TREE_HOST_OZONE_H_ | 5 #ifndef UI_AURA_WINDOW_TREE_HOST_OZONE_H_ |
| 6 #define UI_AURA_WINDOW_TREE_HOST_OZONE_H_ | 6 #define UI_AURA_WINDOW_TREE_HOST_OZONE_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "ui/aura/window_tree_host.h" | 9 #include "ui/aura/window_tree_host.h" |
| 10 #include "ui/gfx/geometry/rect.h" | 10 #include "ui/gfx/geometry/rect.h" |
| 11 #include "ui/platform_window/platform_window_delegate.h" | 11 #include "ui/platform_window/platform_window_delegate.h" |
| 12 | 12 |
| 13 namespace ui { | 13 namespace ui { |
| 14 class PlatformWindow; | 14 class PlatformWindow; |
| 15 } | 15 } |
| 16 | 16 |
| 17 namespace aura { | 17 namespace aura { |
| 18 | 18 |
| 19 class AURA_EXPORT WindowTreeHostOzone : public WindowTreeHost, | 19 class AURA_EXPORT WindowTreeHostAndroid : public WindowTreeHost, |
| 20 public ui::PlatformWindowDelegate { | 20 public ui::PlatformWindowDelegate { |
| 21 public: | 21 public: |
| 22 explicit WindowTreeHostOzone(const gfx::Rect& bounds); | 22 explicit WindowTreeHostAndroid(const gfx::Rect& bounds); |
| 23 ~WindowTreeHostOzone() override; | 23 ~WindowTreeHostAndroid() override; |
| 24 | 24 |
| 25 protected: | 25 protected: |
| 26 // WindowTreeHost: | 26 // WindowTreeHost: |
| 27 ui::EventSource* GetEventSource() override; | 27 ui::EventSource* GetEventSource() override; |
| 28 gfx::AcceleratedWidget GetAcceleratedWidget() override; | 28 gfx::AcceleratedWidget GetAcceleratedWidget() override; |
| 29 void ShowImpl() override; | 29 void ShowImpl() override; |
| 30 void HideImpl() override; | 30 void HideImpl() override; |
| 31 gfx::Rect GetBounds() const override; | 31 gfx::Rect GetBounds() const override; |
| 32 void SetBounds(const gfx::Rect& bounds) override; | 32 void SetBounds(const gfx::Rect& bounds) override; |
| 33 gfx::Point GetLocationOnNativeScreen() const override; | 33 gfx::Point GetLocationOnNativeScreen() const override; |
| (...skipping 20 matching lines...) Expand all Loading... | |
| 54 | 54 |
| 55 // Platform-specific part of this WindowTreeHost. | 55 // Platform-specific part of this WindowTreeHost. |
| 56 scoped_ptr<ui::PlatformWindow> platform_window_; | 56 scoped_ptr<ui::PlatformWindow> platform_window_; |
| 57 | 57 |
| 58 // The identifier used to create a compositing surface. | 58 // The identifier used to create a compositing surface. |
| 59 gfx::AcceleratedWidget widget_; | 59 gfx::AcceleratedWidget widget_; |
| 60 | 60 |
| 61 // Current Aura cursor. | 61 // Current Aura cursor. |
| 62 gfx::NativeCursor current_cursor_; | 62 gfx::NativeCursor current_cursor_; |
| 63 | 63 |
| 64 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostOzone); | 64 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostAndroid); |
|
sadrul
2015/08/13 18:31:28
We should, of course, have a single WindowTreeHost
mfomitchev
2015/08/13 21:08:23
Oh yeah, for sure. The only real difference betwee
sadrul
2015/08/13 21:33:20
I think so, yeah. I played with the idea of introd
| |
| 65 }; | 65 }; |
| 66 | 66 |
| 67 } // namespace aura | 67 } // namespace aura |
| 68 | 68 |
| 69 #endif // UI_AURA_WINDOW_TREE_HOST_OZONE_H_ | 69 #endif // UI_AURA_WINDOW_TREE_HOST_OZONE_H_ |
| OLD | NEW |