From 9593c71f52e21e9661fe6fbe5bc03bfed102bda1 Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Mon, 22 Dec 2014 17:48:54 -0800 Subject: [PATCH] Add "transparent" option --- atom/common/options_switches.cc | 3 +++ atom/common/options_switches.h | 1 + 2 files changed, 4 insertions(+) diff --git a/atom/common/options_switches.cc b/atom/common/options_switches.cc index 4bbc5e607515..43107e364623 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 a08983647ca1..cc55331be6f2 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[];