OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_APPS_NATIVE_APP_WINDOW_COCOA_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_ |
6 #define CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_ | 6 #define CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
94 | 94 |
95 // Called when the window is minimized. | 95 // Called when the window is minimized. |
96 void WindowDidMiniaturize(); | 96 void WindowDidMiniaturize(); |
97 | 97 |
98 // Called when the window is un-minimized. | 98 // Called when the window is un-minimized. |
99 void WindowDidDeminiaturize(); | 99 void WindowDidDeminiaturize(); |
100 | 100 |
101 // Called when the window is zoomed (maximized or de-maximized). | 101 // Called when the window is zoomed (maximized or de-maximized). |
102 void WindowWillZoom(); | 102 void WindowWillZoom(); |
103 | 103 |
| 104 // Called when the window enters fullscreen. |
| 105 void WindowDidEnterFullscreen(); |
| 106 |
| 107 // Called when the window exits fullscreen. |
| 108 void WindowDidExitFullscreen(); |
| 109 |
104 // Called to handle a key event. | 110 // Called to handle a key event. |
105 bool HandledByExtensionCommand(NSEvent* event); | 111 bool HandledByExtensionCommand(NSEvent* event); |
106 | 112 |
107 // Returns true if |point| in local Cocoa coordinate system falls within | 113 // Returns true if |point| in local Cocoa coordinate system falls within |
108 // the draggable region. | 114 // the draggable region. |
109 bool IsWithinDraggableRegion(NSPoint point) const; | 115 bool IsWithinDraggableRegion(NSPoint point) const; |
110 | 116 |
111 NSRect restored_bounds() const { return restored_bounds_; } | 117 NSRect restored_bounds() const { return restored_bounds_; } |
112 | 118 |
113 protected: | 119 protected: |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 std::vector<extensions::DraggableRegion> draggable_regions_; | 212 std::vector<extensions::DraggableRegion> draggable_regions_; |
207 | 213 |
208 // The Extension Command Registry used to determine which keyboard events to | 214 // The Extension Command Registry used to determine which keyboard events to |
209 // handle. | 215 // handle. |
210 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; | 216 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; |
211 | 217 |
212 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa); | 218 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa); |
213 }; | 219 }; |
214 | 220 |
215 #endif // CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_ | 221 #endif // CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_ |
OLD | NEW |