| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009, 2010, 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2009, 2010, 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 | 82 |
| 83 // Controls which documents user styles are injected into. | 83 // Controls which documents user styles are injected into. |
| 84 enum UserStyleInjectionTime { | 84 enum UserStyleInjectionTime { |
| 85 UserStyleInjectInExistingDocuments, | 85 UserStyleInjectInExistingDocuments, |
| 86 UserStyleInjectInSubsequentDocuments | 86 UserStyleInjectInSubsequentDocuments |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 | 89 |
| 90 // Initialization ------------------------------------------------------ | 90 // Initialization ------------------------------------------------------ |
| 91 | 91 |
| 92 // Creates a WebView that is NOT yet initialized. You will need to | 92 // Creates a WebView that is NOT yet initialized. You will need to |
| 93 // call initializeMainFrame to finish the initialization. It is valid | 93 // call setMainFrame to finish the initialization. It is valid |
| 94 // to pass null client pointers. | 94 // to pass a null client pointer. |
| 95 WEBKIT_EXPORT static WebView* create(WebViewClient*); | 95 WEBKIT_EXPORT static WebView* create(WebViewClient*); |
| 96 | 96 |
| 97 // After creating a WebView, you should immediately call this method. | 97 // After creating a WebView, you should immediately call this method. |
| 98 // You can optionally modify the settings before calling this method. | 98 // You can optionally modify the settings before calling this method. |
| 99 // The WebFrameClient will receive events for the main frame and any | 99 // This WebFrame will receive events for the main frame and must not |
| 100 // child frames. It is valid to pass a null WebFrameClient pointer. | 100 // be null. |
| 101 virtual void setMainFrame(WebFrame*) = 0; |
| 102 // FIXME: Remove initializeMainFrame() after clients have migrated to |
| 103 // setMainFrame(). |
| 101 virtual void initializeMainFrame(WebFrameClient*) = 0; | 104 virtual void initializeMainFrame(WebFrameClient*) = 0; |
| 102 | 105 |
| 103 virtual void initializeHelperPluginFrame(WebFrameClient*) = 0; | |
| 104 | |
| 105 // Initializes the various client interfaces. | 106 // Initializes the various client interfaces. |
| 106 virtual void setAutofillClient(WebAutofillClient*) = 0; | 107 virtual void setAutofillClient(WebAutofillClient*) = 0; |
| 107 virtual void setDevToolsAgentClient(WebDevToolsAgentClient*) = 0; | 108 virtual void setDevToolsAgentClient(WebDevToolsAgentClient*) = 0; |
| 108 virtual void setPermissionClient(WebPermissionClient*) = 0; | 109 virtual void setPermissionClient(WebPermissionClient*) = 0; |
| 109 virtual void setPrerendererClient(WebPrerendererClient*) = 0; | 110 virtual void setPrerendererClient(WebPrerendererClient*) = 0; |
| 110 virtual void setSpellCheckClient(WebSpellCheckClient*) = 0; | 111 virtual void setSpellCheckClient(WebSpellCheckClient*) = 0; |
| 111 virtual void setValidationMessageClient(WebValidationMessageClient*) = 0; | 112 virtual void setValidationMessageClient(WebValidationMessageClient*) = 0; |
| 112 virtual void setPasswordGeneratorClient(WebPasswordGeneratorClient*) = 0; | 113 virtual void setPasswordGeneratorClient(WebPasswordGeneratorClient*) = 0; |
| 113 | 114 |
| 114 // Options ------------------------------------------------------------- | 115 // Options ------------------------------------------------------------- |
| (...skipping 403 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 518 | 519 |
| 519 // Testing functionality for TestRunner --------------------------------- | 520 // Testing functionality for TestRunner --------------------------------- |
| 520 | 521 |
| 521 protected: | 522 protected: |
| 522 ~WebView() {} | 523 ~WebView() {} |
| 523 }; | 524 }; |
| 524 | 525 |
| 525 } // namespace WebKit | 526 } // namespace WebKit |
| 526 | 527 |
| 527 #endif | 528 #endif |
| OLD | NEW |