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

Side by Side Diff: chrome/browser/metro_viewer/chrome_metro_viewer_process_host_aurawin.cc

Issue 1336993002: Straighten up includes of host_desktop.h/host_desktop_type.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@host_desktop_type
Patch Set: Build fixes for Windows and Mac Created 5 years, 3 months 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
« no previous file with comments | « chrome/browser/metro_utils/metro_chrome_win.h ('k') | chrome/browser/platform_util_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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/metro_viewer/chrome_metro_viewer_process_host_aurawin.h " 5 #include "chrome/browser/metro_viewer/chrome_metro_viewer_process_host_aurawin.h "
6 6
7 #include "ash/display/display_info.h" 7 #include "ash/display/display_info.h"
8 #include "ash/display/display_manager.h" 8 #include "ash/display/display_manager.h"
9 #include "ash/host/ash_remote_window_tree_host_win.h" 9 #include "ash/host/ash_remote_window_tree_host_win.h"
10 #include "ash/shell.h" 10 #include "ash/shell.h"
11 #include "ash/wm/window_positioner.h" 11 #include "ash/wm/window_positioner.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/strings/stringprintf.h" 14 #include "base/strings/stringprintf.h"
15 #include "chrome/browser/browser_process.h" 15 #include "chrome/browser/browser_process.h"
16 #include "chrome/browser/browser_process_platform_part_aurawin.h" 16 #include "chrome/browser/browser_process_platform_part_aurawin.h"
17 #include "chrome/browser/browser_shutdown.h" 17 #include "chrome/browser/browser_shutdown.h"
18 #include "chrome/browser/chrome_notification_types.h" 18 #include "chrome/browser/chrome_notification_types.h"
19 #include "chrome/browser/lifetime/application_lifetime.h" 19 #include "chrome/browser/lifetime/application_lifetime.h"
20 #include "chrome/browser/profiles/profile_manager.h" 20 #include "chrome/browser/profiles/profile_manager.h"
21 #include "chrome/browser/search_engines/template_url_service_factory.h" 21 #include "chrome/browser/search_engines/template_url_service_factory.h"
22 #include "chrome/browser/ui/ash/ash_init.h" 22 #include "chrome/browser/ui/ash/ash_init.h"
23 #include "chrome/browser/ui/browser.h" 23 #include "chrome/browser/ui/browser.h"
24 #include "chrome/browser/ui/browser_list.h" 24 #include "chrome/browser/ui/browser_list.h"
25 #include "chrome/browser/ui/browser_navigator.h" 25 #include "chrome/browser/ui/browser_navigator.h"
26 #include "chrome/browser/ui/browser_window.h" 26 #include "chrome/browser/ui/browser_window.h"
27 #include "chrome/browser/ui/host_desktop.h"
28 #include "chrome/browser/ui/tabs/tab_strip_model.h" 27 #include "chrome/browser/ui/tabs/tab_strip_model.h"
29 #include "chrome/common/env_vars.h" 28 #include "chrome/common/env_vars.h"
30 #include "components/search_engines/util.h" 29 #include "components/search_engines/util.h"
31 #include "content/public/browser/browser_thread.h" 30 #include "content/public/browser/browser_thread.h"
32 #include "content/public/browser/gpu_data_manager.h" 31 #include "content/public/browser/gpu_data_manager.h"
33 #include "content/public/browser/notification_service.h" 32 #include "content/public/browser/notification_service.h"
34 #include "content/public/browser/page_navigator.h" 33 #include "content/public/browser/page_navigator.h"
35 #include "content/public/browser/web_contents.h" 34 #include "content/public/browser/web_contents.h"
36 #include "ui/aura/remote_window_tree_host_win.h" 35 #include "ui/aura/remote_window_tree_host_win.h"
36 #include "ui/gfx/host_desktop_type.h"
37 #include "ui/gfx/win/dpi.h" 37 #include "ui/gfx/win/dpi.h"
38 #include "ui/metro_viewer/metro_viewer_messages.h" 38 #include "ui/metro_viewer/metro_viewer_messages.h"
39 #include "url/gurl.h" 39 #include "url/gurl.h"
40 40
41 namespace { 41 namespace {
42 42
43 void CloseOpenAshBrowsers() { 43 void CloseOpenAshBrowsers() {
44 BrowserList* browser_list = 44 BrowserList* browser_list =
45 BrowserList::GetInstance(ui::HOST_DESKTOP_TYPE_ASH); 45 BrowserList::GetInstance(ui::HOST_DESKTOP_TYPE_ASH);
46 if (browser_list) { 46 if (browser_list) {
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 void ChromeMetroViewerProcessHost::OnWindowSizeChanged(uint32 width, 169 void ChromeMetroViewerProcessHost::OnWindowSizeChanged(uint32 width,
170 uint32 height) { 170 uint32 height) {
171 std::vector<ash::DisplayInfo> info_list; 171 std::vector<ash::DisplayInfo> info_list;
172 info_list.push_back(ash::DisplayInfo::CreateFromSpec( 172 info_list.push_back(ash::DisplayInfo::CreateFromSpec(
173 base::StringPrintf("%dx%d*%f", width, height, gfx::GetDPIScale()))); 173 base::StringPrintf("%dx%d*%f", width, height, gfx::GetDPIScale())));
174 ash::Shell::GetInstance()->display_manager()->OnNativeDisplaysChanged( 174 ash::Shell::GetInstance()->display_manager()->OnNativeDisplaysChanged(
175 info_list); 175 info_list);
176 aura::RemoteWindowTreeHostWin::Instance()->HandleWindowSizeChanged(width, 176 aura::RemoteWindowTreeHostWin::Instance()->HandleWindowSizeChanged(width,
177 height); 177 height);
178 } 178 }
OLDNEW
« no previous file with comments | « chrome/browser/metro_utils/metro_chrome_win.h ('k') | chrome/browser/platform_util_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698