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

Side by Side Diff: chrome/browser/views/accessibility_event_router_views.h

Issue 3202003: Some minor fixes to remove unnecessary includes and do fwd declaration instea... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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
« no previous file with comments | « no previous file | chrome/browser/views/accessibility_event_router_views.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/views/accessibility_event_router_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698