| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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.h" | 5 #include "ui/aura/window.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 #include "ui/aura/client/window_stacking_client.h" | 23 #include "ui/aura/client/window_stacking_client.h" |
| 24 #include "ui/aura/env.h" | 24 #include "ui/aura/env.h" |
| 25 #include "ui/aura/layout_manager.h" | 25 #include "ui/aura/layout_manager.h" |
| 26 #include "ui/aura/window_delegate.h" | 26 #include "ui/aura/window_delegate.h" |
| 27 #include "ui/aura/window_event_dispatcher.h" | 27 #include "ui/aura/window_event_dispatcher.h" |
| 28 #include "ui/aura/window_observer.h" | 28 #include "ui/aura/window_observer.h" |
| 29 #include "ui/aura/window_tracker.h" | 29 #include "ui/aura/window_tracker.h" |
| 30 #include "ui/aura/window_tree_host.h" | 30 #include "ui/aura/window_tree_host.h" |
| 31 #include "ui/compositor/compositor.h" | 31 #include "ui/compositor/compositor.h" |
| 32 #include "ui/compositor/layer.h" | 32 #include "ui/compositor/layer.h" |
| 33 #include "ui/compositor/paint_context.h" | |
| 34 #include "ui/events/event_target_iterator.h" | 33 #include "ui/events/event_target_iterator.h" |
| 35 #include "ui/gfx/canvas.h" | 34 #include "ui/gfx/canvas.h" |
| 36 #include "ui/gfx/path.h" | 35 #include "ui/gfx/path.h" |
| 37 #include "ui/gfx/scoped_canvas.h" | 36 #include "ui/gfx/scoped_canvas.h" |
| 38 #include "ui/gfx/screen.h" | 37 #include "ui/gfx/screen.h" |
| 39 | 38 |
| 40 namespace aura { | 39 namespace aura { |
| 41 | 40 |
| 42 namespace { | 41 namespace { |
| 43 | 42 |
| (...skipping 1365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1409 return window; | 1408 return window; |
| 1410 if (offset) | 1409 if (offset) |
| 1411 *offset += window->bounds().OffsetFromOrigin(); | 1410 *offset += window->bounds().OffsetFromOrigin(); |
| 1412 } | 1411 } |
| 1413 if (offset) | 1412 if (offset) |
| 1414 *offset = gfx::Vector2d(); | 1413 *offset = gfx::Vector2d(); |
| 1415 return NULL; | 1414 return NULL; |
| 1416 } | 1415 } |
| 1417 | 1416 |
| 1418 } // namespace aura | 1417 } // namespace aura |
| OLD | NEW |