| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_utils/metro_chrome_win.h" | 5 #include "chrome/browser/metro_utils/metro_chrome_win.h" |
| 6 | 6 |
| 7 #include <windows.h> | 7 #include <windows.h> |
| 8 #include <shobjidl.h> | 8 #include <shobjidl.h> |
| 9 | 9 |
| 10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 &pid); | 54 &pid); |
| 55 if (FAILED(hr)) { | 55 if (FAILED(hr)) { |
| 56 NOTREACHED() << "Failed to activate metro chrome. Error: " | 56 NOTREACHED() << "Failed to activate metro chrome. Error: " |
| 57 << std::showbase << std::hex << hr; | 57 << std::showbase << std::hex << hr; |
| 58 return false; | 58 return false; |
| 59 } | 59 } |
| 60 | 60 |
| 61 return true; | 61 return true; |
| 62 } | 62 } |
| 63 | 63 |
| 64 Win8Environment GetWin8Environment(HostDesktopType desktop) { | 64 Win8Environment GetWin8Environment(ui::HostDesktopType desktop) { |
| 65 if (desktop == chrome::HOST_DESKTOP_TYPE_ASH) | 65 if (desktop == ui::HOST_DESKTOP_TYPE_ASH) |
| 66 return WIN_8_ENVIRONMENT_METRO_AURA; | 66 return WIN_8_ENVIRONMENT_METRO_AURA; |
| 67 else | 67 else |
| 68 return WIN_8_ENVIRONMENT_DESKTOP_AURA; | 68 return WIN_8_ENVIRONMENT_DESKTOP_AURA; |
| 69 } | 69 } |
| 70 | 70 |
| 71 | 71 |
| 72 } // namespace chrome | 72 } // namespace chrome |
| OLD | NEW |