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/views/examples/content_client/examples_browser_main_parts.h" | 5 #include "ui/views/examples/content_client/examples_browser_main_parts.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "base/run_loop.h" | 10 #include "base/run_loop.h" |
11 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
12 #include "base/threading/thread.h" | 12 #include "base/threading/thread.h" |
13 #include "base/threading/thread_restrictions.h" | 13 #include "base/threading/thread_restrictions.h" |
14 #include "content/public/common/content_switches.h" | 14 #include "content/public/common/content_switches.h" |
15 #include "content/shell/browser/shell_browser_context.h" | 15 #include "content/shell/browser/shell_browser_context.h" |
16 #include "ui/base/ime/input_method_initializer.h" | 16 #include "ui/base/ime/input_method_initializer.h" |
17 #include "ui/views/examples/examples_window_with_content.h" | 17 #include "ui/views/examples/examples_window_with_content.h" |
18 #include "ui/views/test/desktop_test_views_delegate.h" | 18 #include "ui/views/test/desktop_test_views_delegate.h" |
19 #include "url/gurl.h" | 19 #include "url/gurl.h" |
20 | 20 |
21 #if defined(USE_AURA) | 21 #if defined(USE_AURA) |
22 #include "ui/aura/env.h" | 22 #include "ui/aura/env.h" |
23 #include "ui/gfx/screen.h" | 23 #include "ui/gfx/screen.h" |
24 #include "ui/views/corewm/wm_state.h" | 24 #include "ui/views/corewm/wm_state.h" |
25 #include "ui/views/widget/desktop_aura/desktop_screen.h" | 25 #include "ui/views/widget/desktop_aura/desktop_screen.h" |
26 #include "ui/views/widget/native_widget_aura.h" | 26 #include "ui/views/widget/native_widget_aura.h" |
27 #endif | 27 #endif |
28 | 28 |
29 #if defined(OS_CHROMEOS) | 29 #if defined(OS_CHROMEOS) |
30 #include "ui/aura/root_window.h" | |
31 #include "ui/aura/test/test_screen.h" | 30 #include "ui/aura/test/test_screen.h" |
32 #include "ui/aura/window.h" | 31 #include "ui/aura/window.h" |
| 32 #include "ui/aura/window_event_dispatcher.h" |
33 #include "ui/wm/test/wm_test_helper.h" | 33 #include "ui/wm/test/wm_test_helper.h" |
34 #endif | 34 #endif |
35 | 35 |
36 namespace views { | 36 namespace views { |
37 namespace examples { | 37 namespace examples { |
38 | 38 |
39 ExamplesBrowserMainParts::ExamplesBrowserMainParts( | 39 ExamplesBrowserMainParts::ExamplesBrowserMainParts( |
40 const content::MainFunctionParams& parameters) { | 40 const content::MainFunctionParams& parameters) { |
41 } | 41 } |
42 | 42 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 } | 86 } |
87 | 87 |
88 bool ExamplesBrowserMainParts::MainMessageLoopRun(int* result_code) { | 88 bool ExamplesBrowserMainParts::MainMessageLoopRun(int* result_code) { |
89 base::RunLoop run_loop; | 89 base::RunLoop run_loop; |
90 run_loop.Run(); | 90 run_loop.Run(); |
91 return true; | 91 return true; |
92 } | 92 } |
93 | 93 |
94 } // namespace examples | 94 } // namespace examples |
95 } // namespace views | 95 } // namespace views |
OLD | NEW |