From: Cheng Zhao Date: Tue, 23 Dec 2014 01:48:54 +0000 (-0800) Subject: Add "transparent" option X-Git-Tag: v0.20.6~5^2~10 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=9593c71f52e21e9661fe6fbe5bc03bfed102bda1;p=electron.git Add "transparent" option --- diff --git a/atom/common/options_switches.cc b/atom/common/options_switches.cc index 4bbc5e60..43107e36 100644 --- a/atom/common/options_switches.cc +++ b/atom/common/options_switches.cc @@ -69,6 +69,9 @@ const char kGuestInstanceID[] = "guest-instance-id"; // Script that will be loaded by guest WebContents before other scripts. const char kPreloadScript[] = "preload"; +// Whether the window should be transparent. +const char kTransparent[] = "transparent"; + // Web runtime features. const char kExperimentalFeatures[] = "experimental-features"; const char kExperimentalCanvasFeatures[] = "experimental-canvas-features"; diff --git a/atom/common/options_switches.h b/atom/common/options_switches.h index a0898364..cc55331b 100644 --- a/atom/common/options_switches.h +++ b/atom/common/options_switches.h @@ -39,6 +39,7 @@ extern const char kDirectWrite[]; extern const char kEnablePlugins[]; extern const char kGuestInstanceID[]; extern const char kPreloadScript[]; +extern const char kTransparent[]; extern const char kExperimentalFeatures[]; extern const char kExperimentalCanvasFeatures[];