mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2024-12-12 09:37:37 +01:00
84f3ff2afd
As part of introducing the Chrome runtime we now need to distinguish between the classes that implement the current CEF runtime and the classes the implement the shared CEF library/runtime structure and public API. We choose the name Alloy for the current CEF runtime because it describes a combination of Chrome and other elements. Shared CEF library/runtime classes will continue to use the Cef prefix. Classes that implement the Alloy or Chrome runtime will use the Alloy or Chrome prefixes respectively. Classes that extend an existing Chrome-prefixed class will add the Cef or Alloy suffix, thereby following the existing naming pattern of Chrome-derived classes. This change applies the new naming pattern to an initial set of runtime-related classes. Additional classes/files will be renamed and moved as the Chrome runtime implementation progresses.
28 lines
723 B
C++
28 lines
723 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 <Objbase.h>
|
|
#include <commctrl.h>
|
|
#include <windows.h>
|
|
|
|
#include "libcef/browser/alloy/alloy_browser_main.h"
|
|
|
|
#include "base/logging.h"
|
|
|
|
void AlloyBrowserMainParts::PlatformInitialize() {
|
|
HRESULT res;
|
|
|
|
// Initialize common controls.
|
|
res = CoInitialize(nullptr);
|
|
DCHECK(SUCCEEDED(res));
|
|
INITCOMMONCONTROLSEX InitCtrlEx;
|
|
InitCtrlEx.dwSize = sizeof(INITCOMMONCONTROLSEX);
|
|
InitCtrlEx.dwICC = ICC_STANDARD_CLASSES;
|
|
InitCommonControlsEx(&InitCtrlEx);
|
|
|
|
// Start COM stuff.
|
|
res = OleInitialize(nullptr);
|
|
DCHECK(SUCCEEDED(res));
|
|
}
|