File tree Expand file tree Collapse file tree 4 files changed +10
-9
lines changed Expand file tree Collapse file tree 4 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -264,8 +264,6 @@ bool PrintViewManager::OnMessageReceived(const IPC::Message& message) {
264
264
IPC_MESSAGE_HANDLER (PrintHostMsg_DidShowPrintDialog, OnDidShowPrintDialog)
265
265
IPC_MESSAGE_HANDLER (PrintHostMsg_DidPrintPage, OnDidPrintPage)
266
266
IPC_MESSAGE_HANDLER (PrintHostMsg_PrintingFailed, OnPrintingFailed)
267
- IPC_MESSAGE_HANDLER_DELAY_REPLY (PrintHostMsg_ScriptedPrintPreview,
268
- OnScriptedPrintPreview)
269
267
IPC_MESSAGE_UNHANDLED (handled = false )
270
268
IPC_END_MESSAGE_MAP ()
271
269
return handled;
Original file line number Diff line number Diff line change 43
43
44
44
#define NW_VERSION "v" NW_VERSION_STRING
45
45
46
- #define CHROME_VERSION "30.0.1599.36 "
46
+ #define CHROME_VERSION "30.0.1599.66 "
47
47
48
48
#define NW_VERSION_AT_LEAST (major , minor , patch ) \
49
49
(( (major) < NW_MAJOR_VERSION) \
Original file line number Diff line number Diff line change @@ -710,7 +710,10 @@ PrintWebViewHelper::PrintWebViewHelper(content::RenderView* render_view)
710
710
is_scripted_printing_blocked_(false ),
711
711
notify_browser_of_print_failure_(true ),
712
712
print_for_preview_(false ),
713
- print_node_in_progress_(false ) {
713
+ print_node_in_progress_(false ),
714
+ is_loading_(false ),
715
+ is_scripted_preview_delayed_(false ),
716
+ weak_ptr_factory_(this ) {
714
717
}
715
718
716
719
PrintWebViewHelper::~PrintWebViewHelper () {}
@@ -1620,11 +1623,7 @@ void PrintWebViewHelper::RequestPrintPreview(PrintPreviewRequestType type) {
1620
1623
params.has_selection = has_selection;
1621
1624
switch (type) {
1622
1625
case PRINT_PREVIEW_SCRIPTED: {
1623
- IPC::SyncMessage* msg =
1624
- new PrintHostMsg_ScriptedPrintPreview (routing_id (), is_modifiable);
1625
- msg->EnableMessagePumping ();
1626
- Send (msg);
1627
- return ;
1626
+ break ;
1628
1627
}
1629
1628
case PRINT_PREVIEW_USER_INITIATED_ENTIRE_FRAME: {
1630
1629
break ;
Original file line number Diff line number Diff line change 10
10
#include " base/gtest_prod_util.h"
11
11
#include " base/memory/scoped_ptr.h"
12
12
#include " base/memory/shared_memory.h"
13
+ #include " base/memory/weak_ptr.h"
13
14
#include " base/time/time.h"
14
15
#include " content/public/renderer/render_view_observer.h"
15
16
#include " content/public/renderer/render_view_observer_tracker.h"
@@ -458,6 +459,9 @@ class PrintWebViewHelper
458
459
459
460
bool print_node_in_progress_;
460
461
PrintPreviewContext print_preview_context_;
462
+ bool is_loading_;
463
+ bool is_scripted_preview_delayed_;
464
+ base::WeakPtrFactory<PrintWebViewHelper> weak_ptr_factory_;
461
465
DISALLOW_COPY_AND_ASSIGN (PrintWebViewHelper);
462
466
};
463
467
You can’t perform that action at this time.
0 commit comments