summaryrefslogtreecommitdiffstats
path: root/chrome/browser/ui/cocoa/flipped_view.h
blob: 34d14ac5cae16fe56f2d80f4d0ae56b992a3b225 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright (c) 2012 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 CHROME_BROWSER_UI_COCOA_FLIPPED_VIEW_H_
#define CHROME_BROWSER_UI_COCOA_FLIPPED_VIEW_H_

#import <Cocoa/Cocoa.h>

// A view where the Y axis is flipped such that the origin is at the top left
// and Y value increases downwards. Drawing is flipped so that layout of the
// sections is easier. Apple recommends flipping the coordinate origin when
// doing a lot of text layout because it's more natural.
@interface FlippedView : NSView
@end

#endif  // CHROME_BROWSER_UI_COCOA_FLIPPED_VIEW_H_