| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_VIEWS_ACCESSIBILITY_EVENT_ROUTER_VIEWS_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_ACCESSIBILITY_EVENT_ROUTER_VIEWS_H_ |
| 6 #define CHROME_BROWSER_VIEWS_ACCESSIBILITY_EVENT_ROUTER_VIEWS_H_ | 6 #define CHROME_BROWSER_VIEWS_ACCESSIBILITY_EVENT_ROUTER_VIEWS_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/gtest_prod_util.h" | 12 #include "base/gtest_prod_util.h" |
| 13 #include "base/hash_tables.h" | 13 #include "base/hash_tables.h" |
| 14 #include "base/singleton.h" | 14 #include "base/singleton.h" |
| 15 #include "base/task.h" | 15 #include "base/task.h" |
| 16 #include "chrome/browser/accessibility_events.h" | 16 #include "chrome/browser/accessibility_events.h" |
| 17 #include "views/view.h" | 17 #include "views/accessibility/accessibility_types.h" |
| 18 #include "views/widget/root_view.h" | |
| 19 | 18 |
| 20 class Profile; | 19 class Profile; |
| 20 namespace views { |
| 21 class View; |
| 22 } |
| 21 | 23 |
| 22 // Allows us to use (View*) in a hash_map with gcc. | 24 // Allows us to use (View*) in a hash_map with gcc. |
| 23 #if defined(COMPILER_GCC) | 25 #if defined(COMPILER_GCC) |
| 24 namespace __gnu_cxx { | 26 namespace __gnu_cxx { |
| 25 template<> | 27 template<> |
| 26 struct hash<views::View*> { | 28 struct hash<views::View*> { |
| 27 size_t operator()(views::View* view) const { | 29 size_t operator()(views::View* view) const { |
| 28 return reinterpret_cast<size_t>(view); | 30 return reinterpret_cast<size_t>(view); |
| 29 } | 31 } |
| 30 }; | 32 }; |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 // figure out where to route a few events that can't be directly traced | 143 // figure out where to route a few events that can't be directly traced |
| 142 // to a window with a profile (like menu events). | 144 // to a window with a profile (like menu events). |
| 143 Profile* most_recent_profile_; | 145 Profile* most_recent_profile_; |
| 144 | 146 |
| 145 // Used to defer handling of some events until the next time | 147 // Used to defer handling of some events until the next time |
| 146 // through the event loop. | 148 // through the event loop. |
| 147 ScopedRunnableMethodFactory<AccessibilityEventRouterViews> method_factory_; | 149 ScopedRunnableMethodFactory<AccessibilityEventRouterViews> method_factory_; |
| 148 }; | 150 }; |
| 149 | 151 |
| 150 #endif // CHROME_BROWSER_VIEWS_ACCESSIBILITY_EVENT_ROUTER_VIEWS_H_ | 152 #endif // CHROME_BROWSER_VIEWS_ACCESSIBILITY_EVENT_ROUTER_VIEWS_H_ |
| OLD | NEW |