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 "chrome/browser/ui/views/extensions/native_app_window_views.h" | 5 #include "chrome/browser/ui/views/extensions/native_app_window_views.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
10 #include "base/threading/sequenced_worker_pool.h" | 10 #include "base/threading/sequenced_worker_pool.h" |
11 #include "chrome/app/chrome_command_ids.h" | 11 #include "chrome/app/chrome_command_ids.h" |
12 #include "chrome/browser/extensions/extension_host.h" | 12 #include "chrome/browser/extensions/extension_host.h" |
13 #include "chrome/browser/favicon/favicon_tab_helper.h" | 13 #include "chrome/browser/favicon/favicon_tab_helper.h" |
14 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
15 #include "chrome/browser/ui/views/extensions/extension_keybinding_registry_views
.h" | 15 #include "chrome/browser/ui/views/extensions/extension_keybinding_registry_views
.h" |
16 #include "chrome/browser/ui/views/extensions/shell_window_frame_view.h" | 16 #include "chrome/browser/ui/views/extensions/shell_window_frame_view.h" |
17 #include "chrome/common/chrome_switches.h" | 17 #include "chrome/common/chrome_switches.h" |
18 #include "chrome/common/extensions/extension.h" | 18 #include "chrome/common/extensions/extension.h" |
19 #include "content/public/browser/browser_thread.h" | 19 #include "content/public/browser/browser_thread.h" |
20 #include "content/public/browser/render_view_host.h" | 20 #include "content/public/browser/render_view_host.h" |
21 #include "content/public/browser/render_widget_host_view.h" | 21 #include "content/public/browser/render_widget_host_view.h" |
22 #include "content/public/browser/web_contents.h" | 22 #include "content/public/browser/web_contents.h" |
23 #include "content/public/browser/web_contents_view.h" | 23 #include "content/public/browser/web_contents_view.h" |
24 #include "extensions/common/draggable_region.h" | 24 #include "extensions/common/draggable_region.h" |
25 #include "ui/views/controls/webview/webview.h" | 25 #include "ui/views/controls/webview/webview.h" |
26 #include "ui/views/widget/widget.h" | 26 #include "ui/views/widget/widget.h" |
27 #include "ui/views/window/non_client_view.h" | 27 #include "ui/views/window/non_client_view.h" |
28 | 28 |
29 #if defined(OS_WIN) | 29 #if defined(OS_WIN) |
30 #include "base/utf_string_conversions.h" | 30 #include "base/strings/utf_string_conversions.h" |
31 #include "chrome/browser/ui/web_applications/web_app_ui.h" | 31 #include "chrome/browser/ui/web_applications/web_app_ui.h" |
32 #include "chrome/browser/web_applications/web_app.h" | 32 #include "chrome/browser/web_applications/web_app.h" |
33 #include "ui/base/win/shell.h" | 33 #include "ui/base/win/shell.h" |
34 #include "ui/views/win/hwnd_util.h" | 34 #include "ui/views/win/hwnd_util.h" |
35 #endif | 35 #endif |
36 | 36 |
37 #if defined(USE_ASH) | 37 #if defined(USE_ASH) |
38 #include "ash/screen_ash.h" | 38 #include "ash/screen_ash.h" |
39 #include "ash/shell.h" | 39 #include "ash/shell.h" |
40 #include "ash/wm/custom_frame_view_ash.h" | 40 #include "ash/wm/custom_frame_view_ash.h" |
(...skipping 704 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
745 } | 745 } |
746 | 746 |
747 //------------------------------------------------------------------------------ | 747 //------------------------------------------------------------------------------ |
748 // NativeAppWindow::Create | 748 // NativeAppWindow::Create |
749 | 749 |
750 // static | 750 // static |
751 NativeAppWindow* NativeAppWindow::Create( | 751 NativeAppWindow* NativeAppWindow::Create( |
752 ShellWindow* shell_window, const ShellWindow::CreateParams& params) { | 752 ShellWindow* shell_window, const ShellWindow::CreateParams& params) { |
753 return new NativeAppWindowViews(shell_window, params); | 753 return new NativeAppWindowViews(shell_window, params); |
754 } | 754 } |
OLD | NEW |