| OLD | NEW |
| 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 #ifndef BASE_WIN_METRO_H_ | 5 #ifndef BASE_WIN_METRO_H_ |
| 6 #define BASE_WIN_METRO_H_ | 6 #define BASE_WIN_METRO_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <windows.h> | 9 #include <windows.h> |
| 10 | 10 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 CLOSEDBYUSER, | 34 CLOSEDBYUSER, |
| 35 LASTEXECUTIONSTATE, | 35 LASTEXECUTIONSTATE, |
| 36 }; | 36 }; |
| 37 | 37 |
| 38 // Contains information about the currently displayed tab in metro mode. | 38 // Contains information about the currently displayed tab in metro mode. |
| 39 struct CurrentTabInfo { | 39 struct CurrentTabInfo { |
| 40 wchar_t* title; | 40 wchar_t* title; |
| 41 wchar_t* url; | 41 wchar_t* url; |
| 42 }; | 42 }; |
| 43 | 43 |
| 44 // The types of exports in metro_driver.dll. |
| 45 typedef HRESULT (*ActivateApplicationFn)(const wchar_t*); |
| 46 |
| 47 // The names of the exports in metro_driver.dll. |
| 48 BASE_EXPORT extern const char kActivateApplication[]; |
| 49 |
| 44 // Returns the handle to the metro dll loaded in the process. A NULL return | 50 // Returns the handle to the metro dll loaded in the process. A NULL return |
| 45 // indicates that the metro dll was not loaded in the process. | 51 // indicates that the metro dll was not loaded in the process. |
| 46 BASE_EXPORT HMODULE GetMetroModule(); | 52 BASE_EXPORT HMODULE GetMetroModule(); |
| 47 | 53 |
| 48 // Allocates and returns the destination string via the LocalAlloc API after | 54 // Allocates and returns the destination string via the LocalAlloc API after |
| 49 // copying the src to it. | 55 // copying the src to it. |
| 50 BASE_EXPORT wchar_t* LocalAllocAndCopyString(const string16& src); | 56 BASE_EXPORT wchar_t* LocalAllocAndCopyString(const string16& src); |
| 51 | 57 |
| 52 } // namespace win | 58 } // namespace win |
| 53 } // namespace base | 59 } // namespace base |
| 54 | 60 |
| 55 #endif // BASE_WIN_METRO_H_ | 61 #endif // BASE_WIN_METRO_H_ |
| OLD | NEW |