ui_base_switches_util.cc revision b2df76ea8fec9e32f6f3718986dba0d95315b29c
1// Copyright (c) 2013 The Chromium Authors. All rights reserved. 2// Use of this source code is governed by a BSD-style license that can be 3// found in the LICENSE file. 4 5#include "ui/base/ui_base_switches_util.h" 6 7#include "base/command_line.h" 8#include "ui/base/ui_base_switches.h" 9 10namespace switches { 11 12bool IsTouchDragDropEnabled() { 13 return CommandLine::ForCurrentProcess()->HasSwitch( 14 switches::kEnableTouchDragDrop); 15} 16 17bool IsTouchEditingEnabled() { 18 return CommandLine::ForCurrentProcess()->HasSwitch( 19 switches::kEnableTouchEditing); 20} 21 22bool IsNewDialogStyleEnabled() { 23 CommandLine* command_line = CommandLine::ForCurrentProcess(); 24 if (command_line->HasSwitch(switches::kDisableNewDialogStyle)) 25 return false; 26 if (command_line->HasSwitch(switches::kEnableNewDialogStyle)) 27 return true; 28 return false; 29} 30 31} // namespace switches 32