summaryrefslogtreecommitdiffstats
path: root/chrome/browser/event_disposition.h
blob: 6d96a43c9925dd1c0b8ab3bbbe1292cbf0a160d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright (c) 2012 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 chrome {

// 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);

}  // namespace chrome

#endif  // CHROME_BROWSER_EVENT_DISPOSITION_H_