| 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" | 
| (...skipping 16 matching lines...) Expand all  Loading... | 
|   27 #include "chrome/browser/ui/host_desktop.h" |   27 #include "chrome/browser/ui/host_desktop.h" | 
|   28 #include "chrome/browser/ui/tabs/tab_strip_model.h" |   28 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 
|   29 #include "chrome/common/env_vars.h" |   29 #include "chrome/common/env_vars.h" | 
|   30 #include "components/search_engines/util.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/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(chrome::HOST_DESKTOP_TYPE_ASH); |   45       BrowserList::GetInstance(chrome::HOST_DESKTOP_TYPE_ASH); | 
|   46   if (browser_list) { |   46   if (browser_list) { | 
|   47     for (BrowserList::const_iterator i = browser_list->begin(); |   47     for (BrowserList::const_iterator i = browser_list->begin(); | 
| (...skipping 113 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 |