Chromium Code Reviews| 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 initializeMainFrame to finish the initialization. It is valid |
| 94 // to pass null client pointers. | 94 // to pass null client pointers. |
| 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 initializeMainFrame(WebFrameClient*) = 0; | 101 virtual void initializeMainFrame(WebFrame*) = 0; |
|
darin (slow to review)
2013/09/13 04:02:47
Perhaps this method should be renamed to setMainFr
awong
2013/09/18 22:04:47
I added a second method. This is necessary to fac
| |
| 102 | |
| 103 virtual void initializeHelperPluginFrame(WebFrameClient*) = 0; | |
| 104 | 102 |
| 105 // Initializes the various client interfaces. | 103 // Initializes the various client interfaces. |
| 106 virtual void setAutofillClient(WebAutofillClient*) = 0; | 104 virtual void setAutofillClient(WebAutofillClient*) = 0; |
| 107 virtual void setDevToolsAgentClient(WebDevToolsAgentClient*) = 0; | 105 virtual void setDevToolsAgentClient(WebDevToolsAgentClient*) = 0; |
| 108 virtual void setPermissionClient(WebPermissionClient*) = 0; | 106 virtual void setPermissionClient(WebPermissionClient*) = 0; |
| 109 virtual void setPrerendererClient(WebPrerendererClient*) = 0; | 107 virtual void setPrerendererClient(WebPrerendererClient*) = 0; |
| 110 virtual void setSpellCheckClient(WebSpellCheckClient*) = 0; | 108 virtual void setSpellCheckClient(WebSpellCheckClient*) = 0; |
| 111 virtual void setValidationMessageClient(WebValidationMessageClient*) = 0; | 109 virtual void setValidationMessageClient(WebValidationMessageClient*) = 0; |
| 112 virtual void setPasswordGeneratorClient(WebPasswordGeneratorClient*) = 0; | 110 virtual void setPasswordGeneratorClient(WebPasswordGeneratorClient*) = 0; |
| 113 | 111 |
| (...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 518 | 516 |
| 519 // Testing functionality for TestRunner --------------------------------- | 517 // Testing functionality for TestRunner --------------------------------- |
| 520 | 518 |
| 521 protected: | 519 protected: |
| 522 ~WebView() {} | 520 ~WebView() {} |
| 523 }; | 521 }; |
| 524 | 522 |
| 525 } // namespace WebKit | 523 } // namespace WebKit |
| 526 | 524 |
| 527 #endif | 525 #endif |
| OLD | NEW |