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

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

Issue 2551773002: MacViews: Exploring removal of window-modal sheets.
Patch Set: Created 4 years 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 9
10 #include <memory> 10 #include <memory>
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 void SetVisibleOnAllWorkspaces(bool always_visible) override; 154 void SetVisibleOnAllWorkspaces(bool always_visible) override;
155 155
156 // WebContentsObserver implementation. 156 // WebContentsObserver implementation.
157 void RenderViewCreated(content::RenderViewHost* rvh) override; 157 void RenderViewCreated(content::RenderViewHost* rvh) override;
158 158
159 void SetAlwaysOnTop(bool always_on_top) override; 159 void SetAlwaysOnTop(bool always_on_top) override;
160 160
161 // WebContentsModalDialogHost implementation. 161 // WebContentsModalDialogHost implementation.
162 gfx::NativeView GetHostView() const override; 162 gfx::NativeView GetHostView() const override;
163 gfx::Point GetDialogPosition(const gfx::Size& size) override; 163 gfx::Point GetDialogPosition(const gfx::Size& size) override;
164 gfx::Point GetHostPosition() const override;
164 gfx::Size GetMaximumDialogSize() override; 165 gfx::Size GetMaximumDialogSize() override;
165 void AddObserver(web_modal::ModalDialogHostObserver* observer) override; 166 void AddObserver(web_modal::ModalDialogHostObserver* observer) override;
166 void RemoveObserver(web_modal::ModalDialogHostObserver* observer) override; 167 void RemoveObserver(web_modal::ModalDialogHostObserver* observer) override;
167 168
168 private: 169 private:
169 ~NativeAppWindowCocoa() override; 170 ~NativeAppWindowCocoa() override;
170 171
171 AppNSWindow* window() const; 172 AppNSWindow* window() const;
172 content::WebContents* WebContents() const; 173 content::WebContents* WebContents() const;
173 174
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
218 std::unique_ptr<ExtensionKeybindingRegistryCocoa> 219 std::unique_ptr<ExtensionKeybindingRegistryCocoa>
219 extension_keybinding_registry_; 220 extension_keybinding_registry_;
220 221
221 // Tracks the last time the extension asked the window to activate. 222 // Tracks the last time the extension asked the window to activate.
222 base::Time last_activate_; 223 base::Time last_activate_;
223 224
224 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa); 225 DISALLOW_COPY_AND_ASSIGN(NativeAppWindowCocoa);
225 }; 226 };
226 227
227 #endif // CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_ 228 #endif // CHROME_BROWSER_UI_COCOA_APPS_NATIVE_APP_WINDOW_COCOA_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_view_host.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