| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef CHROME_BROWSER_UI_ASH_ACCESSIBILITY_AUTOMATION_MANAGER_ASH_H_ | 5 #ifndef CHROME_BROWSER_UI_ASH_ACCESSIBILITY_AUTOMATION_MANAGER_ASH_H_ |
| 6 #define CHROME_BROWSER_UI_ASH_ACCESSIBILITY_AUTOMATION_MANAGER_ASH_H_ | 6 #define CHROME_BROWSER_UI_ASH_ACCESSIBILITY_AUTOMATION_MANAGER_ASH_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 | 10 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 | 34 |
| 35 // Disable automation support for views. | 35 // Disable automation support for views. |
| 36 void Disable(); | 36 void Disable(); |
| 37 | 37 |
| 38 // Handle an event fired upon a |View|. | 38 // Handle an event fired upon a |View|. |
| 39 void HandleEvent(content::BrowserContext* context, | 39 void HandleEvent(content::BrowserContext* context, |
| 40 views::View* view, | 40 views::View* view, |
| 41 ui::AXEvent event_type); | 41 ui::AXEvent event_type); |
| 42 | 42 |
| 43 // AutomationActionAdapter implementation. | 43 // AutomationActionAdapter implementation. |
| 44 virtual void DoDefault(int32 id) OVERRIDE; | 44 virtual void DoDefault(int32 id) override; |
| 45 virtual void Focus(int32 id) OVERRIDE; | 45 virtual void Focus(int32 id) override; |
| 46 virtual void MakeVisible(int32 id) OVERRIDE; | 46 virtual void MakeVisible(int32 id) override; |
| 47 virtual void SetSelection(int32 id, int32 start, int32 end) OVERRIDE; | 47 virtual void SetSelection(int32 id, int32 start, int32 end) override; |
| 48 | 48 |
| 49 protected: | 49 protected: |
| 50 virtual ~AutomationManagerAsh(); | 50 virtual ~AutomationManagerAsh(); |
| 51 | 51 |
| 52 private: | 52 private: |
| 53 friend struct DefaultSingletonTraits<AutomationManagerAsh>; | 53 friend struct DefaultSingletonTraits<AutomationManagerAsh>; |
| 54 | 54 |
| 55 AutomationManagerAsh(); | 55 AutomationManagerAsh(); |
| 56 | 56 |
| 57 // Reset all state in this manager. | 57 // Reset all state in this manager. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 71 | 71 |
| 72 // Serializes incremental updates on the currently active tree | 72 // Serializes incremental updates on the currently active tree |
| 73 // |current_tree_|. | 73 // |current_tree_|. |
| 74 scoped_ptr<ui::AXTreeSerializer<views::AXAuraObjWrapper*> > | 74 scoped_ptr<ui::AXTreeSerializer<views::AXAuraObjWrapper*> > |
| 75 current_tree_serializer_; | 75 current_tree_serializer_; |
| 76 | 76 |
| 77 DISALLOW_COPY_AND_ASSIGN(AutomationManagerAsh); | 77 DISALLOW_COPY_AND_ASSIGN(AutomationManagerAsh); |
| 78 }; | 78 }; |
| 79 | 79 |
| 80 #endif // CHROME_BROWSER_UI_ASH_ACCESSIBILITY_AUTOMATION_MANAGER_ASH_H_ | 80 #endif // CHROME_BROWSER_UI_ASH_ACCESSIBILITY_AUTOMATION_MANAGER_ASH_H_ |
| OLD | NEW |