Index: printing/printing_context_win.h |
diff --git a/printing/printing_context_win.h b/printing/printing_context_win.h |
index 99a7e3ef2b0c076964f92234973605b6185a69a2..e7869dc7087e2e1ee96f2e6e88e9d6846341178c 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_; |