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 #include "ui/aura/window_tree_host_ozone.h" | 5 #include "ui/aura/window_tree_host_ozone.h" |
| 6 | 6 |
| 7 #include "base/trace_event/trace_event.h" | |
| 7 #include "ui/aura/window_event_dispatcher.h" | 8 #include "ui/aura/window_event_dispatcher.h" |
| 8 #include "ui/ozone/public/ozone_platform.h" | 9 #include "ui/ozone/public/ozone_platform.h" |
| 9 #include "ui/platform_window/platform_window.h" | 10 #include "ui/platform_window/platform_window.h" |
| 10 | 11 |
| 11 namespace aura { | 12 namespace aura { |
| 12 | 13 |
| 13 WindowTreeHostOzone::WindowTreeHostOzone(const gfx::Rect& bounds) | 14 WindowTreeHostOzone::WindowTreeHostOzone(const gfx::Rect& bounds) |
| 14 : widget_(gfx::kNullAcceleratedWidget), current_cursor_(ui::kCursorNull) { | 15 : widget_(gfx::kNullAcceleratedWidget), current_cursor_(ui::kCursorNull) { |
| 15 platform_window_ = | 16 platform_window_ = |
| 16 ui::OzonePlatform::GetInstance()->CreatePlatformWindow(this, bounds); | 17 ui::OzonePlatform::GetInstance()->CreatePlatformWindow(this, bounds); |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 73 | 74 |
| 74 void WindowTreeHostOzone::OnBoundsChanged(const gfx::Rect& new_bounds) { | 75 void WindowTreeHostOzone::OnBoundsChanged(const gfx::Rect& new_bounds) { |
| 75 // TOOD(spang): Should we determine which parts changed? | 76 // TOOD(spang): Should we determine which parts changed? |
| 76 OnHostResized(new_bounds.size()); | 77 OnHostResized(new_bounds.size()); |
| 77 OnHostMoved(new_bounds.origin()); | 78 OnHostMoved(new_bounds.origin()); |
| 78 } | 79 } |
| 79 | 80 |
| 80 void WindowTreeHostOzone::OnDamageRect(const gfx::Rect& damaged_region) { | 81 void WindowTreeHostOzone::OnDamageRect(const gfx::Rect& damaged_region) { |
| 81 } | 82 } |
| 82 | 83 |
| 83 void WindowTreeHostOzone::DispatchEvent(ui::Event* event) { | 84 void WindowTreeHostOzone::DispatchEvent(ui::Event* event) { |
|
spang
2015/03/04 00:14:05
FYI
ash overrides this function. It will not be c
| |
| 85 TRACE_EVENT0("input", "WindowTreeHostOzone::DispatchEvent"); | |
| 84 SendEventToProcessor(event); | 86 SendEventToProcessor(event); |
| 85 } | 87 } |
| 86 | 88 |
| 87 void WindowTreeHostOzone::OnCloseRequest() { | 89 void WindowTreeHostOzone::OnCloseRequest() { |
| 88 OnHostCloseRequested(); | 90 OnHostCloseRequested(); |
| 89 } | 91 } |
| 90 | 92 |
| 91 void WindowTreeHostOzone::OnClosed() { | 93 void WindowTreeHostOzone::OnClosed() { |
| 92 } | 94 } |
| 93 | 95 |
| (...skipping 22 matching lines...) Expand all Loading... | |
| 116 return new WindowTreeHostOzone(bounds); | 118 return new WindowTreeHostOzone(bounds); |
| 117 } | 119 } |
| 118 | 120 |
| 119 // static | 121 // static |
| 120 gfx::Size WindowTreeHost::GetNativeScreenSize() { | 122 gfx::Size WindowTreeHost::GetNativeScreenSize() { |
| 121 NOTIMPLEMENTED(); | 123 NOTIMPLEMENTED(); |
| 122 return gfx::Size(); | 124 return gfx::Size(); |
| 123 } | 125 } |
| 124 | 126 |
| 125 } // namespace aura | 127 } // namespace aura |
| OLD | NEW |