mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-02 20:26:59 +01:00
e7ddc933c9
- Remove |accept_lang| parameter from CefJSDialogHandler::OnJSDialog and CefFormatUrlForSecurityDisplay (see https://crbug.com/336973#c36). - Remove remaining NPAPI-related code including functions from cef_web_plugin.h (see https://crbug.com/493212#c55). - Mac: 10.7+ deployment target is now required for client applications. - Mac: Remove CefBrowserHost::SetWindowVisibility (issue #1375). No replacement is required for windowed rendering. Use WasHidden for off-screen rendering. - Windows: Visual Studio 2015 Update 2 is now required when building CEF/Chromium.
33 lines
953 B
C++
33 lines
953 B
C++
// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#include <windows.h>
|
|
#include <commctrl.h>
|
|
#include <Objbase.h>
|
|
|
|
#include "libcef/browser/browser_main.h"
|
|
|
|
#include "chrome/common/chrome_utility_messages.h"
|
|
#include "content/public/browser/utility_process_host.h"
|
|
#include "content/public/browser/utility_process_host_client.h"
|
|
#include "grit/cef_strings.h"
|
|
#include "ui/base/l10n/l10n_util.h"
|
|
#include "ui/gfx/win/direct_write.h"
|
|
|
|
void CefBrowserMainParts::PlatformInitialize() {
|
|
HRESULT res;
|
|
|
|
// Initialize common controls.
|
|
res = CoInitialize(NULL);
|
|
DCHECK(SUCCEEDED(res));
|
|
INITCOMMONCONTROLSEX InitCtrlEx;
|
|
InitCtrlEx.dwSize = sizeof(INITCOMMONCONTROLSEX);
|
|
InitCtrlEx.dwICC = ICC_STANDARD_CLASSES;
|
|
InitCommonControlsEx(&InitCtrlEx);
|
|
|
|
// Start COM stuff.
|
|
res = OleInitialize(NULL);
|
|
DCHECK(SUCCEEDED(res));
|
|
}
|