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

Side by Side Diff: content/browser/accessibility/browser_accessibility.cc

Issue 1128183010: ATK accessibility support for web content on Aura Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixing nits Created 5 years, 5 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/browser/accessibility/browser_accessibility.h" 5 #include "content/browser/accessibility/browser_accessibility.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
11 #include "base/strings/string_util.h" 11 #include "base/strings/string_util.h"
12 #include "base/strings/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
13 #include "content/browser/accessibility/browser_accessibility_manager.h" 13 #include "content/browser/accessibility/browser_accessibility_manager.h"
14 #include "content/common/accessibility_messages.h" 14 #include "content/common/accessibility_messages.h"
15 #include "ui/accessibility/ax_text_utils.h" 15 #include "ui/accessibility/ax_text_utils.h"
16 16
17 namespace content { 17 namespace content {
18 18
19 #if !defined(OS_MACOSX) && \ 19 #if !defined(OS_WIN) && \
20 !defined(OS_WIN) && \ 20 !defined(OS_MACOSX) && \
21 !defined(OS_ANDROID) 21 !defined(OS_ANDROID) && \
22 // We have subclassess of BrowserAccessibility on Mac and Win. For any other 22 !(defined(OS_LINUX) && !defined(OS_CHROMEOS) && defined(USE_X11))
23 // platform, instantiate the base class. 23 // We have subclassess of BrowserAccessibility on some platforms.
24 // On other platforms, instantiate the base class.
24 // static 25 // static
25 BrowserAccessibility* BrowserAccessibility::Create() { 26 BrowserAccessibility* BrowserAccessibility::Create() {
26 return new BrowserAccessibility(); 27 return new BrowserAccessibility();
27 } 28 }
28 #endif 29 #endif
29 30
30 BrowserAccessibility::BrowserAccessibility() 31 BrowserAccessibility::BrowserAccessibility()
31 : manager_(NULL), 32 : manager_(NULL),
32 node_(NULL) { 33 node_(NULL) {
33 } 34 }
(...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after
766 } 767 }
767 need_to_offset_web_area = true; 768 need_to_offset_web_area = true;
768 } 769 }
769 parent = parent->GetParentForBoundsCalculation(); 770 parent = parent->GetParentForBoundsCalculation();
770 } 771 }
771 772
772 return bounds; 773 return bounds;
773 } 774 }
774 775
775 } // namespace content 776 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/accessibility/browser_accessibility.h ('k') | content/browser/accessibility/browser_accessibility_auralinux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698