| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef WEBKIT_GLUE_EMPTY_WEBFRAMECLIENT_H_ | 5 #ifndef WEBKIT_GLUE_EMPTY_WEBFRAMECLIENT_H_ |
| 6 #define WEBKIT_GLUE_EMPTY_WEBFRAMECLIENT_H_ | 6 #define WEBKIT_GLUE_EMPTY_WEBFRAMECLIENT_H_ |
| 7 | 7 |
| 8 #include "webkit/api/public/WebFrameClient.h" | 8 #include "webkit/api/public/WebFrameClient.h" |
| 9 | 9 |
| 10 namespace webkit_glue { | 10 namespace webkit_glue { |
| 11 | 11 |
| 12 // Extend from this if you only need to override a few WebFrameClient methods. | 12 // Extend from this if you only need to override a few WebFrameClient methods. |
| 13 class EmptyWebFrameClient : public WebKit::WebFrameClient { | 13 class EmptyWebFrameClient : public WebKit::WebFrameClient { |
| 14 public: | 14 public: |
| 15 virtual WebKit::WebPlugin* createPlugin( | 15 virtual WebKit::WebPlugin* createPlugin( |
| 16 WebKit::WebFrame* frame, const WebKit::WebPluginParams& params) { | 16 WebKit::WebFrame* frame, const WebKit::WebPluginParams& params) { |
| 17 return NULL; } | 17 return NULL; } |
| 18 virtual WebKit::WebWorker* createWorker( | 18 virtual WebKit::WebWorker* createWorker( |
| 19 WebKit::WebFrame* frame, WebKit::WebWorkerClient* client) { | 19 WebKit::WebFrame* frame, WebKit::WebWorkerClient* client) { |
| 20 return NULL; } | 20 return NULL; } |
| 21 virtual WebKit::WebMediaPlayer* createMediaPlayer( | 21 virtual WebKit::WebMediaPlayer* createMediaPlayer( |
| 22 WebKit::WebFrame* frame, WebKit::WebMediaPlayerClient* client) { | 22 WebKit::WebFrame* frame, WebKit::WebMediaPlayerClient* client) { |
| 23 return NULL; } | 23 return NULL; } |
| 24 virtual void willClose(WebKit::WebFrame* frame) {} | 24 virtual void willClose(WebKit::WebFrame* frame) {} |
| 25 virtual void loadURLExternally( | 25 virtual void loadURLExternally( |
| 26 WebKit::WebFrame* frame, const WebKit::WebURLRequest& request, | 26 WebKit::WebFrame* frame, const WebKit::WebURLRequest& request, |
| 27 WebKit::WebNavigationPolicy policy) {} | 27 WebKit::WebNavigationPolicy policy) {} |
| 28 virtual WebKit::WebNavigationPolicy decidePolicyForNavigation( | 28 virtual WebKit::WebNavigationPolicy decidePolicyForNavigation( |
| 29 WebKit::WebFrame* frame, const WebKit::WebURLRequest& request, | 29 WebKit::WebFrame* frame, const WebKit::WebURLRequest& request, |
| 30 WebKit::WebNavigationType type, | 30 WebKit::WebNavigationType type, const WebKit::WebNode& originating_node, |
| 31 WebKit::WebNavigationPolicy default_policy, bool is_redirect) { | 31 WebKit::WebNavigationPolicy default_policy, bool is_redirect) { |
| 32 return default_policy; } | 32 return default_policy; } |
| 33 virtual void willSubmitForm(WebKit::WebFrame* frame, | 33 virtual void willSubmitForm(WebKit::WebFrame* frame, |
| 34 const WebKit::WebForm& form) {} | 34 const WebKit::WebForm& form) {} |
| 35 virtual void willPerformClientRedirect( | 35 virtual void willPerformClientRedirect( |
| 36 WebKit::WebFrame* frame, const WebKit::WebURL& from, | 36 WebKit::WebFrame* frame, const WebKit::WebURL& from, |
| 37 const WebKit::WebURL& to, double interval, double fire_time) {} | 37 const WebKit::WebURL& to, double interval, double fire_time) {} |
| 38 virtual void didCancelClientRedirect(WebKit::WebFrame* frame) {} | 38 virtual void didCancelClientRedirect(WebKit::WebFrame* frame) {} |
| 39 virtual void didCompleteClientRedirect( | 39 virtual void didCompleteClientRedirect( |
| 40 WebKit::WebFrame* frame, const WebKit::WebURL& from) {} | 40 WebKit::WebFrame* frame, const WebKit::WebURL& from) {} |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 WebKit::WebFrame* frame, const WebKit::WebSize& size) {} | 88 WebKit::WebFrame* frame, const WebKit::WebSize& size) {} |
| 89 virtual void reportFindInPageMatchCount( | 89 virtual void reportFindInPageMatchCount( |
| 90 int identifier, int count, bool final_update) {} | 90 int identifier, int count, bool final_update) {} |
| 91 virtual void reportFindInPageSelection( | 91 virtual void reportFindInPageSelection( |
| 92 int identifier, int ordinal, const WebKit::WebRect& selection) {} | 92 int identifier, int ordinal, const WebKit::WebRect& selection) {} |
| 93 }; | 93 }; |
| 94 | 94 |
| 95 } // namespace webkit_glue | 95 } // namespace webkit_glue |
| 96 | 96 |
| 97 #endif // WEBKIT_GLUE_EMPTY_WEBFRAMECLIENT_H_ | 97 #endif // WEBKIT_GLUE_EMPTY_WEBFRAMECLIENT_H_ |
| OLD | NEW |