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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 virtual void RemoveObserver( | 161 virtual void RemoveObserver( |
162 web_modal::ModalDialogHostObserver* observer) OVERRIDE; | 162 web_modal::ModalDialogHostObserver* observer) OVERRIDE; |
163 | 163 |
164 private: | 164 private: |
165 virtual ~NativeAppWindowCocoa(); | 165 virtual ~NativeAppWindowCocoa(); |
166 | 166 |
167 ShellNSWindow* window() const; | 167 ShellNSWindow* window() const; |
168 content::WebContents* WebContents() const; | 168 content::WebContents* WebContents() const; |
169 | 169 |
170 // Returns the WindowStyleMask based on the type of window frame. | 170 // Returns the WindowStyleMask based on the type of window frame. |
171 // Specifically, this includes NSResizableWindowMask if the window is | 171 // This includes NSResizableWindowMask if the window is resizable. |
172 // resizable, and does not include NSTexturedBackgroundWindowMask when a | |
173 // native frame is used. | |
174 NSUInteger GetWindowStyleMask() const; | 172 NSUInteger GetWindowStyleMask() const; |
175 | 173 |
176 void InstallView(); | 174 void InstallView(); |
177 void UninstallView(); | 175 void UninstallView(); |
178 void UpdateDraggableRegionViews(); | 176 void UpdateDraggableRegionViews(); |
179 | 177 |
180 // Cache |restored_bounds_| only if the window is currently restored. | 178 // Cache |restored_bounds_| only if the window is currently restored. |
181 void UpdateRestoredBounds(); | 179 void UpdateRestoredBounds(); |
182 | 180 |
183 // Hides the window unconditionally. Used by Hide and HideWithApp. | 181 // Hides the window unconditionally. Used by Hide and HideWithApp. |
(...skipping 25 matching lines...) Expand all Loading... |
209 std::vector<extensions::DraggableRegion> draggable_regions_; | 207 std::vector<extensions::DraggableRegion> draggable_regions_; |
210 | 208 |
211 // The Extension Command Registry used to determine which keyboard events to | 209 // The Extension Command Registry used to determine which keyboard events to |
212 // handle. | 210 // handle. |
213 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; | 211 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; |
214 | 212 |
215 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa); | 213 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa); |
216 }; | 214 }; |
217 | 215 |
218 #endif // CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_ | 216 #endif // CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_ |
OLD | NEW |