| 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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 using WebWidget::BackgroundColor; | 113 using WebWidget::BackgroundColor; |
| 114 using WebWidget::GetPagePopup; | 114 using WebWidget::GetPagePopup; |
| 115 using WebWidget::UpdateBrowserControlsState; | 115 using WebWidget::UpdateBrowserControlsState; |
| 116 | 116 |
| 117 // Initialization ------------------------------------------------------ | 117 // Initialization ------------------------------------------------------ |
| 118 | 118 |
| 119 // Creates a WebView that is NOT yet initialized. You will need to | 119 // Creates a WebView that is NOT yet initialized. You will need to |
| 120 // call setMainFrame to finish the initialization. It is valid | 120 // call setMainFrame to finish the initialization. It is valid |
| 121 // to pass a null client pointer. The WebPageVisibilityState defines the | 121 // to pass a null client pointer. The WebPageVisibilityState defines the |
| 122 // initial visibility of the page. | 122 // initial visibility of the page. |
| 123 BLINK_EXPORT static WebView* Create(WebViewClient*, WebPageVisibilityState); | 123 BLINK_EXPORT static WebView* Create(WebViewClient*, |
| 124 WebPageVisibilityState, |
| 125 WebView* opener = nullptr); |
| 124 | 126 |
| 125 // After creating a WebView, you should immediately call this method. | 127 // After creating a WebView, you should immediately call this method. |
| 126 // You can optionally modify the settings before calling this method. | 128 // You can optionally modify the settings before calling this method. |
| 127 // This WebFrame will receive events for the main frame and must not | 129 // This WebFrame will receive events for the main frame and must not |
| 128 // be null. | 130 // be null. |
| 129 // TODO(mustaq): The non-null param should be a reference. | 131 // TODO(mustaq): The non-null param should be a reference. |
| 130 virtual void SetMainFrame(WebFrame*) = 0; | 132 virtual void SetMainFrame(WebFrame*) = 0; |
| 131 | 133 |
| 132 // Initializes the various client interfaces. | 134 // Initializes the various client interfaces. |
| 133 virtual void SetCredentialManagerClient(WebCredentialManagerClient*) = 0; | 135 virtual void SetCredentialManagerClient(WebCredentialManagerClient*) = 0; |
| (...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 474 // completed. | 476 // completed. |
| 475 WebWidget* GetWidget() { return this; } | 477 WebWidget* GetWidget() { return this; } |
| 476 | 478 |
| 477 protected: | 479 protected: |
| 478 ~WebView() {} | 480 ~WebView() {} |
| 479 }; | 481 }; |
| 480 | 482 |
| 481 } // namespace blink | 483 } // namespace blink |
| 482 | 484 |
| 483 #endif | 485 #endif |
| OLD | NEW |