diff options
Diffstat (limited to 'chrome/browser/views/event_utils.h')
-rw-r--r-- | chrome/browser/views/event_utils.h | 27 |
1 files changed, 6 insertions, 21 deletions
diff --git a/chrome/browser/views/event_utils.h b/chrome/browser/views/event_utils.h index 188041f..7d7d370 100644 --- a/chrome/browser/views/event_utils.h +++ b/chrome/browser/views/event_utils.h @@ -1,28 +1,13 @@ -// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 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_VIEWS_EVENT_UTILS_H__ -#define CHROME_BROWSER_VIEWS_EVENT_UTILS_H__ +#ifndef CHROME_BROWSER_VIEWS_EVENT_UTILS_H_ +#define CHROME_BROWSER_VIEWS_EVENT_UTILS_H_ #pragma once -#include "webkit/glue/window_open_disposition.h" +#include "chrome/browser/ui/views/event_utils.h" +// TODO(beng): remove this file once all includes have been updated. -namespace views { -class MouseEvent; -} +#endif // CHROME_BROWSER_VIEWS_EVENT_UTILS_H_ -namespace event_utils { - -// 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); - -// Returns true if the specified mouse event may have a -// WindowOptionDisposition. -bool IsPossibleDispositionEvent(const views::MouseEvent& event); - -} - -#endif // CHROME_BROWSER_VIEWS_EVENT_UTILS_H__ |