summaryrefslogtreecommitdiffstats
path: root/chrome/browser/event_disposition.cc
diff options
context:
space:
mode:
authorshinyak@google.com <shinyak@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-31 08:02:24 +0000
committershinyak@google.com <shinyak@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-08-31 08:02:24 +0000
commita08747c1b6bd5b5a66b1d034ae79f2a258b47c3a (patch)
treec53197eedca5f56baacaf7a195aa0afe7c50e77f /chrome/browser/event_disposition.cc
parent4360b01dca12c3e55855ae67f504bc56f7847678 (diff)
downloadchromium_src-a08747c1b6bd5b5a66b1d034ae79f2a258b47c3a.zip
chromium_src-a08747c1b6bd5b5a66b1d034ae79f2a258b47c3a.tar.gz
chromium_src-a08747c1b6bd5b5a66b1d034ae79f2a258b47c3a.tar.bz2
NOTE:
The last goal of this series of patches is to unexpose WindowOpenDisposition in ui and base modules. This patch introduces the platform independent (key or mouse) events for mac. It provides a conversion function from mac event to the platform independent events. After this patch is landed, I will upload the main patch of this series. It will remove the code where WindowOpenDisposition is exposed to ui/base level, and will introduce (context menu) handlers with platform independent event flags. See also http://codereview.chromium.org/6893046/ BUG=93700 TEST=EventUtilsTest Review URL: http://codereview.chromium.org/7792048 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98936 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/event_disposition.cc')
-rw-r--r--chrome/browser/event_disposition.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/event_disposition.cc b/chrome/browser/event_disposition.cc
index 618e11b..3d07f23 100644
--- a/chrome/browser/event_disposition.cc
+++ b/chrome/browser/event_disposition.cc
@@ -13,8 +13,8 @@ WindowOpenDisposition DispositionFromEventFlags(int event_flags) {
(event_flags & ui::EF_MIDDLE_BUTTON_DOWN) != 0,
(event_flags & ui::EF_ALT_DOWN) != 0,
(event_flags & ui::EF_CONTROL_DOWN) != 0,
- false /* meta_key */,
+ (event_flags & ui::EF_COMMAND_DOWN) != 0,
(event_flags & ui::EF_SHIFT_DOWN) != 0);
}
-}
+} // namespace browser