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

Unified Diff: chrome/browser/event_disposition.cc

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/event_disposition.h ('k') | chrome/browser/tab_contents/render_view_context_menu.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/event_disposition.cc
diff --git a/chrome/browser/ui/views/event_utils.cc b/chrome/browser/event_disposition.cc
similarity index 68%
copy from chrome/browser/ui/views/event_utils.cc
copy to chrome/browser/event_disposition.cc
index 49d021398c32bf9b46812727c133705a83e1300a..618e11be0f493947286c31de5e12d5906ab2c51f 100644
--- a/chrome/browser/ui/views/event_utils.cc
+++ b/chrome/browser/event_disposition.cc
@@ -2,14 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/ui/views/event_utils.h"
-
+#include "chrome/browser/event_disposition.h"
#include "content/browser/disposition_utils.h"
-#include "views/events/event.h"
-
-using views::Event;
+#include "ui/base/events.h"
-namespace event_utils {
+namespace browser {
WindowOpenDisposition DispositionFromEventFlags(int event_flags) {
return disposition_utils::DispositionFromClick(
@@ -20,8 +17,4 @@ WindowOpenDisposition DispositionFromEventFlags(int event_flags) {
(event_flags & ui::EF_SHIFT_DOWN) != 0);
}
-bool IsPossibleDispositionEvent(const views::MouseEvent& event) {
- return event.IsLeftMouseButton() || event.IsMiddleMouseButton();
-}
-
}
« no previous file with comments | « chrome/browser/event_disposition.h ('k') | chrome/browser/tab_contents/render_view_context_menu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698