1868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)// Copyright 2013 The Chromium Authors. All rights reserved. 25821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// Use of this source code is governed by a BSD-style license that can be 35821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// found in the LICENSE file. 45821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 5868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)#ifndef UI_BASE_COCOA_FLIPPED_VIEW_H_ 6868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)#define UI_BASE_COCOA_FLIPPED_VIEW_H_ 75821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 85821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#import <Cocoa/Cocoa.h> 95821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 105d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)#include "ui/base/ui_base_export.h" 11868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles) 125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// A view where the Y axis is flipped such that the origin is at the top left 135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// and Y value increases downwards. Drawing is flipped so that layout of the 145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// sections is easier. Apple recommends flipping the coordinate origin when 155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)// doing a lot of text layout because it's more natural. 165d1f7b1de12d16ceb2c938c56701a3e8bfa558f7Torne (Richard Coles)UI_BASE_EXPORT 175821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)@interface FlippedView : NSView 185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)@end 195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) 20868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)#endif // UI_BASE_COCOA_FLIPPED_VIEW_H_ 21