| 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 "ash/shell/content_client/shell_browser_main_parts.h" | 5 #include "ash/shell/content_client/shell_browser_main_parts.h" |
| 6 | 6 |
| 7 #include "ash/shell/shell_delegate_impl.h" | 7 #include "ash/shell/shell_delegate_impl.h" |
| 8 #include "ash/shell/window_watcher.h" | 8 #include "ash/shell/window_watcher.h" |
| 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/i18n/icu_util.h" | 11 #include "base/i18n/icu_util.h" |
| 12 #include "base/message_loop.h" | 12 #include "base/message_loop.h" |
| 13 #include "base/string_number_conversions.h" | 13 #include "base/string_number_conversions.h" |
| 14 #include "base/threading/thread.h" | 14 #include "base/threading/thread.h" |
| 15 #include "base/threading/thread_restrictions.h" | 15 #include "base/threading/thread_restrictions.h" |
| 16 #include "content/public/common/content_switches.h" | 16 #include "content/public/common/content_switches.h" |
| 17 #include "content/shell/shell.h" | 17 #include "content/shell/shell.h" |
| 18 #include "content/shell/shell_browser_context.h" | 18 #include "content/shell/shell_browser_context.h" |
| 19 #include "content/shell/shell_devtools_delegate.h" | 19 #include "content/shell/shell_devtools_delegate.h" |
| 20 #include "content/shell/shell_switches.h" | 20 #include "content/shell/shell_switches.h" |
| 21 #include "googleurl/src/gurl.h" | 21 #include "googleurl/src/gurl.h" |
| 22 #include "net/base/net_module.h" | 22 #include "net/base/net_module.h" |
| 23 #include "ui/aura/client/stacking_client.h" | 23 #include "ui/aura/client/stacking_client.h" |
| 24 #include "ui/aura/env.h" | 24 #include "ui/aura/env.h" |
| 25 #include "ui/aura/root_window.h" | 25 #include "ui/aura/root_window.h" |
| 26 #include "ui/aura/window.h" | 26 #include "ui/aura/window.h" |
| 27 #include "ui/base/clipboard/clipboard.h" | 27 #include "ui/base/clipboard/clipboard.h" |
| 28 #include "ui/base/resource/resource_bundle.h" | 28 #include "ui/base/resource/resource_bundle.h" |
| 29 #include "ui/base/ui_base_paths.h" | 29 #include "ui/base/ui_base_paths.h" |
| 30 #include "ui/gfx/compositor/compositor.h" | 30 #include "ui/compositor/compositor.h" |
| 31 #include "ui/gfx/compositor/test/compositor_test_support.h" | 31 #include "ui/compositor/test/compositor_test_support.h" |
| 32 #include "ui/views/focus/accelerator_handler.h" |
| 32 #include "ui/views/test/test_views_delegate.h" | 33 #include "ui/views/test/test_views_delegate.h" |
| 33 #include "ui/views/focus/accelerator_handler.h" | |
| 34 | 34 |
| 35 namespace ash { | 35 namespace ash { |
| 36 namespace shell { | 36 namespace shell { |
| 37 void InitWindowTypeLauncher(); | 37 void InitWindowTypeLauncher(); |
| 38 | 38 |
| 39 namespace { | 39 namespace { |
| 40 class ShellViewsDelegate : public views::TestViewsDelegate { | 40 class ShellViewsDelegate : public views::TestViewsDelegate { |
| 41 public: | 41 public: |
| 42 ShellViewsDelegate() {} | 42 ShellViewsDelegate() {} |
| 43 virtual ~ShellViewsDelegate() {} | 43 virtual ~ShellViewsDelegate() {} |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 } | 111 } |
| 112 | 112 |
| 113 ui::Clipboard* ShellBrowserMainParts::GetClipboard() { | 113 ui::Clipboard* ShellBrowserMainParts::GetClipboard() { |
| 114 if (!clipboard_.get()) | 114 if (!clipboard_.get()) |
| 115 clipboard_.reset(new ui::Clipboard()); | 115 clipboard_.reset(new ui::Clipboard()); |
| 116 return clipboard_.get(); | 116 return clipboard_.get(); |
| 117 } | 117 } |
| 118 | 118 |
| 119 } // namespace shell | 119 } // namespace shell |
| 120 } // namespace ash | 120 } // namespace ash |
| OLD | NEW |