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

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

Issue 22903022: Limit constrained windows to the size of the parent view. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: No initializer Created 7 years, 3 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
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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 122
123 // These are used to simulate Mac-style hide/show. Since windows can be hidden 123 // These are used to simulate Mac-style hide/show. Since windows can be hidden
124 // and shown using the app.window API, this sets is_hidden_with_app_ to 124 // and shown using the app.window API, this sets is_hidden_with_app_ to
125 // differentiate the reason a window was hidden. 125 // differentiate the reason a window was hidden.
126 virtual void ShowWithApp() OVERRIDE; 126 virtual void ShowWithApp() OVERRIDE;
127 virtual void HideWithApp() OVERRIDE; 127 virtual void HideWithApp() OVERRIDE;
128 128
129 // WebContentsModalDialogHost implementation. 129 // WebContentsModalDialogHost implementation.
130 virtual gfx::NativeView GetHostView() const OVERRIDE; 130 virtual gfx::NativeView GetHostView() const OVERRIDE;
131 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE; 131 virtual gfx::Point GetDialogPosition(const gfx::Size& size) OVERRIDE;
132 virtual gfx::Size GetMaximumDialogSize() OVERRIDE;
132 virtual void AddObserver( 133 virtual void AddObserver(
133 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE; 134 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE;
134 virtual void RemoveObserver( 135 virtual void RemoveObserver(
135 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE; 136 web_modal::WebContentsModalDialogHostObserver* observer) OVERRIDE;
136 137
137 private: 138 private:
138 virtual ~NativeAppWindowCocoa(); 139 virtual ~NativeAppWindowCocoa();
139 140
140 ShellNSWindow* window() const; 141 ShellNSWindow* window() const;
141 142
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 NSPoint last_mouse_location_; 207 NSPoint last_mouse_location_;
207 208
208 // The Extension Command Registry used to determine which keyboard events to 209 // The Extension Command Registry used to determine which keyboard events to
209 // handle. 210 // handle.
210 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_; 211 scoped_ptr<ExtensionKeybindingRegistryCocoa> extension_keybinding_registry_;
211 212
212 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa); 213 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa);
213 }; 214 };
214 215
215 #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 | « chrome/browser/printing/print_preview_test.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