Revert of Output closure-compiled JavaScript files (patchset #10 id:180001 of https...
[chromium-blink-merge.git] / ui / base / cocoa / nsgraphics_context_additions.h
blob7a373ef67c0b34862dd0a0d26ac9811423d5a528
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.
5 #ifndef UI_BASE_COCOA_NSGRAPHICS_CONTEXT_ADDITIONS_H_
6 #define UI_BASE_COCOA_NSGRAPHICS_CONTEXT_ADDITIONS_H_
8 #import <Cocoa/Cocoa.h>
10 @interface NSGraphicsContext (CrAdditions)
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.
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;
21 @end
23 #endif // UI_BASE_COCOA_NSGRAPHICS_CONTEXT_ADDITIONS_H_