diff options
Diffstat (limited to 'views/controls/separator.cc')
-rw-r--r-- | views/controls/separator.cc | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/views/controls/separator.cc b/views/controls/separator.cc index dad3578..cd1deeb 100644 --- a/views/controls/separator.cc +++ b/views/controls/separator.cc @@ -1,9 +1,10 @@ -// Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 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 "views/controls/separator.h" +#include "base/logging.h" #if defined(OS_LINUX) #include "views/controls/native_control_gtk.h" #elif defined(OS_WIN) @@ -91,6 +92,13 @@ std::string Separator::GetClassName() const { return kViewClassName; } +bool Separator::GetAccessibleRole(AccessibilityTypes::Role* role) { + DCHECK(role); + + *role = AccessibilityTypes::ROLE_SEPARATOR; + return true; +} + //////////////////////////////////////////////////////////////////////////////// // Separator, private: |