diff options
author | morrita@chromium.org <morrita@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-30 08:20:58 +0000 |
---|---|---|
committer | morrita@chromium.org <morrita@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-30 08:20:58 +0000 |
commit | 6647a1813e16c5299c84f1ee80473741460df8a9 (patch) | |
tree | 09e270741e0bb1f76c7a67c78dd19d072465f763 /chrome/browser/event_disposition.h | |
parent | fcf5f89a21c2cc33724a8abc51443bd1aed65d59 (diff) | |
download | chromium_src-6647a1813e16c5299c84f1ee80473741460df8a9.zip chromium_src-6647a1813e16c5299c84f1ee80473741460df8a9.tar.gz chromium_src-6647a1813e16c5299c84f1ee80473741460df8a9.tar.bz2 |
NOTE:
The last goal of this series of patches is not to expose WindowOpenDisposition in ui and base modules.
In the series of these patches,
Browser::ExecuteCommandWithDisposition and these kind of functions will be changed to
Browser::ExecuteCommandWithEventFlags,
which takes platform independent event flags (ui::EventFlags)
The previous patch (http://codereview.chromium.org/6893046/) was so big, I decided them into much small patches.
BUG=93700
TEST=GTKUtilTest
Review URL: http://codereview.chromium.org/7712001
Patch from Shinya Kawanaka <shinyak@google.com>.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@98790 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/event_disposition.h')
-rw-r--r-- | chrome/browser/event_disposition.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/chrome/browser/event_disposition.h b/chrome/browser/event_disposition.h new file mode 100644 index 0000000..19c7ebc --- /dev/null +++ b/chrome/browser/event_disposition.h @@ -0,0 +1,20 @@ +// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef CHROME_BROWSER_EVENT_DISPOSITION_H__ +#define CHROME_BROWSER_EVENT_DISPOSITION_H__ +#pragma once + +#include "webkit/glue/window_open_disposition.h" + +namespace browser { + +// Translates event flags into what kind of disposition they represents. +// For example, a middle click would mean to open a background tab. +// event_flags are the flags as understood by views::MouseEvent. +WindowOpenDisposition DispositionFromEventFlags(int event_flags); + +} + +#endif // CHROME_BROWSER_EVENT_DISPOSITION_H__ |