| OLD | NEW |
| 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/search_engines/util.h" |
| 22 #include "chrome/browser/ui/ash/ash_init.h" | 23 #include "chrome/browser/ui/ash/ash_init.h" |
| 23 #include "chrome/browser/ui/browser.h" | 24 #include "chrome/browser/ui/browser.h" |
| 24 #include "chrome/browser/ui/browser_list.h" | 25 #include "chrome/browser/ui/browser_list.h" |
| 25 #include "chrome/browser/ui/browser_navigator.h" | 26 #include "chrome/browser/ui/browser_navigator.h" |
| 26 #include "chrome/browser/ui/browser_window.h" | 27 #include "chrome/browser/ui/browser_window.h" |
| 27 #include "chrome/browser/ui/host_desktop.h" | 28 #include "chrome/browser/ui/host_desktop.h" |
| 28 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 29 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 29 #include "chrome/common/env_vars.h" | 30 #include "chrome/common/env_vars.h" |
| 30 #include "components/search_engines/util.h" | |
| 31 #include "content/public/browser/browser_thread.h" | 31 #include "content/public/browser/browser_thread.h" |
| 32 #include "content/public/browser/gpu_data_manager.h" | 32 #include "content/public/browser/gpu_data_manager.h" |
| 33 #include "content/public/browser/notification_service.h" | 33 #include "content/public/browser/notification_service.h" |
| 34 #include "content/public/browser/page_navigator.h" | 34 #include "content/public/browser/page_navigator.h" |
| 35 #include "content/public/browser/web_contents.h" | 35 #include "content/public/browser/web_contents.h" |
| 36 #include "ui/aura/remote_window_tree_host_win.h" | 36 #include "ui/aura/remote_window_tree_host_win.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 |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 void ChromeMetroViewerProcessHost::OnWindowSizeChanged(uint32 width, | 161 void ChromeMetroViewerProcessHost::OnWindowSizeChanged(uint32 width, |
| 162 uint32 height) { | 162 uint32 height) { |
| 163 std::vector<ash::DisplayInfo> info_list; | 163 std::vector<ash::DisplayInfo> info_list; |
| 164 info_list.push_back(ash::DisplayInfo::CreateFromSpec( | 164 info_list.push_back(ash::DisplayInfo::CreateFromSpec( |
| 165 base::StringPrintf("%dx%d*%f", width, height, gfx::GetDPIScale()))); | 165 base::StringPrintf("%dx%d*%f", width, height, gfx::GetDPIScale()))); |
| 166 ash::Shell::GetInstance()->display_manager()->OnNativeDisplaysChanged( | 166 ash::Shell::GetInstance()->display_manager()->OnNativeDisplaysChanged( |
| 167 info_list); | 167 info_list); |
| 168 aura::RemoteWindowTreeHostWin::Instance()->HandleWindowSizeChanged(width, | 168 aura::RemoteWindowTreeHostWin::Instance()->HandleWindowSizeChanged(width, |
| 169 height); | 169 height); |
| 170 } | 170 } |
| OLD | NEW |