| 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 "win8/metro_driver/stdafx.h" | 5 #include "win8/metro_driver/stdafx.h" |
| 6 #include "win8/metro_driver/chrome_app_view_ash.h" | 6 #include "win8/metro_driver/chrome_app_view_ash.h" |
| 7 | 7 |
| 8 #include <corewindow.h> | 8 #include <corewindow.h> |
| 9 #include <shellapi.h> | 9 #include <shellapi.h> |
| 10 #include <stdint.h> | 10 #include <stdint.h> |
| 11 #include <windows.foundation.h> | 11 #include <windows.foundation.h> |
| 12 | 12 |
| 13 #include "base/bind.h" | 13 #include "base/bind.h" |
| 14 #include "base/command_line.h" | 14 #include "base/command_line.h" |
| 15 #include "base/files/file_path.h" | 15 #include "base/files/file_path.h" |
| 16 #include "base/macros.h" | 16 #include "base/macros.h" |
| 17 #include "base/message_loop/message_loop.h" | 17 #include "base/message_loop/message_loop.h" |
| 18 #include "base/path_service.h" | 18 #include "base/path_service.h" |
| 19 #include "base/single_thread_task_runner.h" | 19 #include "base/single_thread_task_runner.h" |
| 20 #include "base/win/metro.h" | |
| 21 #include "base/win/windows_version.h" | 20 #include "base/win/windows_version.h" |
| 22 #include "chrome/common/chrome_switches.h" | 21 #include "chrome/common/chrome_switches.h" |
| 23 #include "ipc/ipc_channel.h" | 22 #include "ipc/ipc_channel.h" |
| 24 #include "ipc/ipc_channel_proxy.h" | 23 #include "ipc/ipc_channel_proxy.h" |
| 25 #include "ipc/ipc_sender.h" | 24 #include "ipc/ipc_sender.h" |
| 26 #include "ui/events/gesture_detection/motion_event.h" | 25 #include "ui/events/gesture_detection/motion_event.h" |
| 27 #include "ui/events/win/system_event_state_lookup.h" | 26 #include "ui/events/win/system_event_state_lookup.h" |
| 28 #include "ui/gfx/geometry/point_conversions.h" | 27 #include "ui/gfx/geometry/point_conversions.h" |
| 29 #include "ui/gfx/win/dpi.h" | 28 #include "ui/gfx/win/dpi.h" |
| 30 #include "ui/metro_viewer/metro_viewer_messages.h" | 29 #include "ui/metro_viewer/metro_viewer_messages.h" |
| (...skipping 1425 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1456 mswr::ComPtr<winapp::Core::ICoreApplicationExit> app_exit; | 1455 mswr::ComPtr<winapp::Core::ICoreApplicationExit> app_exit; |
| 1457 CheckHR(core_app.As(&app_exit)); | 1456 CheckHR(core_app.As(&app_exit)); |
| 1458 globals.app_exit = app_exit.Detach(); | 1457 globals.app_exit = app_exit.Detach(); |
| 1459 } | 1458 } |
| 1460 | 1459 |
| 1461 IFACEMETHODIMP | 1460 IFACEMETHODIMP |
| 1462 ChromeAppViewFactory::CreateView(winapp::Core::IFrameworkView** view) { | 1461 ChromeAppViewFactory::CreateView(winapp::Core::IFrameworkView** view) { |
| 1463 *view = mswr::Make<ChromeAppViewAsh>().Detach(); | 1462 *view = mswr::Make<ChromeAppViewAsh>().Detach(); |
| 1464 return (*view) ? S_OK : E_OUTOFMEMORY; | 1463 return (*view) ? S_OK : E_OUTOFMEMORY; |
| 1465 } | 1464 } |
| OLD | NEW |