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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
67 class WebPlugin; | 67 class WebPlugin; |
68 class WebRTCPeerConnectionHandler; | 68 class WebRTCPeerConnectionHandler; |
69 class WebSharedWorker; | 69 class WebSharedWorker; |
70 class WebSharedWorkerClient; | 70 class WebSharedWorkerClient; |
71 class WebSocketStreamHandle; | 71 class WebSocketStreamHandle; |
72 class WebString; | 72 class WebString; |
73 class WebURL; | 73 class WebURL; |
74 class WebURLLoader; | 74 class WebURLLoader; |
75 class WebURLResponse; | 75 class WebURLResponse; |
76 class WebWorkerPermissionClientProxy; | 76 class WebWorkerPermissionClientProxy; |
77 struct WebConsoleMessage; | |
77 struct WebContextMenuData; | 78 struct WebContextMenuData; |
78 struct WebPluginParams; | 79 struct WebPluginParams; |
79 struct WebRect; | 80 struct WebRect; |
80 struct WebSize; | 81 struct WebSize; |
81 struct WebURLError; | 82 struct WebURLError; |
82 | 83 |
83 class WebFrameClient { | 84 class WebFrameClient { |
84 public: | 85 public: |
85 // Factory methods ----------------------------------------------------- | 86 // Factory methods ----------------------------------------------------- |
86 | 87 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
140 // This frame is about to be closed. This is called after frameDetached, | 141 // This frame is about to be closed. This is called after frameDetached, |
141 // when the document is being unloaded, due to new one committing. | 142 // when the document is being unloaded, due to new one committing. |
142 virtual void willClose(WebLocalFrame*) { } | 143 virtual void willClose(WebLocalFrame*) { } |
143 | 144 |
144 // This frame's name has changed. | 145 // This frame's name has changed. |
145 virtual void didChangeName(WebLocalFrame*, const WebString&) { } | 146 virtual void didChangeName(WebLocalFrame*, const WebString&) { } |
146 | 147 |
147 // Called when a watched CSS selector matches or stops matching. | 148 // Called when a watched CSS selector matches or stops matching. |
148 virtual void didMatchCSS(WebLocalFrame*, const WebVector<WebString>& newlyMa tchingSelectors, const WebVector<WebString>& stoppedMatchingSelectors) { } | 149 virtual void didMatchCSS(WebLocalFrame*, const WebVector<WebString>& newlyMa tchingSelectors, const WebVector<WebString>& stoppedMatchingSelectors) { } |
149 | 150 |
151 // Console messages ---------------------------------------------------- | |
152 | |
153 // Whether or not we should report a detailed message for the given source. | |
154 virtual bool shouldReportDetailedMessageForSource(const WebString& source) { return false; } | |
155 | |
156 // A new message was added to the console. | |
157 virtual void didAddMessageToConsole( | |
158 const WebConsoleMessage&, const WebString& sourceName, unsigned sourceLi ne, const WebString& stackTrace) { } | |
jochen (gone - plz use gerrit)
2014/03/31 10:03:05
all in one line plz
| |
159 | |
150 // Load commands ------------------------------------------------------- | 160 // Load commands ------------------------------------------------------- |
151 | 161 |
152 // The client should handle the navigation externally. | 162 // The client should handle the navigation externally. |
153 virtual void loadURLExternally( | 163 virtual void loadURLExternally( |
154 WebLocalFrame*, const WebURLRequest&, WebNavigationPolicy) { } | 164 WebLocalFrame*, const WebURLRequest&, WebNavigationPolicy) { } |
155 virtual void loadURLExternally( | 165 virtual void loadURLExternally( |
156 WebLocalFrame*, const WebURLRequest&, WebNavigationPolicy, const WebStri ng& downloadName) { } | 166 WebLocalFrame*, const WebURLRequest&, WebNavigationPolicy, const WebStri ng& downloadName) { } |
157 | 167 |
158 | 168 |
159 // Navigational queries ------------------------------------------------ | 169 // Navigational queries ------------------------------------------------ |
(...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
406 // Send initial drawing parameters to a child frame that is being rendered o ut of process. | 416 // Send initial drawing parameters to a child frame that is being rendered o ut of process. |
407 virtual void initializeChildFrame(const WebRect& frameRect, float scaleFacto r) { } | 417 virtual void initializeChildFrame(const WebRect& frameRect, float scaleFacto r) { } |
408 | 418 |
409 protected: | 419 protected: |
410 ~WebFrameClient() { } | 420 ~WebFrameClient() { } |
411 }; | 421 }; |
412 | 422 |
413 } // namespace blink | 423 } // namespace blink |
414 | 424 |
415 #endif | 425 #endif |
OLD | NEW |