<NME> shell_switches.h
<BEF> // 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.

// Defines all the "content_shell" command-line switches.

#ifndef CONTENT_NW_SRC_SHELL_SWITCHES_H_
#define CONTENT_NW_SRC_SHELL_SWITCHES_H_

#include "content/nw/src/nw_export.h"

namespace nw {
  const int kMenuHeight = 25;
  const int kToolbarHeight = 34;
}

namespace switches {

extern NW_EXPORT const char kContentShellDataPath[];
extern NW_EXPORT const char kDeveloper[];
extern NW_EXPORT const char kNoToolbar[];
extern NW_EXPORT const char kUrl[];
extern NW_EXPORT const char kWorkingDirectory[];
extern NW_EXPORT const char kNodeMain[];
extern NW_EXPORT const char kSnapshot[];
extern NW_EXPORT const char kDomStorageQuota[];
extern NW_EXPORT const char kNodejs[];
extern NW_EXPORT const char kChromeExtension[];
extern NW_EXPORT const char kVerifyContent[];

// Manifest settings
extern NW_EXPORT const char kmMain[];
extern NW_EXPORT const char kmName[];
extern NW_EXPORT const char kmWebkit[];
extern NW_EXPORT const char kmWindow[];
extern NW_EXPORT const char kmChromiumArgs[];
extern NW_EXPORT const char kmJsFlags[];

extern NW_EXPORT const char kmSingleInstance[];

extern NW_EXPORT const char kmTitle[];
extern NW_EXPORT const char kmToolbar[];
extern NW_EXPORT const char kmIcon[];
extern NW_EXPORT const char kmFrame[];
extern NW_EXPORT const char kmShow[];
extern NW_EXPORT const char kmPosition[];
extern NW_EXPORT const char kmX[];
extern NW_EXPORT const char kmY[];
extern NW_EXPORT const char kmWidth[];
extern NW_EXPORT const char kmHeight[];
extern NW_EXPORT const char kmMinWidth[];
extern NW_EXPORT const char kmMinHeight[];
extern NW_EXPORT const char kmMaxWidth[];
extern NW_EXPORT const char kmMaxHeight[];
extern NW_EXPORT const char kmResizable[];
extern NW_EXPORT const char kmAsDesktop[];
extern NW_EXPORT const char kmFullscreen[];
extern NW_EXPORT const char kmShowInTaskbar[];
extern NW_EXPORT const char kmKiosk[];
extern NW_EXPORT const char kmAlwaysOnTop[];
extern NW_EXPORT const char kmVisibleOnAllWorkspaces[];
extern NW_EXPORT const char kmInitialFocus[];
extern NW_EXPORT const char kmTransparent[];
extern NW_EXPORT const char kmDisableTransparency[];

extern NW_EXPORT const char kmWebgl[];
extern NW_EXPORT const char kmJava[];
extern NW_EXPORT const char kmPlugin[];
extern NW_EXPORT const char kmPageCache[];
extern NW_EXPORT const char kmUserAgent[];
extern NW_EXPORT const char kmRemotePages[];
extern NW_EXPORT const char kmNewInstance[];
extern NW_EXPORT const char kmInjectJSDocStart[];
extern NW_EXPORT const char kmInjectJSDocEnd[];
extern NW_EXPORT const char kmInjectCSS[];

#if defined(OS_WIN)
extern const char kPrintRaster[];
#endif

extern const char kCrashDumpsDir[];
extern NW_EXPORT const char kEnableSpellChecking[];
}  // namespace switches

#endif  // CONTENT_NW_SRC_SHELL_SWITCHES_H_

<MSG> add switch disable-devtools

<DFF> @@ -80,6 +80,7 @@ extern const char kPrintRaster[];
 
 extern const char kCrashDumpsDir[];
 extern NW_EXPORT const char kEnableSpellChecking[];
+extern NW_EXPORT const char kDisableDevTools[];
 }  // namespace switches
 
 #endif  // CONTENT_NW_SRC_SHELL_SWITCHES_H_

{'commit': 'diff --git a/src/common/shell_switches.cc b/src/common/shell_switches.cc\nindex a32bbd7f..3ae10c95 100644\n--- a/src/common/shell_switches.cc\n+++ b/src/common/shell_switches.cc\n@@ -120,4 +120,5 @@ const char kPrintRaster[] = "print-raster";\n \n const char kCrashDumpsDir[] = "crash-dumps-dir";\n const char kEnableSpellChecking[] = "enable-spell-checking";\n+const char kDisableDevTools[] = "disable-devtools";\n }  // namespace switches\ndiff --git a/src/common/shell_switches.h b/src/common/shell_switches.h\nindex 0547108d..097f550d 100644\n--- a/src/common/shell_switches.h\n+++ b/src/common/shell_switches.h\n@@ -80,6 +80,7 @@ extern const char kPrintRaster[];\n \n extern const char kCrashDumpsDir[];\n extern NW_EXPORT const char kEnableSpellChecking[];\n+extern NW_EXPORT const char kDisableDevTools[];\n }  // namespace switches\n \n #endif  // CONTENT_NW_SRC_SHELL_SWITCHES_H_\n', 'commit_subject': 'add switch disable-devtools', 'repo_name': 'nwjs/nw.js', 'committer': {'name': 'Roger Wang', 'email': '19290c2e9c631c2c6e97803ebebf300809f89a21@intel.com', 'time_sec': '1463474734', 'tz_offset': '480', 'date': {'seconds': '1463474734'}}, 'commit_tree': 'eda5f1c421f706f4dfa3f111ff44609a74a076db', 'commit_message': 'add switch disable-devtools\n', 'language_name': 'Python', 'license': 'mit', 'hunks': '@@ -80,6 +80,7 @@ extern const char kPrintRaster[];\n \n extern const char kCrashDumpsDir[];\n extern NW_EXPORT const char kEnableSpellChecking[];\n+extern NW_EXPORT const char kDisableDevTools[];\n }  // namespace switches\n \n #endif  // CONTENT_NW_SRC_SHELL_SWITCHES_H_\n', 'addition_count': 1, 'deletion_count': 0, 'src_file': 'a/src/common/shell_switches.h', 'tgt_file': 'b/src/common/shell_switches.h', 'file_extension': '.h', 'before_file': '// Copyright (c) 2012 The Chromium Authors. All rights reserved.\n// Use of this source code is governed by a BSD-style license that can be\n// found in the LICENSE file.\n\n// Defines all the "content_shell" command-line switches.\n\n#ifndef CONTENT_NW_SRC_SHELL_SWITCHES_H_\n#define CONTENT_NW_SRC_SHELL_SWITCHES_H_\n\n#include "content/nw/src/nw_export.h"\n\nnamespace nw {\n  const int kMenuHeight = 25;\n  const int kToolbarHeight = 34;\n}\n\nnamespace switches {\n\nextern NW_EXPORT const char kContentShellDataPath[];\nextern NW_EXPORT const char kDeveloper[];\nextern NW_EXPORT const char kNoToolbar[];\nextern NW_EXPORT const char kUrl[];\nextern NW_EXPORT const char kWorkingDirectory[];\nextern NW_EXPORT const char kNodeMain[];\nextern NW_EXPORT const char kSnapshot[];\nextern NW_EXPORT const char kDomStorageQuota[];\nextern NW_EXPORT const char kNodejs[];\nextern NW_EXPORT const char kChromeExtension[];\nextern NW_EXPORT const char kVerifyContent[];\n\n// Manifest settings\nextern NW_EXPORT const char kmMain[];\nextern NW_EXPORT const char kmName[];\nextern NW_EXPORT const char kmWebkit[];\nextern NW_EXPORT const char kmWindow[];\nextern NW_EXPORT const char kmChromiumArgs[];\nextern NW_EXPORT const char kmJsFlags[];\n\nextern NW_EXPORT const char kmSingleInstance[];\n\nextern NW_EXPORT const char kmTitle[];\nextern NW_EXPORT const char kmToolbar[];\nextern NW_EXPORT const char kmIcon[];\nextern NW_EXPORT const char kmFrame[];\nextern NW_EXPORT const char kmShow[];\nextern NW_EXPORT const char kmPosition[];\nextern NW_EXPORT const char kmX[];\nextern NW_EXPORT const char kmY[];\nextern NW_EXPORT const char kmWidth[];\nextern NW_EXPORT const char kmHeight[];\nextern NW_EXPORT const char kmMinWidth[];\nextern NW_EXPORT const char kmMinHeight[];\nextern NW_EXPORT const char kmMaxWidth[];\nextern NW_EXPORT const char kmMaxHeight[];\nextern NW_EXPORT const char kmResizable[];\nextern NW_EXPORT const char kmAsDesktop[];\nextern NW_EXPORT const char kmFullscreen[];\nextern NW_EXPORT const char kmShowInTaskbar[];\nextern NW_EXPORT const char kmKiosk[];\nextern NW_EXPORT const char kmAlwaysOnTop[];\nextern NW_EXPORT const char kmVisibleOnAllWorkspaces[];\nextern NW_EXPORT const char kmInitialFocus[];\nextern NW_EXPORT const char kmTransparent[];\nextern NW_EXPORT const char kmDisableTransparency[];\n\nextern NW_EXPORT const char kmWebgl[];\nextern NW_EXPORT const char kmJava[];\nextern NW_EXPORT const char kmPlugin[];\nextern NW_EXPORT const char kmPageCache[];\nextern NW_EXPORT const char kmUserAgent[];\nextern NW_EXPORT const char kmRemotePages[];\nextern NW_EXPORT const char kmNewInstance[];\nextern NW_EXPORT const char kmInjectJSDocStart[];\nextern NW_EXPORT const char kmInjectJSDocEnd[];\nextern NW_EXPORT const char kmInjectCSS[];\n\n#if defined(OS_WIN)\nextern const char kPrintRaster[];\n#endif\n\nextern const char kCrashDumpsDir[];\nextern NW_EXPORT const char kEnableSpellChecking[];\n}  // namespace switches\n\n#endif  // CONTENT_NW_SRC_SHELL_SWITCHES_H_\n', 'message': 'add switch disable-devtools\n', 'author_name': 'Roger Wang', 'lang': 'h'}