| 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 "public/platform/WebCommon.h" | 40 #include "public/platform/WebCommon.h" |
| 41 #include "public/platform/WebURLError.h" | 41 #include "public/platform/WebURLError.h" |
| 42 #include "public/platform/WebURLRequest.h" | 42 #include "public/platform/WebURLRequest.h" |
| 43 #include <v8.h> | 43 #include <v8.h> |
| 44 | 44 |
| 45 namespace blink { | 45 namespace blink { |
| 46 | 46 |
| 47 class WebCachedURLRequest; | 47 class WebCachedURLRequest; |
| 48 class WebDOMEvent; | 48 class WebDOMEvent; |
| 49 class WebInputEvent; | 49 class WebInputEvent; |
| 50 class WebMediaPlayer; | |
| 51 class WebMediaPlayerClient; | |
| 52 class WebNode; | 50 class WebNode; |
| 53 class WebString; | 51 class WebString; |
| 54 class WebURL; | 52 class WebURL; |
| 55 class WebURLLoader; | 53 class WebURLLoader; |
| 56 class WebURLResponse; | 54 class WebURLResponse; |
| 57 struct WebColorSuggestion; | 55 struct WebColorSuggestion; |
| 58 struct WebConsoleMessage; | 56 struct WebConsoleMessage; |
| 59 struct WebRect; | 57 struct WebRect; |
| 60 struct WebSize; | 58 struct WebSize; |
| 61 struct WebURLError; | 59 struct WebURLError; |
| 62 | 60 |
| 63 class WebFrameClient { | 61 class WebFrameClient { |
| 64 public: | 62 public: |
| 65 // Factory methods ----------------------------------------------------- | |
| 66 | |
| 67 // May return null. | |
| 68 virtual WebMediaPlayer* createMediaPlayer(WebLocalFrame*, const WebURL&, Web
MediaPlayerClient*) { return 0; } | |
| 69 | |
| 70 | |
| 71 // General notifications ----------------------------------------------- | 63 // General notifications ----------------------------------------------- |
| 72 | 64 |
| 73 // A child frame was created in this frame. This is called when the frame | 65 // A child frame was created in this frame. This is called when the frame |
| 74 // is created and initialized. Takes the name of the new frame, the parent | 66 // is created and initialized. Takes the name of the new frame, the parent |
| 75 // frame and returns a new WebFrame. The WebFrame is considered in-use | 67 // frame and returns a new WebFrame. The WebFrame is considered in-use |
| 76 // until frameDetached() is called on it. | 68 // until frameDetached() is called on it. |
| 77 // Note: If you override this, you should almost certainly be overriding | 69 // Note: If you override this, you should almost certainly be overriding |
| 78 // frameDetached(). | 70 // frameDetached(). |
| 79 virtual WebFrame* createChildFrame(WebLocalFrame* parent, const WebString& f
rameName) { return 0; } | 71 virtual WebFrame* createChildFrame(WebLocalFrame* parent, const WebString& f
rameName) { return 0; } |
| 80 | 72 |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 251 // Send initial drawing parameters to a child frame that is being rendered o
ut of process. | 243 // Send initial drawing parameters to a child frame that is being rendered o
ut of process. |
| 252 virtual void initializeChildFrame(const WebRect& frameRect, float scaleFacto
r) { } | 244 virtual void initializeChildFrame(const WebRect& frameRect, float scaleFacto
r) { } |
| 253 | 245 |
| 254 protected: | 246 protected: |
| 255 virtual ~WebFrameClient() { } | 247 virtual ~WebFrameClient() { } |
| 256 }; | 248 }; |
| 257 | 249 |
| 258 } // namespace blink | 250 } // namespace blink |
| 259 | 251 |
| 260 #endif | 252 #endif |
| OLD | NEW |