Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(258)

Side by Side Diff: chrome/views/widget/root_view.cc

Issue 93085: Removes the use of Windows-specific types for accessibility roles and states ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/views/widget/root_view.h ('k') | chrome/views/widget/root_view_win.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/views/widget/root_view.h" 5 #include "chrome/views/widget/root_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #if defined(OS_WIN) 9 #if defined(OS_WIN)
10 #include "base/base_drag_source.h" 10 #include "base/base_drag_source.h"
(...skipping 942 matching lines...) Expand 10 before | Expand all | Expand 10 after
953 // If a pending_paint_task_ does Run(), we don't need to do anything. 953 // If a pending_paint_task_ does Run(), we don't need to do anything.
954 paint_task_needed_ = false; 954 paint_task_needed_ = false;
955 } 955 }
956 956
957 ///////////////////////////////////////////////////////////////////////////// 957 /////////////////////////////////////////////////////////////////////////////
958 // 958 //
959 // RootView - accessibility 959 // RootView - accessibility
960 // 960 //
961 ///////////////////////////////////////////////////////////////////////////// 961 /////////////////////////////////////////////////////////////////////////////
962 962
963 bool RootView::GetAccessibleRole(AccessibilityTypes::Role* role) {
964 DCHECK(role);
965
966 *role = AccessibilityTypes::ROLE_APPLICATION;
967 return true;
968 }
969
963 bool RootView::GetAccessibleName(std::wstring* name) { 970 bool RootView::GetAccessibleName(std::wstring* name) {
964 if (!accessible_name_.empty()) { 971 if (!accessible_name_.empty()) {
965 *name = accessible_name_; 972 *name = accessible_name_;
966 return true; 973 return true;
967 } 974 }
968 return false; 975 return false;
969 } 976 }
970 977
971 void RootView::SetAccessibleName(const std::wstring& name) { 978 void RootView::SetAccessibleName(const std::wstring& name) {
972 accessible_name_.assign(name); 979 accessible_name_.assign(name);
973 } 980 }
974 981
975 View* RootView::GetDragView() { 982 View* RootView::GetDragView() {
976 return drag_view_; 983 return drag_view_;
977 } 984 }
978 985
979 } // namespace views 986 } // namespace views
OLDNEW
« no previous file with comments | « chrome/views/widget/root_view.h ('k') | chrome/views/widget/root_view_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698