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

Side by Side Diff: webkit/glue/webview_delegate.h

Issue 42527: - Added support for keeping track of load times.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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
« no previous file with comments | « webkit/glue/webframeloaderclient_impl.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // WebCore provides hooks for several kinds of functionality, allowing separate 5 // WebCore provides hooks for several kinds of functionality, allowing separate
6 // classes termed "delegates" to receive notifications (in the form of direct 6 // classes termed "delegates" to receive notifications (in the form of direct
7 // function calls) when certain events are about to occur or have just occurred. 7 // function calls) when certain events are about to occur or have just occurred.
8 // In some cases, the delegate implements the needed functionality; in others, 8 // In some cases, the delegate implements the needed functionality; in others,
9 // the delegate has some control over the behavior but doesn't actually 9 // the delegate has some control over the behavior but doesn't actually
10 // implement it. For example, the UI delegate is responsible for showing a 10 // implement it. For example, the UI delegate is responsible for showing a
(...skipping 11 matching lines...) Expand all
22 // PolicyDelegate, FrameLoadDelegate, and EditorDelegate; additional portions 22 // PolicyDelegate, FrameLoadDelegate, and EditorDelegate; additional portions
23 // of ChromeClient and FrameLoaderClient not delegated in the WebKit 23 // of ChromeClient and FrameLoaderClient not delegated in the WebKit
24 // implementation; and some WebView additions. 24 // implementation; and some WebView additions.
25 25
26 #ifndef WEBKIT_GLUE_WEBVIEW_DELEGATE_H_ 26 #ifndef WEBKIT_GLUE_WEBVIEW_DELEGATE_H_
27 #define WEBKIT_GLUE_WEBVIEW_DELEGATE_H_ 27 #define WEBKIT_GLUE_WEBVIEW_DELEGATE_H_
28 28
29 #include <vector> 29 #include <vector>
30 30
31 #include "webkit/glue/context_menu.h" 31 #include "webkit/glue/context_menu.h"
32 #include "webkit/glue/webdatasource.h"
32 #include "webkit/glue/webwidget_delegate.h" 33 #include "webkit/glue/webwidget_delegate.h"
33 34
34 namespace gfx { 35 namespace gfx {
35 class Point; 36 class Point;
36 class Rect; 37 class Rect;
37 } 38 }
38 39
39 namespace webkit_glue { 40 namespace webkit_glue {
40 class WebMediaPlayerDelegate; 41 class WebMediaPlayerDelegate;
41 } 42 }
42 43
43 struct PasswordForm; 44 struct PasswordForm;
44 struct WebDropData; 45 struct WebDropData;
45 struct WebPreferences; 46 struct WebPreferences;
46 class AutofillForm; 47 class AutofillForm;
47 class SkBitmap; 48 class SkBitmap;
48 class WebDevToolsAgentDelegate; 49 class WebDevToolsAgentDelegate;
49 class WebError; 50 class WebError;
50 class WebFrame; 51 class WebFrame;
51 class WebHistoryItem; 52 class WebHistoryItem;
52 class WebMediaPlayerDelegate; 53 class WebMediaPlayerDelegate;
53 class WebPluginDelegate; 54 class WebPluginDelegate;
54 class WebRequest; 55 class WebRequest;
55 class WebResponse; 56 class WebResponse;
56 class WebView; 57 class WebView;
57 class WebWidget; 58 class WebWidget;
58 class WebWorker; 59 class WebWorker;
59 class WebWorkerClient; 60 class WebWorkerClient;
60 61
61 enum WebNavigationType {
62 WebNavigationTypeLinkClicked,
63 WebNavigationTypeFormSubmitted,
64 WebNavigationTypeBackForward,
65 WebNavigationTypeReload,
66 WebNavigationTypeFormResubmitted,
67 WebNavigationTypeOther
68 };
69
70 enum NavigationGesture { 62 enum NavigationGesture {
71 NavigationGestureUser, // User initiated navigation/load. This is not 63 NavigationGestureUser, // User initiated navigation/load. This is not
72 // currently used due to the untrustworthy nature 64 // currently used due to the untrustworthy nature
73 // of userGestureHint (wasRunByUserGesture). See 65 // of userGestureHint (wasRunByUserGesture). See
74 // bug 1051891. 66 // bug 1051891.
75 NavigationGestureAuto, // Non-user initiated navigation / load. For example 67 NavigationGestureAuto, // Non-user initiated navigation / load. For example
76 // onload or setTimeout triggered document.location 68 // onload or setTimeout triggered document.location
77 // changes, and form.submits. See bug 1046841 for 69 // changes, and form.submits. See bug 1046841 for
78 // some cases that should be treated this way but 70 // some cases that should be treated this way but
79 // aren't yet. 71 // aren't yet.
(...skipping 713 matching lines...) Expand 10 before | Expand all | Expand 10 after
793 virtual void DidAddHistoryItem() { } 785 virtual void DidAddHistoryItem() { }
794 786
795 WebViewDelegate() { } 787 WebViewDelegate() { }
796 virtual ~WebViewDelegate() { } 788 virtual ~WebViewDelegate() { }
797 789
798 private: 790 private:
799 DISALLOW_COPY_AND_ASSIGN(WebViewDelegate); 791 DISALLOW_COPY_AND_ASSIGN(WebViewDelegate);
800 }; 792 };
801 793
802 #endif // WEBKIT_GLUE_WEBVIEW_DELEGATE_H_ 794 #endif // WEBKIT_GLUE_WEBVIEW_DELEGATE_H_
OLDNEW
« no previous file with comments | « webkit/glue/webframeloaderclient_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698