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 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
594 // Script notifications ------------------------------------------------ | 594 // Script notifications ------------------------------------------------ |
595 | 595 |
596 // Notifies that a new script context has been created for this frame. | 596 // Notifies that a new script context has been created for this frame. |
597 // This is similar to didClearWindowObject but only called once per | 597 // This is similar to didClearWindowObject but only called once per |
598 // frame context. | 598 // frame context. |
599 virtual void DidCreateScriptContext(WebLocalFrame*, | 599 virtual void DidCreateScriptContext(WebLocalFrame*, |
600 v8::Local<v8::Context>, | 600 v8::Local<v8::Context>, |
601 int world_id) {} | 601 int world_id) {} |
602 | 602 |
603 // WebKit is about to release its reference to a v8 context for a frame. | 603 // WebKit is about to release its reference to a v8 context for a frame. |
604 virtual void WillReleaseScriptContext(WebLocalFrame*, | 604 virtual void WillReleaseScriptContext(v8::Local<v8::Context>, int world_id) {} |
605 v8::Local<v8::Context>, | |
606 int world_id) {} | |
607 | 605 |
608 // Geometry notifications ---------------------------------------------- | 606 // Geometry notifications ---------------------------------------------- |
609 | 607 |
610 // The main frame scrolled. | 608 // The main frame scrolled. |
611 virtual void DidChangeScrollOffset() {} | 609 virtual void DidChangeScrollOffset() {} |
612 | 610 |
613 // If the frame is loading an HTML document, this will be called to | 611 // If the frame is loading an HTML document, this will be called to |
614 // notify that the <body> will be attached soon. | 612 // notify that the <body> will be attached soon. |
615 virtual void WillInsertBody(WebLocalFrame*) {} | 613 virtual void WillInsertBody(WebLocalFrame*) {} |
616 | 614 |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
766 // Overwrites the given URL to use an HTML5 embed if possible. | 764 // Overwrites the given URL to use an HTML5 embed if possible. |
767 // An empty URL is returned if the URL is not overriden. | 765 // An empty URL is returned if the URL is not overriden. |
768 virtual WebURL OverrideFlashEmbedWithHTML(const WebURL& url) { | 766 virtual WebURL OverrideFlashEmbedWithHTML(const WebURL& url) { |
769 return WebURL(); | 767 return WebURL(); |
770 } | 768 } |
771 }; | 769 }; |
772 | 770 |
773 } // namespace blink | 771 } // namespace blink |
774 | 772 |
775 #endif | 773 #endif |
OLD | NEW |