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

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

Issue 1050783003: Remove stylesheet injection from Blink. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Revert devtool removals Created 5 years, 8 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 | « Source/web/tests/ViewportTest.cpp ('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 408 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 BLINK_EXPORT static void resetVisitedLinkState(); 419 BLINK_EXPORT static void resetVisitedLinkState();
420 420
421 421
422 // Custom colors ------------------------------------------------------- 422 // Custom colors -------------------------------------------------------
423 423
424 virtual void setSelectionColors(unsigned activeBackgroundColor, 424 virtual void setSelectionColors(unsigned activeBackgroundColor,
425 unsigned activeForegroundColor, 425 unsigned activeForegroundColor,
426 unsigned inactiveBackgroundColor, 426 unsigned inactiveBackgroundColor,
427 unsigned inactiveForegroundColor) = 0; 427 unsigned inactiveForegroundColor) = 0;
428 428
429 // Injected style ------------------------------------------------------
430
431 // Treats |sourceCode| as a CSS author style sheet and injects it into all D ocuments whose URLs match |patterns|,
432 // in the frames specified by the last argument.
433 BLINK_EXPORT static void injectStyleSheet(const WebString& sourceCode, const WebVector<WebString>& patterns, StyleInjectionTarget);
434 BLINK_EXPORT static void removeInjectedStyleSheets();
435
436 // Modal dialog support ------------------------------------------------ 429 // Modal dialog support ------------------------------------------------
437 430
438 // Call these methods before and after running a nested, modal event loop 431 // Call these methods before and after running a nested, modal event loop
439 // to suspend script callbacks and resource loads. 432 // to suspend script callbacks and resource loads.
440 BLINK_EXPORT static void willEnterModalLoop(); 433 BLINK_EXPORT static void willEnterModalLoop();
441 BLINK_EXPORT static void didExitModalLoop(); 434 BLINK_EXPORT static void didExitModalLoop();
442 435
443 // Called to inform the WebView that a wheel fling animation was started ext ernally (for instance 436 // Called to inform the WebView that a wheel fling animation was started ext ernally (for instance
444 // by the compositor) but must be completed by the WebView. 437 // by the compositor) but must be completed by the WebView.
445 virtual void transferActiveWheelFlingAnimation(const WebActiveWheelFlingPara meters&) = 0; 438 virtual void transferActiveWheelFlingAnimation(const WebActiveWheelFlingPara meters&) = 0;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
485 // event gets generated/tested. 478 // event gets generated/tested.
486 virtual void forceNextWebGLContextCreationToFail() = 0; 479 virtual void forceNextWebGLContextCreationToFail() = 0;
487 480
488 protected: 481 protected:
489 ~WebView() {} 482 ~WebView() {}
490 }; 483 };
491 484
492 } // namespace blink 485 } // namespace blink
493 486
494 #endif 487 #endif
OLDNEW
« no previous file with comments | « Source/web/tests/ViewportTest.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698