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

Unified Diff: content/browser/accessibility/browser_accessibility_manager_auralinux.h

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 side-by-side diff with in-line comments
Download patch
Index: content/browser/accessibility/browser_accessibility_manager_auralinux.h
diff --git a/content/browser/accessibility/browser_accessibility_manager_mac.h b/content/browser/accessibility/browser_accessibility_manager_auralinux.h
similarity index 53%
copy from content/browser/accessibility/browser_accessibility_manager_mac.h
copy to content/browser/accessibility/browser_accessibility_manager_auralinux.h
index 0c91252e987b212a053cf84d9769bc5e6fd6436e..2d03230586e60acaa8b39de3eea60dfc56152179 100644
--- a/content/browser/accessibility/browser_accessibility_manager_mac.h
+++ b/content/browser/accessibility/browser_accessibility_manager_auralinux.h
@@ -1,50 +1,46 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright (c) 2015 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.
-#ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_MAC_H_
-#define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_MAC_H_
-
-#import <Cocoa/Cocoa.h>
+#ifndef CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_AURALINUX_H_
+#define CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_AURALINUX_H_
#include "content/browser/accessibility/browser_accessibility_manager.h"
+struct ViewHostMsg_AccessibilityNotification_Params;
+
namespace content {
+class BrowserAccessibilityAuraLinux;
-class CONTENT_EXPORT BrowserAccessibilityManagerMac
+// Manages a tree of BrowserAccessibilityAuraLinux objects.
+class CONTENT_EXPORT BrowserAccessibilityManagerAuraLinux
: public BrowserAccessibilityManager {
public:
- BrowserAccessibilityManagerMac(
- NSView* parent_view,
+ BrowserAccessibilityManagerAuraLinux(
+ AtkObject* parent_object,
const ui::AXTreeUpdate& initial_tree,
BrowserAccessibilityDelegate* delegate,
BrowserAccessibilityFactory* factory = new BrowserAccessibilityFactory());
- static ui::AXTreeUpdate GetEmptyDocument();
+ ~BrowserAccessibilityManagerAuraLinux() override;
- BrowserAccessibility* GetFocus(BrowserAccessibility* root) override;
+ static ui::AXTreeUpdate GetEmptyDocument();
- // Implementation of BrowserAccessibilityManager.
+ // Implementation BrowserAccessibilityManager methods
void NotifyAccessibilityEvent(ui::AXEvent event_type,
BrowserAccessibility* node) override;
- NSView* parent_view() { return parent_view_; }
+ AtkObject* parent_object() { return parent_object_; }
private:
- void OnAtomicUpdateFinished(
- ui::AXTree* tree,
- bool root_changed,
- const std::vector<ui::AXTreeDelegate::Change>& changes) override;
+ AtkObject* parent_object_;
- // This gives BrowserAccessibilityManager::Create access to the class
- // constructor.
+ // Give BrowserAccessibilityManager::Create access to our constructor.
friend class BrowserAccessibilityManager;
- NSView* parent_view_;
-
- DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerMac);
+ DISALLOW_COPY_AND_ASSIGN(BrowserAccessibilityManagerAuraLinux);
};
-}
+} // namespace content
-#endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_MAC_H_
+#endif // CONTENT_BROWSER_ACCESSIBILITY_BROWSER_ACCESSIBILITY_MANAGER_AURALINUX_H_

Powered by Google App Engine
This is Rietveld 408576698