mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Add support for printing via CefBrowserHost::Print() and JavaScript window.print() (issue #505).
git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@1479 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -27,6 +27,10 @@ namespace content {
|
||||
class ContentMainRunner;
|
||||
}
|
||||
|
||||
namespace printing {
|
||||
class PrintJobManager;
|
||||
}
|
||||
|
||||
class CefBrowserHostImpl;
|
||||
class CefMainDelegate;
|
||||
class CefTraceSubscriber;
|
||||
@@ -61,6 +65,10 @@ class CefContext : public content::NotificationObserver {
|
||||
|
||||
const CefSettings& settings() const { return settings_; }
|
||||
|
||||
printing::PrintJobManager* print_job_manager() const {
|
||||
return print_job_manager_.get();
|
||||
}
|
||||
|
||||
CefTraceSubscriber* GetTraceSubscriber();
|
||||
|
||||
private:
|
||||
@@ -95,6 +103,7 @@ class CefContext : public content::NotificationObserver {
|
||||
|
||||
// Only accessed on the UI Thread.
|
||||
scoped_ptr<content::NotificationRegistrar> registrar_;
|
||||
scoped_ptr<printing::PrintJobManager> print_job_manager_;
|
||||
};
|
||||
|
||||
// Helper macro that returns true if the global context is in a valid state.
|
||||
|
Reference in New Issue
Block a user