DescriptionRefactor Android printing code to make it more testable.
* Move printing logic from Tab to TabBase (i.e. to upstream), and
also in the relevant files tab_android.*, TabPrinter.java.
* Remove obsolete Android printing feature detection code.
* Move PrintingControllerFactory logic into PrintingControllerImpl.
* Create a new PrintingControllerFactory, so the clients have a
ligher weight creation process (5-6 lines to 1).
* Instead of depending on Context to create a PrintManager, depend
on an interface, namely PrintManagerDelegate.
* Remove setErrorText (move the logic inside factory).
* Remove the hardcoded default file name (use Printable#getTitle)
instead.
BUG=315229
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=236256
Patch Set 1 #Patch Set 2 : Moved isPrintingController into PrintingControllerImpl, cleaned tiny bits #
Total comments: 27
Patch Set 3 : Add PrintingControllerController #Patch Set 4 : Fix compile issue #
Total comments: 39
Patch Set 5 : Address nyquist comments #Patch Set 6 : Add license to PrintingControllerFactory #Messages
Total messages: 14 (0 generated)
|