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

Side by Side Diff: chrome/browser/event_disposition.cc

Issue 9481008: Move GenericHandler back to Chrome since it was really Chrome specific (i.e. chrome's mapping of cl… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: 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
« no previous file with comments | « chrome/browser/disposition_utils.cc ('k') | chrome/browser/memory_details_mac.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) 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/event_disposition.h" 5 #include "chrome/browser/event_disposition.h"
6 #include "content/browser/disposition_utils.h" 6
7 #include "chrome/browser/disposition_utils.h"
7 #include "ui/base/events.h" 8 #include "ui/base/events.h"
8 9
9 namespace browser { 10 namespace browser {
10 11
11 WindowOpenDisposition DispositionFromEventFlags(int event_flags) { 12 WindowOpenDisposition DispositionFromEventFlags(int event_flags) {
12 return disposition_utils::DispositionFromClick( 13 return disposition_utils::DispositionFromClick(
13 (event_flags & ui::EF_MIDDLE_MOUSE_BUTTON) != 0, 14 (event_flags & ui::EF_MIDDLE_MOUSE_BUTTON) != 0,
14 (event_flags & ui::EF_ALT_DOWN) != 0, 15 (event_flags & ui::EF_ALT_DOWN) != 0,
15 (event_flags & ui::EF_CONTROL_DOWN) != 0, 16 (event_flags & ui::EF_CONTROL_DOWN) != 0,
16 (event_flags & ui::EF_COMMAND_DOWN) != 0, 17 (event_flags & ui::EF_COMMAND_DOWN) != 0,
17 (event_flags & ui::EF_SHIFT_DOWN) != 0); 18 (event_flags & ui::EF_SHIFT_DOWN) != 0);
18 } 19 }
19 20
20 } // namespace browser 21 } // namespace browser
OLDNEW
« no previous file with comments | « chrome/browser/disposition_utils.cc ('k') | chrome/browser/memory_details_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698