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

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

Issue 59043013: Add flag to enable immersive fullscreen for v2 apps (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 106
107 // Returns true if |point| in local Cocoa coordinate system falls within 107 // Returns true if |point| in local Cocoa coordinate system falls within
108 // the draggable region. 108 // the draggable region.
109 bool IsWithinDraggableRegion(NSPoint point) const; 109 bool IsWithinDraggableRegion(NSPoint point) const;
110 110
111 NSRect restored_bounds() const { return restored_bounds_; } 111 NSRect restored_bounds() const { return restored_bounds_; }
112 bool use_system_drag() const { return use_system_drag_; } 112 bool use_system_drag() const { return use_system_drag_; }
113 113
114 protected: 114 protected:
115 // NativeAppWindow implementation. 115 // NativeAppWindow implementation.
116 virtual void SetFullscreen(bool fullscreen) OVERRIDE; 116 virtual void SetFullscreen(int fullscreen_types) OVERRIDE;
117 virtual bool IsFullscreenOrPending() const OVERRIDE; 117 virtual bool IsFullscreenOrPending() const OVERRIDE;
118 virtual bool IsDetached() const OVERRIDE; 118 virtual bool IsDetached() const OVERRIDE;
119 virtual void UpdateWindowIcon() OVERRIDE; 119 virtual void UpdateWindowIcon() OVERRIDE;
120 virtual void UpdateWindowTitle() OVERRIDE; 120 virtual void UpdateWindowTitle() OVERRIDE;
121 virtual void UpdateInputRegion(scoped_ptr<SkRegion> region) OVERRIDE; 121 virtual void UpdateInputRegion(scoped_ptr<SkRegion> region) OVERRIDE;
122 virtual void UpdateDraggableRegions( 122 virtual void UpdateDraggableRegions(
123 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE; 123 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE;
124 virtual SkRegion* GetDraggableRegion() OVERRIDE; 124 virtual SkRegion* GetDraggableRegion() OVERRIDE;
125 virtual void HandleKeyboardEvent( 125 virtual void HandleKeyboardEvent(
126 const content::NativeWebKeyboardEvent& event) OVERRIDE; 126 const content::NativeWebKeyboardEvent& event) OVERRIDE;
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 NSPoint last_mouse_location_; 222 NSPoint last_mouse_location_;
223 223
224 // The Extension Command Registry used to determine which keyboard events to 224 // The Extension Command Registry used to determine which keyboard events to
225 // handle. 225 // handle.
226 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; 226 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_;
227 227
228 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa); 228 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa);
229 }; 229 };
230 230
231 #endif // CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_ 231 #endif // CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_
OLDNEW
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | 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