| 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 <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "ui/aura/window_tree_host.h" | 11 #include "ui/aura/window_tree_host.h" |
| 12 #include "ui/events/event_source.h" | 12 #include "ui/events/event_source.h" |
| 13 #include "ui/events/platform/platform_event_dispatcher.h" | 13 #include "ui/events/platform/platform_event_dispatcher.h" |
| 14 #include "ui/gfx/insets.h" | 14 #include "ui/gfx/insets.h" |
| 15 #include "ui/gfx/rect.h" | 15 #include "ui/gfx/rect.h" |
| 16 | 16 |
| 17 namespace ui { |
| 18 class ContextFactory; |
| 19 } |
| 20 |
| 17 namespace aura { | 21 namespace aura { |
| 18 | 22 |
| 19 class AURA_EXPORT WindowTreeHostOzone : public WindowTreeHost, | 23 class AURA_EXPORT WindowTreeHostOzone : public WindowTreeHost, |
| 20 public ui::EventSource, | 24 public ui::EventSource, |
| 21 public ui::PlatformEventDispatcher { | 25 public ui::PlatformEventDispatcher { |
| 22 public: | 26 public: |
| 23 explicit WindowTreeHostOzone(const gfx::Rect& bounds); | 27 WindowTreeHostOzone(const gfx::Rect& bounds, |
| 28 ui::ContextFactory* context_factory); |
| 24 virtual ~WindowTreeHostOzone(); | 29 virtual ~WindowTreeHostOzone(); |
| 25 | 30 |
| 26 private: | 31 private: |
| 27 // ui::PlatformEventDispatcher: | 32 // ui::PlatformEventDispatcher: |
| 28 virtual bool CanDispatchEvent(const ui::PlatformEvent& event) OVERRIDE; | 33 virtual bool CanDispatchEvent(const ui::PlatformEvent& event) OVERRIDE; |
| 29 virtual uint32_t DispatchEvent(const ui::PlatformEvent& event) OVERRIDE; | 34 virtual uint32_t DispatchEvent(const ui::PlatformEvent& event) OVERRIDE; |
| 30 | 35 |
| 31 // WindowTreeHost: | 36 // WindowTreeHost: |
| 32 virtual ui::EventSource* GetEventSource() OVERRIDE; | 37 virtual ui::EventSource* GetEventSource() OVERRIDE; |
| 33 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; | 38 virtual gfx::AcceleratedWidget GetAcceleratedWidget() OVERRIDE; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 49 | 54 |
| 50 gfx::AcceleratedWidget widget_; | 55 gfx::AcceleratedWidget widget_; |
| 51 gfx::Rect bounds_; | 56 gfx::Rect bounds_; |
| 52 | 57 |
| 53 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostOzone); | 58 DISALLOW_COPY_AND_ASSIGN(WindowTreeHostOzone); |
| 54 }; | 59 }; |
| 55 | 60 |
| 56 } // namespace aura | 61 } // namespace aura |
| 57 | 62 |
| 58 #endif // UI_AURA_WINDOW_TREE_HOST_OZONE_H_ | 63 #endif // UI_AURA_WINDOW_TREE_HOST_OZONE_H_ |
| OLD | NEW |