Upload upstream chromium 73.0.3683.0
[platform/framework/web/chromium-efl.git] / printing / native_drawing_context.h
1 // Copyright (c) 2015 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 PRINTING_NATIVE_DRAWING_CONTEXT_H_
6 #define PRINTING_NATIVE_DRAWING_CONTEXT_H_
7
8 #include "build/build_config.h"
9
10 #if defined(OS_WIN)
11 #include <windows.h>
12 #elif defined(OS_MACOSX)
13 typedef struct CGContext* CGContextRef;
14 #endif
15
16 namespace printing {
17
18 #if defined(OS_WIN)
19 typedef HDC NativeDrawingContext;
20 #elif defined(OS_MACOSX)
21 typedef CGContextRef NativeDrawingContext;
22 #else
23 typedef void* NativeDrawingContext;
24 #endif
25
26 }  // namespace skia
27
28 #endif  // PRINTING_NATIVE_DRAWING_CONTEXT_H_