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

Side by Side Diff: chrome/browser/task_manager/printing_information.cc

Issue 1912773002: Remove the old task manager view (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: thestig's comments Created 4 years, 7 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #include "chrome/browser/task_manager/printing_information.h" 5 #include "chrome/browser/task_manager/printing_information.h"
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
(...skipping 11 matching lines...) Expand all
22 #include "content/public/browser/render_process_host.h" 22 #include "content/public/browser/render_process_host.h"
23 #include "content/public/browser/render_view_host.h" 23 #include "content/public/browser/render_view_host.h"
24 #include "content/public/browser/web_contents.h" 24 #include "content/public/browser/web_contents.h"
25 #include "ui/base/l10n/l10n_util.h" 25 #include "ui/base/l10n/l10n_util.h"
26 #include "ui/gfx/image/image_skia.h" 26 #include "ui/gfx/image/image_skia.h"
27 27
28 using content::WebContents; 28 using content::WebContents;
29 29
30 namespace task_manager { 30 namespace task_manager {
31 31
32 #if defined(ENABLE_PRINT_PREVIEW)
tapted 2016/04/26 01:54:03 should this file just be excluded via gyp/gn rules
afakhry 2016/04/26 22:22:43 We can do that. This if def matches the already ex
33
32 class PrintingResource : public RendererResource { 34 class PrintingResource : public RendererResource {
33 public: 35 public:
34 explicit PrintingResource(content::WebContents* web_contents); 36 explicit PrintingResource(content::WebContents* web_contents);
35 ~PrintingResource() override; 37 ~PrintingResource() override;
36 38
37 // Resource methods: 39 // Resource methods:
38 Type GetType() const override; 40 Type GetType() const override;
39 base::string16 GetTitle() const override; 41 base::string16 GetTitle() const override;
40 gfx::ImageSkia GetIcon() const override; 42 gfx::ImageSkia GetIcon() const override;
41 content::WebContents* GetWebContents() const override; 43 content::WebContents* GetWebContents() const override;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 // Add all the foreground print preview dialogs. 109 // Add all the foreground print preview dialogs.
108 printing::PrintPreviewDialogController::GetInstance()->ForEachPreviewDialog( 110 printing::PrintPreviewDialogController::GetInstance()->ForEachPreviewDialog(
109 callback); 111 callback);
110 } 112 }
111 113
112 std::unique_ptr<RendererResource> PrintingInformation::MakeResource( 114 std::unique_ptr<RendererResource> PrintingInformation::MakeResource(
113 WebContents* web_contents) { 115 WebContents* web_contents) {
114 return std::unique_ptr<RendererResource>(new PrintingResource(web_contents)); 116 return std::unique_ptr<RendererResource>(new PrintingResource(web_contents));
115 } 117 }
116 118
119 #endif // defined(ENABLE_PRINT_PREVIEW)
120
117 } // namespace task_manager 121 } // namespace task_manager
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698