- add sources.
[platform/framework/web/crosswalk.git] / src / ui / base / cocoa / nsgraphics_context_additions.h
1 // Copyright (c) 2013 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 UI_BASE_COCOA_NSGRAPHICS_CONTEXT_ADDITIONS_H_
6 #define UI_BASE_COCOA_NSGRAPHICS_CONTEXT_ADDITIONS_H_
7
8 #import <Cocoa/Cocoa.h>
9
10 @interface NSGraphicsContext (CrAdditions)
11
12 // When a view is not layer backed the pattern phase is relative to the origin
13 // of the window's content view. With a layer backed view the pattern phase is
14 // relative to the origin of the view.
15 //
16 // For layer backed view this method offsets the pattern phase to match the
17 // behavior of non layer backed views.
18 - (void)cr_setPatternPhase:(NSPoint)phase
19                    forView:(NSView*)view;
20
21 @end
22
23 #endif  // UI_BASE_COCOA_NSGRAPHICS_CONTEXT_ADDITIONS_H_