From 3d96893747d18a3c1bf06084d4605a4b34af732f Mon Sep 17 00:00:00 2001 From: "darin@chromium.org" Date: Thu, 10 Sep 2009 04:29:17 +0000 Subject: Hook up WebFrameClient, replacing many WebViewDelegate methods. Moved NavigationGesture out of webview_delegate.h into its own header in chrome/common since it is only needed by Chrome. Adds WebFrame::isProcessingUserGesture to facilitate the removal of NavigationGesture. Cleaned up some TestShell methods related to URL loading. The method to load an URL now takes a GURL instead of a wchar_t*. R=dglazkov BUG=21332 TEST=none Review URL: http://codereview.chromium.org/200054 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@25841 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/navigation_gesture.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 chrome/common/navigation_gesture.h (limited to 'chrome/common/navigation_gesture.h') diff --git a/chrome/common/navigation_gesture.h b/chrome/common/navigation_gesture.h new file mode 100644 index 0000000..bb99497 --- /dev/null +++ b/chrome/common/navigation_gesture.h @@ -0,0 +1,22 @@ +// Copyright (c) 2006-2009 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_COMMON_NAVIGATION_GESTURE_H_ +#define CHROME_COMMON_NAVIGATION_GESTURE_H_ + +enum NavigationGesture { + NavigationGestureUser, // User initiated navigation/load. This is not + // currently used due to the untrustworthy nature + // of userGestureHint (wasRunByUserGesture). See + // bug 1051891. + NavigationGestureAuto, // Non-user initiated navigation / load. For example + // onload or setTimeout triggered document.location + // changes, and form.submits. See bug 1046841 for + // some cases that should be treated this way but + // aren't yet. + NavigationGestureUnknown, // What we assign when userGestureHint returns true + // because we can't trust it. +}; + +#endif // CHROME_COMMON_NAVIGATION_GESTURE_H_ -- cgit v1.1