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/ozone/public/ozone_platform.h" | 8 #include "ui/ozone/public/ozone_platform.h" |
9 #include "ui/platform_window/platform_window.h" | 9 #include "ui/platform_window/platform_window.h" |
10 | 10 |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
79 | 79 |
80 void WindowTreeHostOzone::SetBounds(const gfx::Rect& bounds) { | 80 void WindowTreeHostOzone::SetBounds(const gfx::Rect& bounds) { |
81 platform_window_->SetBounds(bounds); | 81 platform_window_->SetBounds(bounds); |
82 } | 82 } |
83 | 83 |
84 gfx::Point WindowTreeHostOzone::GetLocationOnNativeScreen() const { | 84 gfx::Point WindowTreeHostOzone::GetLocationOnNativeScreen() const { |
85 return platform_window_->GetBounds().origin(); | 85 return platform_window_->GetBounds().origin(); |
86 } | 86 } |
87 | 87 |
88 void WindowTreeHostOzone::SetCapture() { | 88 void WindowTreeHostOzone::SetCapture() { |
89 platform_window_->SetCapture(); | 89 //platform_window_->SetCapture(); |
pkotwicz
2014/12/08 20:05:18
I have commented this out to demonstrate that nati
| |
90 } | 90 } |
91 | 91 |
92 void WindowTreeHostOzone::ReleaseCapture() { | 92 void WindowTreeHostOzone::ReleaseCapture() { |
93 platform_window_->ReleaseCapture(); | 93 //platform_window_->ReleaseCapture(); |
94 } | 94 } |
95 | 95 |
96 void WindowTreeHostOzone::SetCursorNative(gfx::NativeCursor cursor) { | 96 void WindowTreeHostOzone::SetCursorNative(gfx::NativeCursor cursor) { |
97 if (cursor == current_cursor_) | 97 if (cursor == current_cursor_) |
98 return; | 98 return; |
99 current_cursor_ = cursor; | 99 current_cursor_ = cursor; |
100 platform_window_->SetCursor(cursor.platform()); | 100 platform_window_->SetCursor(cursor.platform()); |
101 } | 101 } |
102 | 102 |
103 void WindowTreeHostOzone::MoveCursorToNative(const gfx::Point& location) { | 103 void WindowTreeHostOzone::MoveCursorToNative(const gfx::Point& location) { |
(...skipping 13 matching lines...) Expand all Loading... | |
117 return new WindowTreeHostOzone(bounds); | 117 return new WindowTreeHostOzone(bounds); |
118 } | 118 } |
119 | 119 |
120 // static | 120 // static |
121 gfx::Size WindowTreeHost::GetNativeScreenSize() { | 121 gfx::Size WindowTreeHost::GetNativeScreenSize() { |
122 NOTIMPLEMENTED(); | 122 NOTIMPLEMENTED(); |
123 return gfx::Size(); | 123 return gfx::Size(); |
124 } | 124 } |
125 | 125 |
126 } // namespace aura | 126 } // namespace aura |
OLD | NEW |