12345678910111213141516171819202122232425262728 |
- // Copyright (c) 2015 The Chromium Authors. All rights reserved.
- // Use of this source code is governed by a BSD-style license that can be
- // found in the LICENSE file.
- #ifndef PRINTING_NATIVE_DRAWING_CONTEXT_H_
- #define PRINTING_NATIVE_DRAWING_CONTEXT_H_
- #include "build/build_config.h"
- #if BUILDFLAG(IS_WIN)
- #include "base/win/windows_types.h"
- #elif BUILDFLAG(IS_MAC)
- typedef struct CGContext* CGContextRef;
- #endif
- namespace printing {
- #if BUILDFLAG(IS_WIN)
- typedef HDC NativeDrawingContext;
- #elif BUILDFLAG(IS_MAC)
- typedef CGContextRef NativeDrawingContext;
- #else
- typedef void* NativeDrawingContext;
- #endif
- } // namespace printing
- #endif // PRINTING_NATIVE_DRAWING_CONTEXT_H_
|