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

Side by Side Diff: components/printing/renderer/print_web_view_helper.h

Issue 905573003: Style fixes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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
« no previous file with comments | « no previous file | components/printing/renderer/print_web_view_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_PRINTING_RENDERER_PRINT_WEB_VIEW_HELPER_H_ 5 #ifndef COMPONENTS_PRINTING_RENDERER_PRINT_WEB_VIEW_HELPER_H_
6 #define COMPONENTS_PRINTING_RENDERER_PRINT_WEB_VIEW_HELPER_H_ 6 #define COMPONENTS_PRINTING_RENDERER_PRINT_WEB_VIEW_HELPER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 blink::WebLocalFrame* frame_; 59 blink::WebLocalFrame* frame_;
60 }; 60 };
61 61
62 // PrintWebViewHelper handles most of the printing grunt work for RenderView. 62 // PrintWebViewHelper handles most of the printing grunt work for RenderView.
63 // We plan on making print asynchronous and that will require copying the DOM 63 // We plan on making print asynchronous and that will require copying the DOM
64 // of the document and creating a new WebView with the contents. 64 // of the document and creating a new WebView with the contents.
65 class PrintWebViewHelper 65 class PrintWebViewHelper
66 : public content::RenderViewObserver, 66 : public content::RenderViewObserver,
67 public content::RenderViewObserverTracker<PrintWebViewHelper> { 67 public content::RenderViewObserverTracker<PrintWebViewHelper> {
68 public: 68 public:
69
70 class Delegate { 69 class Delegate {
71 public: 70 public:
72 virtual ~Delegate() {} 71 virtual ~Delegate() {}
73 72
74 // Cancels prerender if it's currently in progress and returns |true| if 73 // Cancels prerender if it's currently in progress and returns |true| if
75 // the cancellation was done with success. 74 // the cancellation was done with success.
76 virtual bool CancelPrerender(content::RenderView* render_view, 75 virtual bool CancelPrerender(content::RenderView* render_view,
77 int routing_id) = 0; 76 int routing_id) = 0;
78 77
79 // Returns the element to be printed. Returns a null WebElement if 78 // Returns the element to be printed. Returns a null WebElement if
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
502 base::Closure on_stop_loading_closure_; 501 base::Closure on_stop_loading_closure_;
503 502
504 base::WeakPtrFactory<PrintWebViewHelper> weak_ptr_factory_; 503 base::WeakPtrFactory<PrintWebViewHelper> weak_ptr_factory_;
505 504
506 DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper); 505 DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper);
507 }; 506 };
508 507
509 } // namespace printing 508 } // namespace printing
510 509
511 #endif // COMPONENTS_PRINTING_RENDERER_PRINT_WEB_VIEW_HELPER_H_ 510 #endif // COMPONENTS_PRINTING_RENDERER_PRINT_WEB_VIEW_HELPER_H_
OLDNEW
« no previous file with comments | « no previous file | components/printing/renderer/print_web_view_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698