| 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 // General notifications ----------------------------------------------- | 63 // General notifications ----------------------------------------------- |
| 64 | 64 |
| 65 // 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 |
| 66 // 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 |
| 67 // 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 |
| 68 // until frameDetached() is called on it. | 68 // until frameDetached() is called on it. |
| 69 // Note: If you override this, you should almost certainly be overriding | 69 // Note: If you override this, you should almost certainly be overriding |
| 70 // frameDetached(). | 70 // frameDetached(). |
| 71 virtual WebFrame* createChildFrame(WebLocalFrame* parent, const WebString& f
rameName) { return 0; } | 71 virtual WebFrame* createChildFrame(WebLocalFrame* parent, const WebString& f
rameName) { return 0; } |
| 72 | 72 |
| 73 virtual void createChildView(const WebURL& url, const WebRect& bounds) { } |
| 74 |
| 73 // This frame has been detached from the view, but has not been closed yet. | 75 // This frame has been detached from the view, but has not been closed yet. |
| 74 virtual void frameDetached(WebFrame*) { } | 76 virtual void frameDetached(WebFrame*) { } |
| 75 | 77 |
| 76 // This frame has become focused.. | 78 // This frame has become focused.. |
| 77 virtual void frameFocused() { } | 79 virtual void frameFocused() { } |
| 78 | 80 |
| 79 // This frame is about to be closed. This is called after frameDetached, | 81 // This frame is about to be closed. This is called after frameDetached, |
| 80 // when the document is being unloaded, due to new one committing. | 82 // when the document is being unloaded, due to new one committing. |
| 81 virtual void willClose(WebFrame*) { } | 83 virtual void willClose(WebFrame*) { } |
| 82 | 84 |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 // Send initial drawing parameters to a child frame that is being rendered o
ut of process. | 245 // Send initial drawing parameters to a child frame that is being rendered o
ut of process. |
| 244 virtual void initializeChildFrame(const WebRect& frameRect, float scaleFacto
r) { } | 246 virtual void initializeChildFrame(const WebRect& frameRect, float scaleFacto
r) { } |
| 245 | 247 |
| 246 protected: | 248 protected: |
| 247 virtual ~WebFrameClient() { } | 249 virtual ~WebFrameClient() { } |
| 248 }; | 250 }; |
| 249 | 251 |
| 250 } // namespace blink | 252 } // namespace blink |
| 251 | 253 |
| 252 #endif | 254 #endif |
| OLD | NEW |