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

Side by Side Diff: chrome/browser/extensions/key_identifier_conversion_views.cc

Issue 9558012: Cleanup: IWYU for BrowserThread. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix win Created 8 years, 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/browser/extensions/key_identifier_conversion_views.h" 5 #include "chrome/browser/extensions/key_identifier_conversion_views.h"
6 6
7 #include <string.h> 7 #include <string.h>
8 8
9 #include <utility>
10
9 #include "base/basictypes.h" 11 #include "base/basictypes.h"
10 #include "base/hash_tables.h" 12 #include "base/hash_tables.h"
13 #include "base/logging.h"
11 #include "content/public/browser/browser_thread.h" 14 #include "content/public/browser/browser_thread.h"
12 #include "ui/base/keycodes/keyboard_codes.h" 15 #include "ui/base/keycodes/keyboard_codes.h"
13 #include "ui/views/events/event.h" 16 #include "ui/views/events/event.h"
14 17
15 using content::BrowserThread; 18 using content::BrowserThread;
16 19
17 namespace { 20 namespace {
18 21
19 static const int kNumIdentifierTypes = 3; 22 static const int kNumIdentifierTypes = 3;
20 23
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
329 for (int i = 0; i < kNumIdentifierTypes; ++i) { 332 for (int i = 0; i < kNumIdentifierTypes; ++i) {
330 const IdentifierMap& map = *identifierMaps[i]; 333 const IdentifierMap& map = *identifierMaps[i];
331 334
332 IdentifierMap::const_iterator iter = map.find(key_identifier); 335 IdentifierMap::const_iterator iter = map.find(key_identifier);
333 if (iter != map.end()) 336 if (iter != map.end())
334 return *iter->second; 337 return *iter->second;
335 } 338 }
336 339
337 return *kUnknownKeyEvent; 340 return *kUnknownKeyEvent;
338 } 341 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_process_manager.cc ('k') | chrome/browser/prefs/pref_member.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698