| 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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 using WebWidget::didAcquirePointerLock; | 112 using WebWidget::didAcquirePointerLock; |
| 113 using WebWidget::didNotAcquirePointerLock; | 113 using WebWidget::didNotAcquirePointerLock; |
| 114 using WebWidget::didLosePointerLock; | 114 using WebWidget::didLosePointerLock; |
| 115 using WebWidget::backgroundColor; | 115 using WebWidget::backgroundColor; |
| 116 using WebWidget::pagePopup; | 116 using WebWidget::pagePopup; |
| 117 using WebWidget::updateBrowserControlsState; | 117 using WebWidget::updateBrowserControlsState; |
| 118 | 118 |
| 119 // Initialization ------------------------------------------------------ | 119 // Initialization ------------------------------------------------------ |
| 120 | 120 |
| 121 // Creates a WebView that is NOT yet initialized. You will need to | 121 // Creates a WebView that is NOT yet initialized. You will need to |
| 122 // call setMainFrame to finish the initialization. It is valid | 122 // call setMainFrame to finish the initialization. Use this factory method |
| 123 // to pass a null client pointer. The WebPageVisibilityState defines the | 123 // if you do not want to specify a client for callback notifications. The |
| 124 // initial visibility of the page. | 124 // WebPageVisibilityState defines the initial visibility of the page. |
| 125 BLINK_EXPORT static WebView* create(WebPageVisibilityState); |
| 126 |
| 127 // Creates a WebView that is NOT yet initialized. You will need to |
| 128 // call setMainFrame to finish the initialization. A valid WebViewClient must |
| 129 // be supplied. The WebPageVisibilityState defines the initial visibility of |
| 130 // the page. |
| 125 BLINK_EXPORT static WebView* create(WebViewClient*, WebPageVisibilityState); | 131 BLINK_EXPORT static WebView* create(WebViewClient*, WebPageVisibilityState); |
| 126 | 132 |
| 127 // After creating a WebView, you should immediately call this method. | 133 // After creating a WebView, you should immediately call this method. |
| 128 // You can optionally modify the settings before calling this method. | 134 // You can optionally modify the settings before calling this method. |
| 129 // This WebFrame will receive events for the main frame and must not | 135 // This WebFrame will receive events for the main frame and must not |
| 130 // be null. | 136 // be null. |
| 131 virtual void setMainFrame(WebFrame*) = 0; | 137 virtual void setMainFrame(WebFrame*) = 0; |
| 132 | 138 |
| 133 // Initializes the various client interfaces. | 139 // Initializes the various client interfaces. |
| 134 virtual void setCredentialManagerClient(WebCredentialManagerClient*) = 0; | 140 virtual void setCredentialManagerClient(WebCredentialManagerClient*) = 0; |
| (...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 493 // completed. | 499 // completed. |
| 494 WebWidget* widget() { return this; } | 500 WebWidget* widget() { return this; } |
| 495 | 501 |
| 496 protected: | 502 protected: |
| 497 ~WebView() {} | 503 ~WebView() {} |
| 498 }; | 504 }; |
| 499 | 505 |
| 500 } // namespace blink | 506 } // namespace blink |
| 501 | 507 |
| 502 #endif | 508 #endif |
| OLD | NEW |