| 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 #include "ui/aura/window_tree_host_ozone.h" | 5 #include "ui/aura/window_tree_host_ozone.h" |
| 6 | 6 |
| 7 #include "ui/aura/window_event_dispatcher.h" | 7 #include "ui/aura/window_event_dispatcher.h" |
| 8 #include "ui/base/cursor/ozone/cursor_factory_ozone.h" | 8 #include "ui/base/cursor/ozone/cursor_factory_ozone.h" |
| 9 #include "ui/events/ozone/event_factory_ozone.h" | 9 #include "ui/events/ozone/event_factory_ozone.h" |
| 10 #include "ui/events/platform/platform_event_source.h" | 10 #include "ui/events/platform/platform_event_source.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 return bounds_.Contains(static_cast<ui::LocatedEvent*>(event)->location()); | 44 return bounds_.Contains(static_cast<ui::LocatedEvent*>(event)->location()); |
| 45 return true; | 45 return true; |
| 46 } | 46 } |
| 47 | 47 |
| 48 uint32_t WindowTreeHostOzone::DispatchEvent(const ui::PlatformEvent& ne) { | 48 uint32_t WindowTreeHostOzone::DispatchEvent(const ui::PlatformEvent& ne) { |
| 49 ui::Event* event = static_cast<ui::Event*>(ne); | 49 ui::Event* event = static_cast<ui::Event*>(ne); |
| 50 ui::EventDispatchDetails details ALLOW_UNUSED = SendEventToProcessor(event); | 50 ui::EventDispatchDetails details ALLOW_UNUSED = SendEventToProcessor(event); |
| 51 return ui::POST_DISPATCH_STOP_PROPAGATION; | 51 return ui::POST_DISPATCH_STOP_PROPAGATION; |
| 52 } | 52 } |
| 53 | 53 |
| 54 ui::EventSource* WindowTreeHostOzone::GetEventSource() { |
| 55 return this; |
| 56 } |
| 57 |
| 54 gfx::AcceleratedWidget WindowTreeHostOzone::GetAcceleratedWidget() { | 58 gfx::AcceleratedWidget WindowTreeHostOzone::GetAcceleratedWidget() { |
| 55 return widget_; | 59 return widget_; |
| 56 } | 60 } |
| 57 | 61 |
| 58 void WindowTreeHostOzone::Show() { NOTIMPLEMENTED(); } | 62 void WindowTreeHostOzone::Show() { NOTIMPLEMENTED(); } |
| 59 | 63 |
| 60 void WindowTreeHostOzone::Hide() { NOTIMPLEMENTED(); } | 64 void WindowTreeHostOzone::Hide() { NOTIMPLEMENTED(); } |
| 61 | 65 |
| 62 gfx::Rect WindowTreeHostOzone::GetBounds() const { return bounds_; } | 66 gfx::Rect WindowTreeHostOzone::GetBounds() const { return bounds_; } |
| 63 | 67 |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 return new WindowTreeHostOzone(bounds); | 121 return new WindowTreeHostOzone(bounds); |
| 118 } | 122 } |
| 119 | 123 |
| 120 // static | 124 // static |
| 121 gfx::Size WindowTreeHost::GetNativeScreenSize() { | 125 gfx::Size WindowTreeHost::GetNativeScreenSize() { |
| 122 NOTIMPLEMENTED(); | 126 NOTIMPLEMENTED(); |
| 123 return gfx::Size(); | 127 return gfx::Size(); |
| 124 } | 128 } |
| 125 | 129 |
| 126 } // namespace aura | 130 } // namespace aura |
| OLD | NEW |