You've already forked CEF4Delphi
mirror of
https://github.com/salvadordf/CEF4Delphi.git
synced 2025-11-23 21:34:53 +02:00
reorganization of folders
This commit is contained in:
129
source/uCEFChromiumOptions.pas
Normal file
129
source/uCEFChromiumOptions.pas
Normal file
@@ -0,0 +1,129 @@
|
||||
// ************************************************************************
|
||||
// ***************************** CEF4Delphi *******************************
|
||||
// ************************************************************************
|
||||
//
|
||||
// CEF4Delphi is based on DCEF3 which uses CEF3 to embed a chromium-based
|
||||
// browser in Delphi applications.
|
||||
//
|
||||
// The original license of DCEF3 still applies to CEF4Delphi.
|
||||
//
|
||||
// For more information about CEF4Delphi visit :
|
||||
// https://www.briskbard.com/index.php?lang=en&pageid=cef
|
||||
//
|
||||
// Copyright � 2017 Salvador D�az Fau. All rights reserved.
|
||||
//
|
||||
// ************************************************************************
|
||||
// ************ vvvv Original license and comments below vvvv *************
|
||||
// ************************************************************************
|
||||
(*
|
||||
* Delphi Chromium Embedded 3
|
||||
*
|
||||
* Usage allowed under the restrictions of the Lesser GNU General Public License
|
||||
* or alternatively the restrictions of the Mozilla Public License 1.1
|
||||
*
|
||||
* Software distributed under the License is distributed on an "AS IS" basis,
|
||||
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
|
||||
* the specific language governing rights and limitations under the License.
|
||||
*
|
||||
* Unit owner : Henri Gourvest <hgourvest@gmail.com>
|
||||
* Web site : http://www.progdigy.com
|
||||
* Repository : http://code.google.com/p/delphichromiumembedded/
|
||||
* Group : http://groups.google.com/group/delphichromiumembedded
|
||||
*
|
||||
* Embarcadero Technologies, Inc is not permitted to use or redistribute
|
||||
* this source code without explicit permission.
|
||||
*
|
||||
*)
|
||||
|
||||
unit uCEFChromiumOptions;
|
||||
|
||||
{$IFNDEF CPUX64}
|
||||
{$ALIGN ON}
|
||||
{$MINENUMSIZE 4}
|
||||
{$ENDIF}
|
||||
|
||||
interface
|
||||
|
||||
uses
|
||||
System.Classes,
|
||||
uCEFTypes;
|
||||
|
||||
type
|
||||
TChromiumOptions = class(TPersistent)
|
||||
protected
|
||||
FWindowlessFrameRate : Integer;
|
||||
FJavascript : TCefState;
|
||||
FJavascriptOpenWindows : TCefState;
|
||||
FJavascriptCloseWindows : TCefState;
|
||||
FJavascriptAccessClipboard : TCefState;
|
||||
FJavascriptDomPaste : TCefState;
|
||||
FCaretBrowsing : TCefState;
|
||||
FPlugins : TCefState;
|
||||
FUniversalAccessFromFileUrls : TCefState;
|
||||
FFileAccessFromFileUrls : TCefState;
|
||||
FWebSecurity : TCefState;
|
||||
FImageLoading : TCefState;
|
||||
FImageShrinkStandaloneToFit : TCefState;
|
||||
FTextAreaResize : TCefState;
|
||||
FTabToLinks : TCefState;
|
||||
FLocalStorage : TCefState;
|
||||
FDatabases : TCefState;
|
||||
FApplicationCache : TCefState;
|
||||
FWebgl : TCefState;
|
||||
FBackgroundColor : TCefColor;
|
||||
FAcceptLanguageList : ustring;
|
||||
|
||||
public
|
||||
constructor Create; virtual;
|
||||
|
||||
published
|
||||
property Javascript : TCefState read FJavascript write FJavascript default STATE_DEFAULT;
|
||||
property JavascriptOpenWindows : TCefState read FJavascriptOpenWindows write FJavascriptOpenWindows default STATE_DEFAULT;
|
||||
property JavascriptCloseWindows : TCefState read FJavascriptCloseWindows write FJavascriptCloseWindows default STATE_DEFAULT;
|
||||
property JavascriptAccessClipboard : TCefState read FJavascriptAccessClipboard write FJavascriptAccessClipboard default STATE_DEFAULT;
|
||||
property JavascriptDomPaste : TCefState read FJavascriptDomPaste write FJavascriptDomPaste default STATE_DEFAULT;
|
||||
property CaretBrowsing : TCefState read FCaretBrowsing write FCaretBrowsing default STATE_DEFAULT;
|
||||
property Plugins : TCefState read FPlugins write FPlugins default STATE_DEFAULT;
|
||||
property UniversalAccessFromFileUrls : TCefState read FUniversalAccessFromFileUrls write FUniversalAccessFromFileUrls default STATE_DEFAULT;
|
||||
property FileAccessFromFileUrls : TCefState read FFileAccessFromFileUrls write FFileAccessFromFileUrls default STATE_DEFAULT;
|
||||
property WebSecurity : TCefState read FWebSecurity write FWebSecurity default STATE_DEFAULT;
|
||||
property ImageLoading : TCefState read FImageLoading write FImageLoading default STATE_DEFAULT;
|
||||
property ImageShrinkStandaloneToFit : TCefState read FImageShrinkStandaloneToFit write FImageShrinkStandaloneToFit default STATE_DEFAULT;
|
||||
property TextAreaResize : TCefState read FTextAreaResize write FTextAreaResize default STATE_DEFAULT;
|
||||
property TabToLinks : TCefState read FTabToLinks write FTabToLinks default STATE_DEFAULT;
|
||||
property LocalStorage : TCefState read FLocalStorage write FLocalStorage default STATE_DEFAULT;
|
||||
property Databases : TCefState read FDatabases write FDatabases default STATE_DEFAULT;
|
||||
property ApplicationCache : TCefState read FApplicationCache write FApplicationCache default STATE_DEFAULT;
|
||||
property Webgl : TCefState read FWebgl write FWebgl default STATE_DEFAULT;
|
||||
property BackgroundColor : TCefColor read FBackgroundColor write FBackgroundColor default 0;
|
||||
property AcceptLanguageList : ustring read FAcceptLanguageList write FAcceptLanguageList;
|
||||
property WindowlessFrameRate : Integer read FWindowlessFrameRate write FWindowlessFrameRate default 30;
|
||||
end;
|
||||
|
||||
implementation
|
||||
|
||||
constructor TChromiumOptions.Create;
|
||||
begin
|
||||
FWindowlessFrameRate := 30;
|
||||
FJavascript := STATE_DEFAULT;
|
||||
FJavascriptOpenWindows := STATE_DEFAULT;
|
||||
FJavascriptCloseWindows := STATE_DEFAULT;
|
||||
FJavascriptAccessClipboard := STATE_DEFAULT;
|
||||
FJavascriptDomPaste := STATE_DEFAULT;
|
||||
FCaretBrowsing := STATE_DEFAULT;
|
||||
FPlugins := STATE_DEFAULT;
|
||||
FUniversalAccessFromFileUrls := STATE_DEFAULT;
|
||||
FFileAccessFromFileUrls := STATE_DEFAULT;
|
||||
FWebSecurity := STATE_DEFAULT;
|
||||
FImageLoading := STATE_DEFAULT;
|
||||
FImageShrinkStandaloneToFit := STATE_DEFAULT;
|
||||
FTextAreaResize := STATE_DEFAULT;
|
||||
FTabToLinks := STATE_DEFAULT;
|
||||
FLocalStorage := STATE_DEFAULT;
|
||||
FDatabases := STATE_DEFAULT;
|
||||
FApplicationCache := STATE_DEFAULT;
|
||||
FWebgl := STATE_DEFAULT;
|
||||
FBackgroundColor := 0;
|
||||
end;
|
||||
|
||||
end.
|
||||
Reference in New Issue
Block a user