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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 120 using WebWidget::didChangeWindowResizerRect; | 120 using WebWidget::didChangeWindowResizerRect; |
| 121 using WebWidget::backgroundColor; | 121 using WebWidget::backgroundColor; |
| 122 using WebWidget::pagePopup; | 122 using WebWidget::pagePopup; |
| 123 using WebWidget::updateTopControlsState; | 123 using WebWidget::updateTopControlsState; |
| 124 | 124 |
| 125 // Initialization ------------------------------------------------------ | 125 // Initialization ------------------------------------------------------ |
| 126 | 126 |
| 127 // Creates a WebView that is NOT yet initialized. You will need to | 127 // Creates a WebView that is NOT yet initialized. You will need to |
| 128 // call setMainFrame to finish the initialization. It is valid | 128 // call setMainFrame to finish the initialization. It is valid |
| 129 // to pass a null client pointer. | 129 // to pass a null client pointer. |
| 130 BLINK_EXPORT static WebView* create(WebViewClient*); | 130 BLINK_EXPORT static WebView* create(WebViewClient*, bool); |
|
Charlie Reis
2016/06/06 23:15:09
This seems like it needs some explanation. (At fi
dcheng
2016/06/07 05:28:57
We should just plumb WebPageVisibilityState throug
lfg
2016/06/08 20:00:24
Done.
| |
| 131 | 131 |
| 132 // After creating a WebView, you should immediately call this method. | 132 // After creating a WebView, you should immediately call this method. |
| 133 // You can optionally modify the settings before calling this method. | 133 // You can optionally modify the settings before calling this method. |
| 134 // This WebFrame will receive events for the main frame and must not | 134 // This WebFrame will receive events for the main frame and must not |
| 135 // be null. | 135 // be null. |
| 136 virtual void setMainFrame(WebFrame*) = 0; | 136 virtual void setMainFrame(WebFrame*) = 0; |
| 137 | 137 |
| 138 // Initializes the various client interfaces. | 138 // Initializes the various client interfaces. |
| 139 virtual void setCredentialManagerClient(WebCredentialManagerClient*) = 0; | 139 virtual void setCredentialManagerClient(WebCredentialManagerClient*) = 0; |
| 140 virtual void setPrerendererClient(WebPrerendererClient*) = 0; | 140 virtual void setPrerendererClient(WebPrerendererClient*) = 0; |
| (...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 534 // completed. | 534 // completed. |
| 535 WebWidget* widget() { return this; } | 535 WebWidget* widget() { return this; } |
| 536 | 536 |
| 537 protected: | 537 protected: |
| 538 ~WebView() {} | 538 ~WebView() {} |
| 539 }; | 539 }; |
| 540 | 540 |
| 541 } // namespace blink | 541 } // namespace blink |
| 542 | 542 |
| 543 #endif | 543 #endif |
| OLD | NEW |