OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_UI_COCOA_BROWSER_WINDOW_UTILS_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_UTILS_H_ |
6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_UTILS_H_ | 6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_UTILS_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #include "chrome/browser/ui/cocoa/themed_window.h" | 10 #include "chrome/browser/ui/cocoa/themed_window.h" |
11 | 11 |
12 class Browser; | |
13 | |
14 namespace content { | 12 namespace content { |
15 struct NativeWebKeyboardEvent; | 13 struct NativeWebKeyboardEvent; |
16 } | 14 } |
17 | 15 |
18 @interface BrowserWindowUtils : NSObject | 16 @interface BrowserWindowUtils : NSObject |
19 | 17 |
20 // Returns YES if keyboard event should be handled. | 18 // Returns YES if keyboard event should be handled. |
21 + (BOOL)shouldHandleKeyboardEvent:(const content::NativeWebKeyboardEvent&)event; | 19 + (BOOL)shouldHandleKeyboardEvent:(const content::NativeWebKeyboardEvent&)event; |
22 | 20 |
23 // Returns YES if keyboard event is a text editing command such as Copy or Paste | 21 // Returns YES if keyboard event is a text editing command such as Copy or Paste |
(...skipping 29 matching lines...) Expand all Loading... |
53 // of a theme image should be painted at. This method exists so that the | 51 // of a theme image should be painted at. This method exists so that the |
54 // position can be queried by the new tab button before the tab strip is layed | 52 // position can be queried by the new tab button before the tab strip is layed |
55 // out. | 53 // out. |
56 + (NSPoint)themeImagePositionInTabStripCoords:(NSView*)tabStripView | 54 + (NSPoint)themeImagePositionInTabStripCoords:(NSView*)tabStripView |
57 alignment:(ThemeImageAlignment)alignment; | 55 alignment:(ThemeImageAlignment)alignment; |
58 | 56 |
59 + (void)activateWindowForController:(NSWindowController*)controller; | 57 + (void)activateWindowForController:(NSWindowController*)controller; |
60 @end | 58 @end |
61 | 59 |
62 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_UTILS_H_ | 60 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_UTILS_H_ |
OLD | NEW |