Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / metro_utils / metro_chrome_win.h
blobdadbb8e068998780a0fd94e463612bb792783f5e
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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_METRO_UTILS_METRO_CHROME_WIN_H_
6 #define CHROME_BROWSER_METRO_UTILS_METRO_CHROME_WIN_H_
8 #include "chrome/browser/ui/host_desktop.h"
10 namespace chrome {
12 // Using IApplicationActivationManager::ActivateApplication, activate the
13 // Chrome window running in Metro mode. Returns true if the activation was
14 // successful. Note that this can not be called nested in another COM
15 // SendMessage (results in error RPC_E_CANTCALLOUT_ININPUTSYNCCALL), so use
16 // PostTask to handle that case.
17 bool ActivateMetroChrome();
19 enum Win8Environment {
20 WIN_8_ENVIRONMENT_METRO,
21 WIN_8_ENVIRONMENT_DESKTOP,
22 WIN_8_ENVIRONMENT_METRO_AURA,
23 WIN_8_ENVIRONMENT_DESKTOP_AURA,
24 WIN_8_ENVIRONMENT_MAX
27 Win8Environment GetWin8Environment(HostDesktopType desktop);
29 } // namespace chrome
31 #endif // CHROME_BROWSER_METRO_UTILS_METRO_CHROME_WIN_H_