Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1495)

Side by Side Diff: chrome/browser/ui/views/event_utils.h

Issue 6893046: added CTRL+Click and SHIFT+Click handler for context menu, Back and Forward. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: make this patch applicable to the latest trunk Created 9 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_VIEWS_EVENT_UTILS_H__ 5 #ifndef CHROME_BROWSER_UI_VIEWS_EVENT_UTILS_H__
6 #define CHROME_BROWSER_UI_VIEWS_EVENT_UTILS_H__ 6 #define CHROME_BROWSER_UI_VIEWS_EVENT_UTILS_H__
7 #pragma once 7 #pragma once
8 8
9 #include "webkit/glue/window_open_disposition.h" 9 #include "webkit/glue/window_open_disposition.h"
10 10
11 namespace views { 11 namespace views {
12 class MouseEvent; 12 class MouseEvent;
13 } 13 }
14 14
15 namespace event_utils { 15 namespace event_utils {
16 16
17 // Translates event flags into what kind of disposition they represents.
18 // For example, a middle click would mean to open a background tab.
19 // event_flags are the flags as understood by views::MouseEvent.
20 WindowOpenDisposition DispositionFromEventFlags(int event_flags);
21
22 // Returns true if the specified mouse event may have a 17 // Returns true if the specified mouse event may have a
23 // WindowOptionDisposition. 18 // WindowOptionDisposition.
24 bool IsPossibleDispositionEvent(const views::MouseEvent& event); 19 bool IsPossibleDispositionEvent(const views::MouseEvent& event);
25 20
26 } 21 }
27 22
28 #endif // CHROME_BROWSER_UI_VIEWS_EVENT_UTILS_H__ 23 #endif // CHROME_BROWSER_UI_VIEWS_EVENT_UTILS_H__
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/compact_nav/compact_options_bar.cc ('k') | chrome/browser/ui/views/event_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698