Home | History | Annotate | Download | only in printing
      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
      3 // found in the LICENSE file.
      4 
      5 #ifndef CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_H_
      6 #define CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_H_
      7 #pragma once
      8 
      9 #include <string>
     10 
     11 #include "base/basictypes.h"
     12 #include "base/string16.h"
     13 
     14 class FilePath;
     15 class CommandLine;
     16 
     17 namespace print_dialog_cloud {
     18 
     19 // Called on the FILE or UI thread. Even though this may start up a modal
     20 // dialog, it will return immediately. The dialog is handled asynchronously.
     21 void CreatePrintDialogForFile(const FilePath& path_to_file,
     22                               const string16& print_job_title,
     23                               const std::string& file_type,
     24                               bool modal);
     25 
     26 // Parse switches from command_line and display the print dialog as appropriate.
     27 bool CreatePrintDialogFromCommandLine(const CommandLine& command_line);
     28 
     29 }  // end namespace
     30 
     31 #endif  // CHROME_BROWSER_PRINTING_PRINT_DIALOG_CLOUD_H_
     32