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/root_window.h" | 5 #include "ui/aura/root_window.h" |
6 | 6 |
7 #include <vector> | 7 #include <vector> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/debug/trace_event.h" | 11 #include "base/debug/trace_event.h" |
12 #include "base/logging.h" | 12 #include "base/logging.h" |
13 #include "base/message_loop.h" | 13 #include "base/message_loop.h" |
14 #include "ui/aura/aura_switches.h" | 14 #include "ui/aura/aura_switches.h" |
15 #include "ui/aura/client/activation_client.h" | 15 #include "ui/aura/client/activation_client.h" |
16 #include "ui/aura/client/event_client.h" | 16 #include "ui/aura/client/event_client.h" |
17 #include "ui/aura/env.h" | 17 #include "ui/aura/env.h" |
18 #include "ui/aura/event.h" | 18 #include "ui/aura/event.h" |
19 #include "ui/aura/event_filter.h" | 19 #include "ui/aura/event_filter.h" |
20 #include "ui/aura/focus_manager.h" | 20 #include "ui/aura/focus_manager.h" |
21 #include "ui/aura/root_window_host.h" | 21 #include "ui/aura/root_window_host.h" |
22 #include "ui/aura/root_window_observer.h" | 22 #include "ui/aura/root_window_observer.h" |
23 #include "ui/aura/window.h" | 23 #include "ui/aura/window.h" |
24 #include "ui/aura/window_delegate.h" | 24 #include "ui/aura/window_delegate.h" |
25 #include "ui/base/gestures/gesture_recognizer.h" | 25 #include "ui/base/gestures/gesture_recognizer.h" |
26 #include "ui/base/gestures/gesture_types.h" | 26 #include "ui/base/gestures/gesture_types.h" |
27 #include "ui/base/hit_test.h" | 27 #include "ui/base/hit_test.h" |
28 #include "ui/gfx/compositor/compositor.h" | 28 #include "ui/compositor/compositor.h" |
29 #include "ui/gfx/compositor/layer.h" | 29 #include "ui/compositor/layer.h" |
30 #include "ui/gfx/compositor/layer_animator.h" | 30 #include "ui/compositor/layer_animator.h" |
31 | 31 |
32 using std::vector; | 32 using std::vector; |
33 | 33 |
34 namespace aura { | 34 namespace aura { |
35 | 35 |
36 namespace { | 36 namespace { |
37 | 37 |
38 // Returns true if |target| has a non-client (frame) component at |location|, | 38 // Returns true if |target| has a non-client (frame) component at |location|, |
39 // in window coordinates. | 39 // in window coordinates. |
40 bool IsNonClientLocation(Window* target, const gfx::Point& location) { | 40 bool IsNonClientLocation(Window* target, const gfx::Point& location) { |
(...skipping 945 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
986 void RootWindow::UnlockCompositor() { | 986 void RootWindow::UnlockCompositor() { |
987 DCHECK(compositor_lock_); | 987 DCHECK(compositor_lock_); |
988 compositor_lock_ = NULL; | 988 compositor_lock_ = NULL; |
989 if (draw_on_compositor_unlock_) { | 989 if (draw_on_compositor_unlock_) { |
990 draw_on_compositor_unlock_ = false; | 990 draw_on_compositor_unlock_ = false; |
991 ScheduleDraw(); | 991 ScheduleDraw(); |
992 } | 992 } |
993 } | 993 } |
994 | 994 |
995 } // namespace aura | 995 } // namespace aura |
OLD | NEW |