Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Side by Side Diff: chrome/browser/ui/cocoa/apps/native_app_window_cocoa.h

Issue 307843002: Always set NSTexturedBackgroundWindowMask on app windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Don't re-declare drawCustomFrameRect Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/apps/native_app_window_cocoa.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/apps/native_app_window_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698