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

Unified Diff: chrome/browser/ui/browser.cc

Issue 134683004: Disabled pinch zooming in non-browser Aura windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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
Index: chrome/browser/ui/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index 0319aad4a8361c67c508983ce889fb23897409e9..dfde182320c8139710b04fd7fcb60f10d1ee8120 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -184,6 +184,7 @@
#include "net/base/registry_controlled_domains/registry_controlled_domain.h"
#include "net/cookies/cookie_monster.h"
#include "net/url_request/url_request_context.h"
+#include "third_party/WebKit/public/web/WebInputEvent.h"
#include "third_party/WebKit/public/web/WebWindowFeatures.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/window_open_disposition.h"
@@ -1141,6 +1142,12 @@ void Browser::HandleKeyboardEvent(content::WebContents* source,
window()->HandleKeyboardEvent(event);
}
+bool Browser::PreHandleGestureEvent(content::WebContents* source,
+ const blink::WebGestureEvent& event) {
+ // Send all events
+ return false;
+}
+
bool Browser::TabsNeedBeforeUnloadFired() {
if (IsFastTabUnloadEnabled())
return fast_unload_controller_->TabsNeedBeforeUnloadFired();

Powered by Google App Engine
This is Rietveld 408576698