Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(349)

Side by Side Diff: win8/metro_driver/chrome_app_view_ash.cc

Issue 659883002: Enable hidpi on Linux, refactor a bit on Windows to share Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: constants Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <windows.foundation.h> 10 #include <windows.foundation.h>
11 11
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/command_line.h" 13 #include "base/command_line.h"
14 #include "base/files/file_path.h" 14 #include "base/files/file_path.h"
15 #include "base/message_loop/message_loop.h" 15 #include "base/message_loop/message_loop.h"
16 #include "base/path_service.h" 16 #include "base/path_service.h"
17 #include "base/win/metro.h" 17 #include "base/win/metro.h"
18 #include "base/win/win_util.h" 18 #include "base/win/win_util.h"
19 #include "base/win/windows_version.h" 19 #include "base/win/windows_version.h"
20 #include "chrome/common/chrome_switches.h" 20 #include "chrome/common/chrome_switches.h"
21 #include "ipc/ipc_channel.h" 21 #include "ipc/ipc_channel.h"
22 #include "ipc/ipc_channel_proxy.h" 22 #include "ipc/ipc_channel_proxy.h"
23 #include "ipc/ipc_sender.h" 23 #include "ipc/ipc_sender.h"
24 #include "ui/events/gesture_detection/motion_event.h" 24 #include "ui/events/gesture_detection/motion_event.h"
25 #include "ui/gfx/dpi.h"
25 #include "ui/gfx/geometry/point_conversions.h" 26 #include "ui/gfx/geometry/point_conversions.h"
26 #include "ui/gfx/win/dpi.h"
27 #include "ui/metro_viewer/metro_viewer_messages.h" 27 #include "ui/metro_viewer/metro_viewer_messages.h"
28 #include "win8/metro_driver/file_picker_ash.h" 28 #include "win8/metro_driver/file_picker_ash.h"
29 #include "win8/metro_driver/ime/ime_popup_monitor.h" 29 #include "win8/metro_driver/ime/ime_popup_monitor.h"
30 #include "win8/metro_driver/ime/input_source.h" 30 #include "win8/metro_driver/ime/input_source.h"
31 #include "win8/metro_driver/ime/text_service.h" 31 #include "win8/metro_driver/ime/text_service.h"
32 #include "win8/metro_driver/metro_driver.h" 32 #include "win8/metro_driver/metro_driver.h"
33 #include "win8/metro_driver/winrt_utils.h" 33 #include "win8/metro_driver/winrt_utils.h"
34 #include "win8/viewer/metro_viewer_constants.h" 34 #include "win8/viewer/metro_viewer_constants.h"
35 35
36 typedef winfoundtn::ITypedEventHandler< 36 typedef winfoundtn::ITypedEventHandler<
(...skipping 1434 matching lines...) Expand 10 before | Expand all | Expand 10 after
1471 mswr::ComPtr<winapp::Core::ICoreApplicationExit> app_exit; 1471 mswr::ComPtr<winapp::Core::ICoreApplicationExit> app_exit;
1472 CheckHR(core_app.As(&app_exit)); 1472 CheckHR(core_app.As(&app_exit));
1473 globals.app_exit = app_exit.Detach(); 1473 globals.app_exit = app_exit.Detach();
1474 } 1474 }
1475 1475
1476 IFACEMETHODIMP 1476 IFACEMETHODIMP
1477 ChromeAppViewFactory::CreateView(winapp::Core::IFrameworkView** view) { 1477 ChromeAppViewFactory::CreateView(winapp::Core::IFrameworkView** view) {
1478 *view = mswr::Make<ChromeAppViewAsh>().Detach(); 1478 *view = mswr::Make<ChromeAppViewAsh>().Detach();
1479 return (*view) ? S_OK : E_OUTOFMEMORY; 1479 return (*view) ? S_OK : E_OUTOFMEMORY;
1480 } 1480 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698