| 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 21 matching lines...) Expand all Loading... |
| 32 #define SKY_ENGINE_PUBLIC_WEB_WEBFRAMECLIENT_H_ | 32 #define SKY_ENGINE_PUBLIC_WEB_WEBFRAMECLIENT_H_ |
| 33 | 33 |
| 34 #include "../platform/WebColor.h" | 34 #include "../platform/WebColor.h" |
| 35 #include "sky/engine/public/platform/WebCommon.h" | 35 #include "sky/engine/public/platform/WebCommon.h" |
| 36 #include "sky/engine/public/platform/WebURLError.h" | 36 #include "sky/engine/public/platform/WebURLError.h" |
| 37 #include "sky/engine/public/platform/WebURLRequest.h" | 37 #include "sky/engine/public/platform/WebURLRequest.h" |
| 38 #include "sky/engine/public/web/WebFrame.h" | 38 #include "sky/engine/public/web/WebFrame.h" |
| 39 #include "sky/engine/public/web/WebNavigationPolicy.h" | 39 #include "sky/engine/public/web/WebNavigationPolicy.h" |
| 40 #include "sky/engine/public/web/WebNavigationType.h" | 40 #include "sky/engine/public/web/WebNavigationType.h" |
| 41 #include "sky/engine/public/web/WebTextDirection.h" | 41 #include "sky/engine/public/web/WebTextDirection.h" |
| 42 #include "v8/include/v8.h" | 42 |
| 43 typedef struct _Dart_Isolate* Dart_Isolate; |
| 43 | 44 |
| 44 namespace mojo { | 45 namespace mojo { |
| 45 class View; | 46 class View; |
| 46 } | 47 } |
| 47 | 48 |
| 48 namespace blink { | 49 namespace blink { |
| 49 | 50 |
| 50 class WebCachedURLRequest; | 51 class WebCachedURLRequest; |
| 51 class WebInputEvent; | 52 class WebInputEvent; |
| 52 class WebNode; | 53 class WebNode; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 79 virtual void frameFocused() { } | 80 virtual void frameFocused() { } |
| 80 | 81 |
| 81 // This frame is about to be closed. This is called after frameDetached, | 82 // This frame is about to be closed. This is called after frameDetached, |
| 82 // when the document is being unloaded, due to new one committing. | 83 // when the document is being unloaded, due to new one committing. |
| 83 virtual void willClose(WebFrame*) { } | 84 virtual void willClose(WebFrame*) { } |
| 84 | 85 |
| 85 // FIXME(sky): remove. | 86 // FIXME(sky): remove. |
| 86 // Called when a watched CSS selector matches or stops matching. | 87 // Called when a watched CSS selector matches or stops matching. |
| 87 virtual void didMatchCSS(WebLocalFrame*, const WebVector<WebString>& newlyMa
tchingSelectors, const WebVector<WebString>& stoppedMatchingSelectors) { } | 88 virtual void didMatchCSS(WebLocalFrame*, const WebVector<WebString>& newlyMa
tchingSelectors, const WebVector<WebString>& stoppedMatchingSelectors) { } |
| 88 | 89 |
| 90 virtual void didCreateIsolate(WebLocalFrame*, Dart_Isolate isolate) {} |
| 89 | 91 |
| 90 // Console messages ---------------------------------------------------- | 92 // Console messages ---------------------------------------------------- |
| 91 | 93 |
| 92 // Whether or not we should report a detailed message for the given source. | 94 // Whether or not we should report a detailed message for the given source. |
| 93 virtual bool shouldReportDetailedMessageForSource(const WebString& source) {
return false; } | 95 virtual bool shouldReportDetailedMessageForSource(const WebString& source) {
return false; } |
| 94 | 96 |
| 95 // A new message was added to the console. | 97 // A new message was added to the console. |
| 96 virtual void didAddMessageToConsole(const WebConsoleMessage&, const WebStrin
g& sourceName, unsigned sourceLine, const WebString& stackTrace) { } | 98 virtual void didAddMessageToConsole(const WebConsoleMessage&, const WebStrin
g& sourceName, unsigned sourceLine, const WebString& stackTrace) { } |
| 97 | 99 |
| 98 | 100 |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 WebLocalFrame* webFrame, unsigned identifier, const WebURLRequest::Prior
ity& priority, int) { } | 191 WebLocalFrame* webFrame, unsigned identifier, const WebURLRequest::Prior
ity& priority, int) { } |
| 190 | 192 |
| 191 // The resource request given by identifier succeeded. | 193 // The resource request given by identifier succeeded. |
| 192 virtual void didFinishResourceLoad( | 194 virtual void didFinishResourceLoad( |
| 193 WebLocalFrame*, unsigned identifier) { } | 195 WebLocalFrame*, unsigned identifier) { } |
| 194 | 196 |
| 195 // The specified request was satified from WebCore's memory cache. | 197 // The specified request was satified from WebCore's memory cache. |
| 196 virtual void didLoadResourceFromMemoryCache( | 198 virtual void didLoadResourceFromMemoryCache( |
| 197 WebLocalFrame*, const WebURLRequest&, const WebURLResponse&) { } | 199 WebLocalFrame*, const WebURLRequest&, const WebURLResponse&) { } |
| 198 | 200 |
| 199 // Script notifications ------------------------------------------------ | |
| 200 | |
| 201 // Notifies that a new script context has been created for this frame. | |
| 202 // This is similar to didClearWindowObject but only called once per | |
| 203 // frame context. | |
| 204 virtual void didCreateScriptContext(WebLocalFrame*, v8::Handle<v8::Context>)
{ } | |
| 205 | |
| 206 // WebKit is about to release its reference to a v8 context for a frame. | |
| 207 virtual void willReleaseScriptContext(WebLocalFrame*, v8::Handle<v8::Context
>) { } | |
| 208 | |
| 209 | 201 |
| 210 // Geometry notifications ---------------------------------------------- | 202 // Geometry notifications ---------------------------------------------- |
| 211 | 203 |
| 212 // The main frame scrolled. | 204 // The main frame scrolled. |
| 213 virtual void didChangeScrollOffset(WebLocalFrame*) { } | 205 virtual void didChangeScrollOffset(WebLocalFrame*) { } |
| 214 | 206 |
| 215 | 207 |
| 216 // Find-in-page notifications ------------------------------------------ | 208 // Find-in-page notifications ------------------------------------------ |
| 217 | 209 |
| 218 // Notifies how many matches have been found so far, for a given | 210 // Notifies how many matches have been found so far, for a given |
| (...skipping 19 matching lines...) Expand all Loading... |
| 238 // Extensions3D.h in WebCore/platform/graphics). | 230 // Extensions3D.h in WebCore/platform/graphics). |
| 239 virtual void didLoseWebGLContext(WebLocalFrame*, int) { } | 231 virtual void didLoseWebGLContext(WebLocalFrame*, int) { } |
| 240 | 232 |
| 241 protected: | 233 protected: |
| 242 virtual ~WebFrameClient() { } | 234 virtual ~WebFrameClient() { } |
| 243 }; | 235 }; |
| 244 | 236 |
| 245 } // namespace blink | 237 } // namespace blink |
| 246 | 238 |
| 247 #endif // SKY_ENGINE_PUBLIC_WEB_WEBFRAMECLIENT_H_ | 239 #endif // SKY_ENGINE_PUBLIC_WEB_WEBFRAMECLIENT_H_ |
| OLD | NEW |