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

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

Issue 11896047: Move the methods in disposition_utils.h and event_disposition.h to ui\base\window_open_disposition.… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix regex in ui.gyp Created 7 years, 11 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
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/event_disposition.h"
6
7 #include "chrome/browser/disposition_utils.h"
8 #include "ui/base/events/event_constants.h"
9
10 namespace chrome {
11
12 WindowOpenDisposition DispositionFromEventFlags(int event_flags) {
13 return disposition_utils::DispositionFromClick(
14 (event_flags & ui::EF_MIDDLE_MOUSE_BUTTON) != 0,
15 (event_flags & ui::EF_ALT_DOWN) != 0,
16 (event_flags & ui::EF_CONTROL_DOWN) != 0,
17 (event_flags & ui::EF_COMMAND_DOWN) != 0,
18 (event_flags & ui::EF_SHIFT_DOWN) != 0);
19 }
20
21 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/event_disposition.h ('k') | chrome/browser/tab_contents/render_view_context_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698