summaryrefslogtreecommitdiff
path: root/chromium/ui/base/cocoa/flipped_view.h
blob: 7bc117779d85e8d4173e2d4cd705d6d609a861d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright 2013 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 UI_BASE_COCOA_FLIPPED_VIEW_H_
#define UI_BASE_COCOA_FLIPPED_VIEW_H_

#import <Cocoa/Cocoa.h>

#include "ui/base/ui_base_export.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.
UI_BASE_EXPORT
@interface FlippedView : NSView
@end

#endif  // UI_BASE_COCOA_FLIPPED_VIEW_H_