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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 using WebWidget::setTextDirection; | 110 using WebWidget::setTextDirection; |
111 using WebWidget::isAcceleratedCompositingActive; | 111 using WebWidget::isAcceleratedCompositingActive; |
112 using WebWidget::isWebView; | 112 using WebWidget::isWebView; |
113 using WebWidget::isPagePopup; | 113 using WebWidget::isPagePopup; |
114 using WebWidget::willCloseLayerTreeView; | 114 using WebWidget::willCloseLayerTreeView; |
115 using WebWidget::didAcquirePointerLock; | 115 using WebWidget::didAcquirePointerLock; |
116 using WebWidget::didNotAcquirePointerLock; | 116 using WebWidget::didNotAcquirePointerLock; |
117 using WebWidget::didLosePointerLock; | 117 using WebWidget::didLosePointerLock; |
118 using WebWidget::backgroundColor; | 118 using WebWidget::backgroundColor; |
119 using WebWidget::pagePopup; | 119 using WebWidget::pagePopup; |
120 using WebWidget::updateTopControlsState; | 120 using WebWidget::updateBrowserControlsState; |
121 | 121 |
122 // Initialization ------------------------------------------------------ | 122 // Initialization ------------------------------------------------------ |
123 | 123 |
124 // Creates a WebView that is NOT yet initialized. You will need to | 124 // Creates a WebView that is NOT yet initialized. You will need to |
125 // call setMainFrame to finish the initialization. It is valid | 125 // call setMainFrame to finish the initialization. It is valid |
126 // to pass a null client pointer. The WebPageVisibilityState defines the | 126 // to pass a null client pointer. The WebPageVisibilityState defines the |
127 // initial visibility of the page. | 127 // initial visibility of the page. |
128 BLINK_EXPORT static WebView* create(WebViewClient*, WebPageVisibilityState); | 128 BLINK_EXPORT static WebView* create(WebViewClient*, WebPageVisibilityState); |
129 | 129 |
130 // After creating a WebView, you should immediately call this method. | 130 // After creating a WebView, you should immediately call this method. |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
324 | 324 |
325 // Sets the additional zoom factor used for device scale factor. This is used | 325 // Sets the additional zoom factor used for device scale factor. This is used |
326 // to scale the content by the device scale factor, without affecting zoom | 326 // to scale the content by the device scale factor, without affecting zoom |
327 // level. | 327 // level. |
328 virtual void setZoomFactorForDeviceScaleFactor(float) = 0; | 328 virtual void setZoomFactorForDeviceScaleFactor(float) = 0; |
329 | 329 |
330 // Set and reset the device color profile. | 330 // Set and reset the device color profile. |
331 virtual void setDeviceColorProfile(const WebVector<char>&) = 0; | 331 virtual void setDeviceColorProfile(const WebVector<char>&) = 0; |
332 | 332 |
333 // Resize the view at the same time as changing the state of the top | 333 // Resize the view at the same time as changing the state of the top |
334 // controls. If |topControlsShrinkLayout| is true, the embedder shrunk the | 334 // controls. If |browserControlsShrinkLayout| is true, the embedder shrunk the |
335 // WebView size by the top controls height. | 335 // WebView size by the browser controls height. |
336 virtual void resizeWithTopControls(const WebSize&, | 336 virtual void resizeWithBrowserControls(const WebSize&, |
337 float topControlsHeight, | 337 float browserControlsHeight, |
338 bool topControlsShrinkLayout) = 0; | 338 bool browserControlsShrinkLayout) = 0; |
339 | 339 |
340 // Auto-Resize ----------------------------------------------------------- | 340 // Auto-Resize ----------------------------------------------------------- |
341 | 341 |
342 // In auto-resize mode, the view is automatically adjusted to fit the html | 342 // In auto-resize mode, the view is automatically adjusted to fit the html |
343 // content within the given bounds. | 343 // content within the given bounds. |
344 virtual void enableAutoResizeMode(const WebSize& minSize, | 344 virtual void enableAutoResizeMode(const WebSize& minSize, |
345 const WebSize& maxSize) = 0; | 345 const WebSize& maxSize) = 0; |
346 | 346 |
347 // Turn off auto-resize. | 347 // Turn off auto-resize. |
348 virtual void disableAutoResizeMode() = 0; | 348 virtual void disableAutoResizeMode() = 0; |
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
530 // completed. | 530 // completed. |
531 WebWidget* widget() { return this; } | 531 WebWidget* widget() { return this; } |
532 | 532 |
533 protected: | 533 protected: |
534 ~WebView() {} | 534 ~WebView() {} |
535 }; | 535 }; |
536 | 536 |
537 } // namespace blink | 537 } // namespace blink |
538 | 538 |
539 #endif | 539 #endif |
OLD | NEW |