| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_COCOA_BASE_VIEW_H_ | 5 #ifndef CHROME_BROWSER_COCOA_BASE_VIEW_H_ |
| 6 #define CHROME_BROWSER_COCOA_BASE_VIEW_H_ | 6 #define CHROME_BROWSER_COCOA_BASE_VIEW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #import <Cocoa/Cocoa.h> | 9 #import <Cocoa/Cocoa.h> |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 // Override these methods in a subclass. | 28 // Override these methods in a subclass. |
| 29 - (void)mouseEvent:(NSEvent *)theEvent; | 29 - (void)mouseEvent:(NSEvent *)theEvent; |
| 30 - (void)keyEvent:(NSEvent *)theEvent; | 30 - (void)keyEvent:(NSEvent *)theEvent; |
| 31 | 31 |
| 32 // Useful rect conversions (doing coordinate flipping) | 32 // Useful rect conversions (doing coordinate flipping) |
| 33 - (gfx::Rect)flipNSRectToRect:(NSRect)rect; | 33 - (gfx::Rect)flipNSRectToRect:(NSRect)rect; |
| 34 - (NSRect)flipRectToNSRect:(gfx::Rect)rect; | 34 - (NSRect)flipRectToNSRect:(gfx::Rect)rect; |
| 35 | 35 |
| 36 @end | 36 @end |
| 37 | 37 |
| 38 // A notification that a view may issue when it recieves first responder status. |
| 39 // The name is |kViewDidBecomeFirstResponder|, the object is the view, and the |
| 40 // NSSelectionDirection is wrapped in an NSNumber under the key |
| 41 // |kSelectionDirection|. |
| 42 extern NSString* kViewDidBecomeFirstResponder; |
| 43 extern NSString* kSelectionDirection; |
| 44 |
| 38 #endif // CHROME_BROWSER_COCOA_BASE_VIEW_H_ | 45 #endif // CHROME_BROWSER_COCOA_BASE_VIEW_H_ |
| OLD | NEW |