mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2024-12-11 17:15:57 +01:00
3000bc8748
This change adds Chrome runtime support on Windows and Linux for creating a browser parented to a native window supplied by the client application. Expected API usage and window behavior is similar to what already exists with the Alloy runtime. The parent window handle should be specified by using CefWindowInfo::SetAsChild in combination with the CefBrowserHost::CreateBrowser and CefLifeSpanHandler::OnBeforePopup callbacks. The previously existing behavior of creating a fully-featured Chrome browser window when empty CefWindowInfo is used with CreateBrowser remains unchanged and Views is still the preferred API for creating top-level Chrome windows with custom styling (e.g. title bar only, frameless, etc). The cefclient Popup Window test with a native parent window continues to crash on Linux with both the Alloy and Chrome runtimes (see issue #3165). Also adds Chrome runtime support for CefDisplayHandler::OnCursorChange. To test: - Run `cefclient --enable-chrome-runtime [--use-views]` for the default (and previously existing) Views-based behavior. - Run `cefclient --enable-chrome-runtime --use-native` for the new native parent window behavior. - Run `cefclient --enable-chrome-runtime --use-native --no-activate` and the window will not be activated (take input focus) on launch (Windows only). - Run `cefclient --enable-chrome-runtime [--use-views|--use-native] --mouse-cursor-change-disabled` and the mouse cursor will not change on mouseover of DOM elements.
51 lines
1.7 KiB
C++
51 lines
1.7 KiB
C++
// Copyright (c) 2013 The Chromium Embedded Framework Authors. All rights
|
|
// reserved. Use of this source code is governed by a BSD-style license that
|
|
// can be found in the LICENSE file.
|
|
|
|
// Defines all of the command line switches used by cefclient.
|
|
|
|
#ifndef CEF_TESTS_SHARED_SHARED_COMMON_SWITCHES_H_
|
|
#define CEF_TESTS_SHARED_SHARED_COMMON_SWITCHES_H_
|
|
#pragma once
|
|
|
|
namespace client {
|
|
namespace switches {
|
|
|
|
extern const char kMultiThreadedMessageLoop[];
|
|
extern const char kExternalMessagePump[];
|
|
extern const char kCachePath[];
|
|
extern const char kUrl[];
|
|
extern const char kOffScreenRenderingEnabled[];
|
|
extern const char kOffScreenFrameRate[];
|
|
extern const char kTransparentPaintingEnabled[];
|
|
extern const char kShowUpdateRect[];
|
|
extern const char kSharedTextureEnabled[];
|
|
extern const char kExternalBeginFrameEnabled[];
|
|
extern const char kMouseCursorChangeDisabled[];
|
|
extern const char kOffline[];
|
|
extern const char kRequestContextPerBrowser[];
|
|
extern const char kRequestContextSharedCache[];
|
|
extern const char kBackgroundColor[];
|
|
extern const char kEnableGPU[];
|
|
extern const char kFilterURL[];
|
|
extern const char kUseViews[];
|
|
extern const char kUseNative[];
|
|
extern const char kHideFrame[];
|
|
extern const char kHideControls[];
|
|
extern const char kHideOverlays[];
|
|
extern const char kAlwaysOnTop[];
|
|
extern const char kHideTopMenu[];
|
|
extern const char kSslClientCertificate[];
|
|
extern const char kCRLSetsPath[];
|
|
extern const char kLoadExtension[];
|
|
extern const char kNoActivate[];
|
|
extern const char kEnableChromeRuntime[];
|
|
extern const char kShowChromeToolbar[];
|
|
extern const char kInitialShowState[];
|
|
extern const char kHideChromeStatusBubble[];
|
|
|
|
} // namespace switches
|
|
} // namespace client
|
|
|
|
#endif // CEF_TESTS_SHARED_SHARED_COMMON_SWITCHES_H_
|