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 14 matching lines...) Expand all Loading... | |
| 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef WebView_h | 31 #ifndef WebView_h |
| 32 #define WebView_h | 32 #define WebView_h |
| 33 | 33 |
| 34 #include "../platform/WebColor.h" | 34 #include "../platform/WebColor.h" |
| 35 #include "../platform/WebCompositedDisplayList.h" | |
| 35 #include "../platform/WebDisplayMode.h" | 36 #include "../platform/WebDisplayMode.h" |
| 36 #include "../platform/WebFocusType.h" | 37 #include "../platform/WebFocusType.h" |
| 37 #include "../platform/WebPageVisibilityState.h" | 38 #include "../platform/WebPageVisibilityState.h" |
| 38 #include "../platform/WebString.h" | 39 #include "../platform/WebString.h" |
| 39 #include "../platform/WebVector.h" | 40 #include "../platform/WebVector.h" |
| 40 #include "WebDragOperation.h" | 41 #include "WebDragOperation.h" |
| 41 #include "WebHistoryCommitType.h" | 42 #include "WebHistoryCommitType.h" |
| 42 #include "WebHistoryItem.h" | 43 #include "WebHistoryItem.h" |
| 43 #include "WebWidget.h" | 44 #include "WebWidget.h" |
| 44 | 45 |
| (...skipping 400 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 445 virtual void setShowPaintRects(bool) = 0; | 446 virtual void setShowPaintRects(bool) = 0; |
| 446 virtual void setShowFPSCounter(bool) = 0; | 447 virtual void setShowFPSCounter(bool) = 0; |
| 447 virtual void setShowScrollBottleneckRects(bool) = 0; | 448 virtual void setShowScrollBottleneckRects(bool) = 0; |
| 448 | 449 |
| 449 // Visibility ----------------------------------------------------------- | 450 // Visibility ----------------------------------------------------------- |
| 450 | 451 |
| 451 // Sets the visibility of the WebView. | 452 // Sets the visibility of the WebView. |
| 452 virtual void setVisibilityState(WebPageVisibilityState visibilityState, | 453 virtual void setVisibilityState(WebPageVisibilityState visibilityState, |
| 453 bool isInitialState) { } | 454 bool isInitialState) { } |
| 454 | 455 |
| 456 // Graphics ------------------------------------------------------------- | |
| 457 | |
| 458 virtual void setCompositedDisplayList(WebCompositedDisplayList*) { } | |
|
jbroman
2015/08/19 18:33:50
Will the embedder ever call this? If not, suggest
pdr.
2015/08/20 04:01:55
Good idea. Done.
| |
| 459 virtual WebCompositedDisplayList* compositedDisplayList() { return nullptr; } | |
| 460 | |
| 455 // PageOverlay ---------------------------------------------------------- | 461 // PageOverlay ---------------------------------------------------------- |
| 456 | 462 |
| 457 // Overlay this WebView with a solid color. | 463 // Overlay this WebView with a solid color. |
| 458 virtual void setPageOverlayColor(WebColor) = 0; | 464 virtual void setPageOverlayColor(WebColor) = 0; |
| 459 | 465 |
| 460 | 466 |
| 461 // i18n ----------------------------------------------------------------- | 467 // i18n ----------------------------------------------------------------- |
| 462 | 468 |
| 463 // Inform the WebView that the accept languages have changed. | 469 // Inform the WebView that the accept languages have changed. |
| 464 // If the WebView wants to get the accept languages value, it will have | 470 // If the WebView wants to get the accept languages value, it will have |
| (...skipping 10 matching lines...) Expand all Loading... | |
| 475 // context's ability to deal with that failure gracefully can be tested. | 481 // context's ability to deal with that failure gracefully can be tested. |
| 476 virtual void forceNextDrawingBufferCreationToFail() = 0; | 482 virtual void forceNextDrawingBufferCreationToFail() = 0; |
| 477 | 483 |
| 478 protected: | 484 protected: |
| 479 ~WebView() {} | 485 ~WebView() {} |
| 480 }; | 486 }; |
| 481 | 487 |
| 482 } // namespace blink | 488 } // namespace blink |
| 483 | 489 |
| 484 #endif | 490 #endif |
| OLD | NEW |