// Copyright (c) 2013 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 "ui/base/ui_base_switches_util.h"

#include "base/command_line.h"
#include "ui/base/ui_base_switches.h"

namespace switches {

bool IsTouchDragDropEnabled() {
  return CommandLine::ForCurrentProcess()->HasSwitch(
      switches::kEnableTouchDragDrop);
}

bool IsTouchEditingEnabled() {
  return CommandLine::ForCurrentProcess()->HasSwitch(
      switches::kEnableTouchEditing);
}

bool IsNewDialogStyleEnabled() {
  CommandLine* command_line = CommandLine::ForCurrentProcess();
  if (command_line->HasSwitch(switches::kDisableNewDialogStyle))
    return false;
  if (command_line->HasSwitch(switches::kEnableNewDialogStyle))
    return true;
  return true;
}

}  // namespace switches

// Copyright (c) 2013 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 "ui/base/ui_base_switches_util.h"

#include "base/command_line.h"
#include "ui/base/ui_base_switches.h"

namespace switches {

bool IsTouchDragDropEnabled() {
  return CommandLine::ForCurrentProcess()->HasSwitch(
      switches::kEnableTouchDragDrop);
}

bool IsTouchEditingEnabled() {
  return CommandLine::ForCurrentProcess()->HasSwitch(
      switches::kEnableTouchEditing);
}

bool IsNewDialogStyleEnabled() {
  CommandLine* command_line = CommandLine::ForCurrentProcess();
  if (command_line->HasSwitch(switches::kDisableNewDialogStyle))
    return false;
  if (command_line->HasSwitch(switches::kEnableNewDialogStyle))
    return true;
  return false;
}

}  // namespace switches

--- 
+++ 
@@ -25,7 +25,7 @@
     return false;
   if (command_line->HasSwitch(switches::kEnableNewDialogStyle))
     return true;
-  return false;
+  return true;
 }
 
 }  // namespace switches
Enable the new dialog style by default; etc.

Enables the new dialog and button styles by default.
Please file any appearance/behavior issues against msw/wittman.
(disable: about:flags "New Dialog Style" or --disable-new-dialog-style)

Mike Wittman and I are mid-audit of Win/CrOS dialogs, expect some glitches:
- Some dialogs will have black/clear borders and need layout adjustments.
- Some other UI will need adjustments to accomodate new button styling.

BUG=166075
TEST=Dialogs and buttons employ their new styling; only minor issues remain.
R=sky@chromium.org,wittman@chromium.org

Review URL: https://chromiumcodereview.appspot.com/14646037

git-svn-id: de016e52bd170d2d4f2344f9bf92d50478b649e0@200206 0039d316-1c4b-4281-b951-d872f2087c98
