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

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

Issue 14031021: Save and restore State for ShellWindows, including panels (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_EXTENSIONS_NATIVE_APP_WINDOW_COCOA_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_EXTENSIONS_NATIVE_APP_WINDOW_COCOA_H_
6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_NATIVE_APP_WINDOW_COCOA_H_ 6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 // Returns true if |point| in local Cocoa coordinate system falls within 97 // Returns true if |point| in local Cocoa coordinate system falls within
98 // the draggable region. 98 // the draggable region.
99 bool IsWithinDraggableRegion(NSPoint point) const; 99 bool IsWithinDraggableRegion(NSPoint point) const;
100 100
101 bool use_system_drag() const { return use_system_drag_; } 101 bool use_system_drag() const { return use_system_drag_; }
102 102
103 protected: 103 protected:
104 // NativeAppWindow implementation. 104 // NativeAppWindow implementation.
105 virtual void SetFullscreen(bool fullscreen) OVERRIDE; 105 virtual void SetFullscreen(bool fullscreen) OVERRIDE;
106 virtual bool IsFullscreenOrPending() const OVERRIDE; 106 virtual bool IsFullscreenOrPending() const OVERRIDE;
107 virtual bool IsDetached() const OVERRIDE;
107 virtual void UpdateWindowIcon() OVERRIDE; 108 virtual void UpdateWindowIcon() OVERRIDE;
108 virtual void UpdateWindowTitle() OVERRIDE; 109 virtual void UpdateWindowTitle() OVERRIDE;
109 virtual void UpdateDraggableRegions( 110 virtual void UpdateDraggableRegions(
110 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE; 111 const std::vector<extensions::DraggableRegion>& regions) OVERRIDE;
111 virtual void HandleKeyboardEvent( 112 virtual void HandleKeyboardEvent(
112 const content::NativeWebKeyboardEvent& event) OVERRIDE; 113 const content::NativeWebKeyboardEvent& event) OVERRIDE;
113 virtual void RenderViewHostChanged() OVERRIDE; 114 virtual void RenderViewHostChanged() OVERRIDE;
114 virtual gfx::Insets GetFrameInsets() const OVERRIDE; 115 virtual gfx::Insets GetFrameInsets() const OVERRIDE;
115 116
116 // WebContentsModalDialogHost implementation. 117 // WebContentsModalDialogHost implementation.
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 NSPoint last_mouse_location_; 173 NSPoint last_mouse_location_;
173 174
174 // The Extension Command Registry used to determine which keyboard events to 175 // The Extension Command Registry used to determine which keyboard events to
175 // handle. 176 // handle.
176 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; 177 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_;
177 178
178 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa); 179 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa);
179 }; 180 };
180 181
181 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_NATIVE_APP_WINDOW_COCOA_H_ 182 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_NATIVE_APP_WINDOW_COCOA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698