diff options
Diffstat (limited to 'content/browser/disposition_utils.h')
-rw-r--r-- | content/browser/disposition_utils.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/content/browser/disposition_utils.h b/content/browser/disposition_utils.h new file mode 100644 index 0000000..ba8c9e5 --- /dev/null +++ b/content/browser/disposition_utils.h @@ -0,0 +1,24 @@ +// 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 CONTENT_BROWSER_DISPOSITION_UTILS_H_ +#define CONTENT_BROWSER_DISPOSITION_UTILS_H_ +#pragma once + +#include "webkit/glue/window_open_disposition.h" + +namespace disposition_utils { + +// Translates event flags from a click on a link into the user's desired +// window disposition. For example, a middle click would mean to open +// a background tab. +WindowOpenDisposition DispositionFromClick(bool middle_button, + bool alt_key, + bool ctrl_key, + bool meta_key, + bool shift_key); + +} + +#endif // CONTENT_BROWSER_DISPOSITION_UTILS_H_ |