OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 29 matching lines...) Expand all Loading... |
40 #include "WebTextDirection.h" | 40 #include "WebTextDirection.h" |
41 #include "public/platform/WebCommon.h" | 41 #include "public/platform/WebCommon.h" |
42 #include "public/platform/WebFileSystem.h" | 42 #include "public/platform/WebFileSystem.h" |
43 #include "public/platform/WebFileSystemType.h" | 43 #include "public/platform/WebFileSystemType.h" |
44 #include "public/platform/WebStorageQuotaCallbacks.h" | 44 #include "public/platform/WebStorageQuotaCallbacks.h" |
45 #include "public/platform/WebStorageQuotaType.h" | 45 #include "public/platform/WebStorageQuotaType.h" |
46 #include "public/platform/WebURLError.h" | 46 #include "public/platform/WebURLError.h" |
47 #include "public/platform/WebURLRequest.h" | 47 #include "public/platform/WebURLRequest.h" |
48 #include <v8.h> | 48 #include <v8.h> |
49 | 49 |
| 50 // FIXME(jam): remove after roll |
| 51 #define SHOW_CONTEXT_MENU_ON_WEB_FRAME_CLIENT |
| 52 |
50 namespace blink { | 53 namespace blink { |
51 | 54 |
52 class WebApplicationCacheHost; | 55 class WebApplicationCacheHost; |
53 class WebApplicationCacheHostClient; | 56 class WebApplicationCacheHostClient; |
54 class WebCachedURLRequest; | 57 class WebCachedURLRequest; |
55 class WebCookieJar; | 58 class WebCookieJar; |
56 class WebDataSource; | 59 class WebDataSource; |
57 class WebDOMEvent; | 60 class WebDOMEvent; |
58 class WebFormElement; | 61 class WebFormElement; |
59 class WebFrame; | 62 class WebFrame; |
60 class WebInputEvent; | 63 class WebInputEvent; |
61 class WebMediaPlayer; | 64 class WebMediaPlayer; |
62 class WebMediaPlayerClient; | 65 class WebMediaPlayerClient; |
63 class WebServiceWorkerProvider; | 66 class WebServiceWorkerProvider; |
64 class WebServiceWorkerProviderClient; | 67 class WebServiceWorkerProviderClient; |
65 class WebNode; | 68 class WebNode; |
66 class WebPlugin; | 69 class WebPlugin; |
67 class WebRTCPeerConnectionHandler; | 70 class WebRTCPeerConnectionHandler; |
68 class WebSharedWorker; | 71 class WebSharedWorker; |
69 class WebSharedWorkerClient; | 72 class WebSharedWorkerClient; |
70 class WebSocketStreamHandle; | 73 class WebSocketStreamHandle; |
71 class WebString; | 74 class WebString; |
72 class WebURL; | 75 class WebURL; |
73 class WebURLLoader; | 76 class WebURLLoader; |
74 class WebURLResponse; | 77 class WebURLResponse; |
75 class WebWorkerPermissionClientProxy; | 78 class WebWorkerPermissionClientProxy; |
| 79 struct WebContextMenuData; |
76 struct WebPluginParams; | 80 struct WebPluginParams; |
77 struct WebRect; | 81 struct WebRect; |
78 struct WebSize; | 82 struct WebSize; |
79 struct WebURLError; | 83 struct WebURLError; |
80 | 84 |
81 class WebFrameClient { | 85 class WebFrameClient { |
82 public: | 86 public: |
83 // Factory methods ----------------------------------------------------- | 87 // Factory methods ----------------------------------------------------- |
84 | 88 |
85 // May return null. | 89 // May return null. |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
214 // For example, the navigation may have just resulted in scrolling to a | 218 // For example, the navigation may have just resulted in scrolling to a |
215 // named anchor or a PopState event may have been dispatched. | 219 // named anchor or a PopState event may have been dispatched. |
216 virtual void didNavigateWithinPage(WebFrame*, bool isNewNavigation) { } | 220 virtual void didNavigateWithinPage(WebFrame*, bool isNewNavigation) { } |
217 | 221 |
218 // Called upon update to scroll position, document state, and other | 222 // Called upon update to scroll position, document state, and other |
219 // non-navigational events related to the data held by WebHistoryItem. | 223 // non-navigational events related to the data held by WebHistoryItem. |
220 // WARNING: This method may be called very frequently. | 224 // WARNING: This method may be called very frequently. |
221 virtual void didUpdateCurrentHistoryItem(WebFrame*) { } | 225 virtual void didUpdateCurrentHistoryItem(WebFrame*) { } |
222 | 226 |
223 | 227 |
| 228 // UI ------------------------------------------------------------------ |
| 229 |
| 230 // Shows a context menu with commands relevant to a specific element on |
| 231 // the given frame. Additional context data is supplied. |
| 232 virtual void showContextMenu(const WebContextMenuData&) { } |
| 233 |
| 234 |
224 // Low-level resource notifications ------------------------------------ | 235 // Low-level resource notifications ------------------------------------ |
225 | 236 |
226 // An element will request a resource. | 237 // An element will request a resource. |
227 virtual void willRequestResource(WebFrame*, const WebCachedURLRequest&) { } | 238 virtual void willRequestResource(WebFrame*, const WebCachedURLRequest&) { } |
228 | 239 |
229 // The request is after preconnect is triggered. | 240 // The request is after preconnect is triggered. |
230 virtual void willRequestAfterPreconnect(WebFrame*, WebURLRequest&) { } | 241 virtual void willRequestAfterPreconnect(WebFrame*, WebURLRequest&) { } |
231 | 242 |
232 // A request is about to be sent out, and the client may modify it. Request | 243 // A request is about to be sent out, and the client may modify it. Request |
233 // is writable, and changes to the URL, for example, will change the request | 244 // is writable, and changes to the URL, for example, will change the request |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
381 // Send initial drawing parameters to a child frame that is being rendered o
ut of process. | 392 // Send initial drawing parameters to a child frame that is being rendered o
ut of process. |
382 virtual void initializeChildFrame(const WebRect& frameRect, float scaleFacto
r) { } | 393 virtual void initializeChildFrame(const WebRect& frameRect, float scaleFacto
r) { } |
383 | 394 |
384 protected: | 395 protected: |
385 ~WebFrameClient() { } | 396 ~WebFrameClient() { } |
386 }; | 397 }; |
387 | 398 |
388 } // namespace blink | 399 } // namespace blink |
389 | 400 |
390 #endif | 401 #endif |
OLD | NEW |