Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(467)

Side by Side Diff: public/web/WebView.h

Issue 1264483002: PageOverlays: Remove PageOverlayList (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « public/web/WebPageOverlay.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 virtual void setShowScrollBottleneckRects(bool) = 0; 441 virtual void setShowScrollBottleneckRects(bool) = 0;
442 442
443 // Visibility ----------------------------------------------------------- 443 // Visibility -----------------------------------------------------------
444 444
445 // Sets the visibility of the WebView. 445 // Sets the visibility of the WebView.
446 virtual void setVisibilityState(WebPageVisibilityState visibilityState, 446 virtual void setVisibilityState(WebPageVisibilityState visibilityState,
447 bool isInitialState) { } 447 bool isInitialState) { }
448 448
449 // PageOverlay ---------------------------------------------------------- 449 // PageOverlay ----------------------------------------------------------
450 450
451 // Adds/removes page overlay to this WebView. These functions change the
452 // graphical appearance of the WebView. WebPageOverlay paints the
453 // contents of the page overlay. It also provides an z-order number for
454 // the page overlay. The z-order number defines the paint order the page
455 // overlays. Page overlays with larger z-order number will be painted after
456 // page overlays with smaller z-order number. That is, they appear above
457 // the page overlays with smaller z-order number. If two page overlays have
458 // the same z-order number, the later added one will be on top.
459 virtual void addPageOverlay(WebPageOverlay*, int /*z-order*/) = 0;
460
461 // Overlay this WebView with a solid color. 451 // Overlay this WebView with a solid color.
462 virtual void setPageOverlayColor(WebColor) = 0; 452 virtual void setPageOverlayColor(WebColor) = 0;
463 virtual void removePageOverlay(WebPageOverlay*) = 0;
464 453
465 454
466 // i18n ----------------------------------------------------------------- 455 // i18n -----------------------------------------------------------------
467 456
468 // Inform the WebView that the accept languages have changed. 457 // Inform the WebView that the accept languages have changed.
469 // If the WebView wants to get the accept languages value, it will have 458 // If the WebView wants to get the accept languages value, it will have
470 // to call the WebViewClient::acceptLanguages(). 459 // to call the WebViewClient::acceptLanguages().
471 virtual void acceptLanguagesChanged() = 0; 460 virtual void acceptLanguagesChanged() = 0;
472 461
473 // Testing functionality for TestRunner --------------------------------- 462 // Testing functionality for TestRunner ---------------------------------
474 463
475 // Force the webgl context to fail so that webglcontextcreationerror 464 // Force the webgl context to fail so that webglcontextcreationerror
476 // event gets generated/tested. 465 // event gets generated/tested.
477 virtual void forceNextWebGLContextCreationToFail() = 0; 466 virtual void forceNextWebGLContextCreationToFail() = 0;
478 467
479 // Force the drawing buffer used by webgl contexts to fail so that the webgl 468 // Force the drawing buffer used by webgl contexts to fail so that the webgl
480 // context's ability to deal with that failure gracefully can be tested. 469 // context's ability to deal with that failure gracefully can be tested.
481 virtual void forceNextDrawingBufferCreationToFail() = 0; 470 virtual void forceNextDrawingBufferCreationToFail() = 0;
482 471
483 protected: 472 protected:
484 ~WebView() {} 473 ~WebView() {}
485 }; 474 };
486 475
487 } // namespace blink 476 } // namespace blink
488 477
489 #endif 478 #endif
OLDNEW
« no previous file with comments | « public/web/WebPageOverlay.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698