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

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

Issue 234533002: Remove a bunch of TOOLKIT_GTK in content/ and gpu/, as well as NPAPI plugins on linux (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase, skip changing browser_main_loop.cc because of presubmit issues, will follow up Created 6 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
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_manager.h" 5 #include "content/browser/accessibility/browser_accessibility_manager.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "content/browser/accessibility/browser_accessibility.h" 8 #include "content/browser/accessibility/browser_accessibility.h"
9 #include "content/common/accessibility_messages.h" 9 #include "content/common/accessibility_messages.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 BrowserAccessibility* BrowserAccessibilityFactory::Create() { 13 BrowserAccessibility* BrowserAccessibilityFactory::Create() {
14 return BrowserAccessibility::Create(); 14 return BrowserAccessibility::Create();
15 } 15 }
16 16
17 #if !defined(OS_MACOSX) && \ 17 #if !defined(OS_MACOSX) && \
18 !defined(OS_WIN) && \ 18 !defined(OS_WIN) && \
19 !defined(TOOLKIT_GTK) && \
20 !defined(OS_ANDROID) \ 19 !defined(OS_ANDROID) \
21 // We have subclassess of BrowserAccessibilityManager on Mac, Linux/GTK, 20 // We have subclassess of BrowserAccessibilityManager on Mac, and Win. For any
22 // and Win. For any other platform, instantiate the base class. 21 // other platform, instantiate the base class.
23 // static 22 // static
24 BrowserAccessibilityManager* BrowserAccessibilityManager::Create( 23 BrowserAccessibilityManager* BrowserAccessibilityManager::Create(
25 const ui::AXNodeData& src, 24 const ui::AXNodeData& src,
26 BrowserAccessibilityDelegate* delegate, 25 BrowserAccessibilityDelegate* delegate,
27 BrowserAccessibilityFactory* factory) { 26 BrowserAccessibilityFactory* factory) {
28 return new BrowserAccessibilityManager(src, delegate, factory); 27 return new BrowserAccessibilityManager(src, delegate, factory);
29 } 28 }
30 #endif 29 #endif
31 30
32 BrowserAccessibilityManager::BrowserAccessibilityManager( 31 BrowserAccessibilityManager::BrowserAccessibilityManager(
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 // Keep track of what node is focused. 454 // Keep track of what node is focused.
456 if (src.role != ui::AX_ROLE_ROOT_WEB_AREA && 455 if (src.role != ui::AX_ROLE_ROOT_WEB_AREA &&
457 src.role != ui::AX_ROLE_WEB_AREA && 456 src.role != ui::AX_ROLE_WEB_AREA &&
458 (src.state >> ui::AX_STATE_FOCUSED & 1)) { 457 (src.state >> ui::AX_STATE_FOCUSED & 1)) {
459 SetFocus(instance, false); 458 SetFocus(instance, false);
460 } 459 }
461 return success; 460 return success;
462 } 461 }
463 462
464 } // namespace content 463 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698