summaryrefslogtreecommitdiffstats
path: root/ios/chrome/browser/chrome_switches.cc
blob: 705afcd9bad5f2da87b749504a001f6cfb7197a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// Copyright 2015 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.

#include "ios/chrome/browser/chrome_switches.h"

namespace switches {

// -----------------------------------------------------------------------------
// When commenting your switch, please use the same voice as surrounding
// comments. Imagine "This switch..." at the beginning of the phrase, and it'll
// all work out.
// -----------------------------------------------------------------------------

// Disables the blocking of external URL requests from sub-frames not initiated
// by user interaction.
const char kDisableIOSBlockUnpromptedExternalURLs[] =
    "disable-block-external-urls";

// Disables the use of WKWebView instead of UIWebView.
const char kDisableIOSWKWebView[] = "disable-wkwebview";

// Enables the blocking of external URL requests from sub-frames not initiated
// by user interaction.
const char kEnableIOSBlockUnpromptedExternalURLs[] =
    "enable-block-external-urls";

// Enables the use of WKWebView instead of UIWebView.
const char kEnableIOSWKWebView[] = "enable-wkwebview";

// Enables context-sensitive reader mode button in the toolbar.
const char kEnableReaderModeToolbarIcon[] = "enable-reader-mode-toolbar-icon";

// Disables support for keyboard commands.
const char kDisableKeyboardCommands[] = "disable-keyboard-commands";

}  // namespace switches