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

Side by Side Diff: chrome/browser/ui/webui/print_preview_handler.cc

Issue 6598084: Get rid of temporary render_view_host.h. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 9 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 #include "chrome/browser/ui/webui/print_preview_handler.h" 5 #include "chrome/browser/ui/webui/print_preview_handler.h"
6 6
7 #include "base/values.h" 7 #include "base/values.h"
8 #include "chrome/browser/renderer_host/render_view_host.h" 8 #include "content/browser/renderer_host/render_view_host.h"
9 #include "printing/backend/print_backend.h" 9 #include "printing/backend/print_backend.h"
10 10
11 PrintPreviewHandler::PrintPreviewHandler() 11 PrintPreviewHandler::PrintPreviewHandler()
12 : print_backend_(printing::PrintBackend::CreateInstance(NULL)) { 12 : print_backend_(printing::PrintBackend::CreateInstance(NULL)) {
13 } 13 }
14 14
15 PrintPreviewHandler::~PrintPreviewHandler() { 15 PrintPreviewHandler::~PrintPreviewHandler() {
16 } 16 }
17 17
18 void PrintPreviewHandler::RegisterMessages() { 18 void PrintPreviewHandler::RegisterMessages() {
(...skipping 12 matching lines...) Expand all
31 index != printer_list.end(); ++index) { 31 index != printer_list.end(); ++index) {
32 printers.Append(new StringValue(index->printer_name)); 32 printers.Append(new StringValue(index->printer_name));
33 } 33 }
34 34
35 web_ui_->CallJavascriptFunction(L"setPrinters", printers); 35 web_ui_->CallJavascriptFunction(L"setPrinters", printers);
36 } 36 }
37 37
38 void PrintPreviewHandler::HandlePrint(const ListValue*) { 38 void PrintPreviewHandler::HandlePrint(const ListValue*) {
39 web_ui_->GetRenderViewHost()->PrintForPrintPreview(); 39 web_ui_->GetRenderViewHost()->PrintForPrintPreview();
40 } 40 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/new_tab_page_sync_handler.cc ('k') | chrome/test/plugin/pdf_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698