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

Side by Side Diff: chrome/renderer/print_web_view_helper.h

Issue 7259019: Move base/values.h into the base namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 5 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_ 5 #ifndef CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_
6 #define CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_ 6 #define CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/shared_memory.h" 10 #include "base/shared_memory.h"
11 #include "base/time.h" 11 #include "base/time.h"
12 #include "content/renderer/render_view_observer.h" 12 #include "content/renderer/render_view_observer.h"
13 #include "content/renderer/render_view_observer_tracker.h" 13 #include "content/renderer/render_view_observer_tracker.h"
14 #include "printing/metafile.h" 14 #include "printing/metafile.h"
15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrameClient.h" 15 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrameClient.h"
16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebViewClient.h" 16 #include "third_party/WebKit/Source/WebKit/chromium/public/WebViewClient.h"
17 #include "ui/gfx/size.h" 17 #include "ui/gfx/size.h"
18 18
19 class DictionaryValue;
20 struct PrintMsg_Print_Params; 19 struct PrintMsg_Print_Params;
21 struct PrintMsg_PrintPage_Params; 20 struct PrintMsg_PrintPage_Params;
22 struct PrintMsg_PrintPages_Params; 21 struct PrintMsg_PrintPages_Params;
23 22
23 namespace base {
24 class DictionaryValue;
25 }
26
27 using base::DictionaryValue;
28
24 // Class that calls the Begin and End print functions on the frame and changes 29 // Class that calls the Begin and End print functions on the frame and changes
25 // the size of the view temporarily to support full page printing.. 30 // the size of the view temporarily to support full page printing..
26 // Do not serve any events in the time between construction and destruction of 31 // Do not serve any events in the time between construction and destruction of
27 // this class because it will cause flicker. 32 // this class because it will cause flicker.
28 class PrepareFrameAndViewForPrint { 33 class PrepareFrameAndViewForPrint {
29 public: 34 public:
30 // Prints |frame|. If |node| is not NULL, then only that node will be 35 // Prints |frame|. If |node| is not NULL, then only that node will be
31 // printed. 36 // printed.
32 PrepareFrameAndViewForPrint(const PrintMsg_Print_Params& print_params, 37 PrepareFrameAndViewForPrint(const PrintMsg_Print_Params& print_params,
33 WebKit::WebFrame* frame, 38 WebKit::WebFrame* frame,
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
274 // the failure came from the browser in the first place. 279 // the failure came from the browser in the first place.
275 bool notify_browser_of_print_failure_; 280 bool notify_browser_of_print_failure_;
276 281
277 int preview_page_count_; 282 int preview_page_count_;
278 scoped_ptr<PrintMsg_PrintPages_Params> old_print_pages_params_; 283 scoped_ptr<PrintMsg_PrintPages_Params> old_print_pages_params_;
279 284
280 DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper); 285 DISALLOW_COPY_AND_ASSIGN(PrintWebViewHelper);
281 }; 286 };
282 287
283 #endif // CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_ 288 #endif // CHROME_RENDERER_PRINT_WEB_VIEW_HELPER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698