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 "content/public/test/browser_test_utils.h" | 5 #include "content/public/test/browser_test_utils.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 #include "net/test/embedded_test_server/http_response.h" | 51 #include "net/test/embedded_test_server/http_response.h" |
52 #include "net/test/python_utils.h" | 52 #include "net/test/python_utils.h" |
53 #include "net/url_request/url_request_context.h" | 53 #include "net/url_request/url_request_context.h" |
54 #include "net/url_request/url_request_context_getter.h" | 54 #include "net/url_request/url_request_context_getter.h" |
55 #include "testing/gtest/include/gtest/gtest.h" | 55 #include "testing/gtest/include/gtest/gtest.h" |
56 #include "ui/base/resource/resource_bundle.h" | 56 #include "ui/base/resource/resource_bundle.h" |
57 #include "ui/compositor/test/draw_waiter_for_test.h" | 57 #include "ui/compositor/test/draw_waiter_for_test.h" |
58 #include "ui/events/gesture_detection/gesture_configuration.h" | 58 #include "ui/events/gesture_detection/gesture_configuration.h" |
59 #include "ui/events/keycodes/dom/dom_code.h" | 59 #include "ui/events/keycodes/dom/dom_code.h" |
60 #include "ui/events/keycodes/dom/keycode_converter.h" | 60 #include "ui/events/keycodes/dom/keycode_converter.h" |
61 #include "ui/events/latency_info.h" | 61 #include "ui/latency_info/latency_info.h" |
62 #include "ui/resources/grit/webui_resources.h" | 62 #include "ui/resources/grit/webui_resources.h" |
63 | 63 |
64 #if defined(USE_AURA) | 64 #if defined(USE_AURA) |
65 #include "content/browser/renderer_host/render_widget_host_view_aura.h" | 65 #include "content/browser/renderer_host/render_widget_host_view_aura.h" |
66 #include "ui/aura/test/window_event_dispatcher_test_api.h" | 66 #include "ui/aura/test/window_event_dispatcher_test_api.h" |
67 #include "ui/aura/window.h" | 67 #include "ui/aura/window.h" |
68 #include "ui/aura/window_event_dispatcher.h" | 68 #include "ui/aura/window_event_dispatcher.h" |
69 #include "ui/aura/window_tree_host.h" | 69 #include "ui/aura/window_tree_host.h" |
70 #include "ui/events/event.h" | 70 #include "ui/events/event.h" |
71 #endif // USE_AURA | 71 #endif // USE_AURA |
(...skipping 1169 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1241 DCHECK_CURRENTLY_ON(BrowserThread::UI); | 1241 DCHECK_CURRENTLY_ON(BrowserThread::UI); |
1242 if (ack_result_ != INPUT_EVENT_ACK_STATE_UNKNOWN) | 1242 if (ack_result_ != INPUT_EVENT_ACK_STATE_UNKNOWN) |
1243 return ack_result_; | 1243 return ack_result_; |
1244 base::RunLoop run_loop; | 1244 base::RunLoop run_loop; |
1245 base::AutoReset<base::Closure> reset_quit(&quit_, run_loop.QuitClosure()); | 1245 base::AutoReset<base::Closure> reset_quit(&quit_, run_loop.QuitClosure()); |
1246 run_loop.Run(); | 1246 run_loop.Run(); |
1247 return ack_result_; | 1247 return ack_result_; |
1248 } | 1248 } |
1249 | 1249 |
1250 } // namespace content | 1250 } // namespace content |
OLD | NEW |