summaryrefslogtreecommitdiffstats
path: root/printing/printing_context_win.h
diff options
context:
space:
mode:
Diffstat (limited to 'printing/printing_context_win.h')
-rw-r--r--printing/printing_context_win.h24
1 files changed, 14 insertions, 10 deletions
diff --git a/printing/printing_context_win.h b/printing/printing_context_win.h
index 99a7e3e..e7869dc 100644
--- a/printing/printing_context_win.h
+++ b/printing/printing_context_win.h
@@ -5,18 +5,16 @@
#ifndef PRINTING_PRINTING_CONTEXT_WIN_H_
#define PRINTING_PRINTING_CONTEXT_WIN_H_
-#include <ocidl.h>
-#include <commdlg.h>
-
#include <string>
#include "base/memory/scoped_ptr.h"
-#include "build/build_config.h"
#include "printing/printing_context.h"
#include "ui/gfx/native_widget_types.h"
namespace printing {
+class PrintSettings;
+
class PRINTING_EXPORT PrintingContextWin : public PrintingContext {
public:
explicit PrintingContextWin(Delegate* delegate);
@@ -41,20 +39,26 @@ class PRINTING_EXPORT PrintingContextWin : public PrintingContext {
virtual gfx::NativeDrawingContext context() const OVERRIDE;
protected:
+ static HWND GetRootWindow(gfx::NativeView view);
+
+ // Reads the settings from the selected device context. Updates settings_ and
+ // its margins.
+ virtual Result InitializeSettings(const base::string16& device_name,
+ DEVMODE* dev_mode);
+
+ HDC contest() const { return context_; }
+
+ void set_context(HDC context) { context_ = context; }
+
+ private:
virtual scoped_ptr<DEVMODE, base::FreeDeleter> ShowPrintDialog(
HANDLE printer,
gfx::NativeView parent_view,
DEVMODE* dev_mode);
- private:
// Used in response to the user canceling the printing.
static BOOL CALLBACK AbortProc(HDC hdc, int nCode);
- // Reads the settings from the selected device context. Updates settings_ and
- // its margins.
- virtual Result InitializeSettings(const base::string16& device_name,
- DEVMODE* dev_mode);
-
// The selected printer context.
HDC context_;