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

Unified Diff: chrome/browser/ui/cocoa/profiles/signin_view_controller_delegate_mac.h

Issue 2617583006: Using native sheet to display modal dialogs for sign in (Closed)
Patch Set: Using ui::ModalType Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/profiles/signin_view_controller_delegate_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/profiles/signin_view_controller_delegate_mac.h
diff --git a/chrome/browser/ui/cocoa/profiles/signin_view_controller_delegate_mac.h b/chrome/browser/ui/cocoa/profiles/signin_view_controller_delegate_mac.h
index d0dd30235fdf77c5ba21c658a55db62ed7cfa83f..a866e953850cbddc8dc4bca37a9c02bc93744805 100644
--- a/chrome/browser/ui/cocoa/profiles/signin_view_controller_delegate_mac.h
+++ b/chrome/browser/ui/cocoa/profiles/signin_view_controller_delegate_mac.h
@@ -12,6 +12,7 @@
#include "chrome/browser/ui/cocoa/constrained_window/constrained_window_mac.h"
#include "chrome/browser/ui/profile_chooser_constants.h"
#include "chrome/browser/ui/signin_view_controller_delegate.h"
+#include "ui/base/ui_base_types.h"
@class ConstrainedWindowCustomWindow;
class ConstrainedWindowMac;
@@ -43,6 +44,7 @@ class SigninViewControllerDelegateMac : public ConstrainedWindowMacDelegate,
std::unique_ptr<content::WebContents> web_contents,
content::WebContents* host_web_contents,
NSRect frame,
+ ui::ModalType dialog_modal_type,
msarda 2017/01/11 14:29:21 For consistency with the views implementation, ple
jlebel 2017/01/11 14:39:52 Done.
bool wait_for_size);
void OnConstrainedWindowClosed(ConstrainedWindowMac* window) override;
@@ -74,6 +76,9 @@ class SigninViewControllerDelegateMac : public ConstrainedWindowMacDelegate,
~SigninViewControllerDelegateMac() override;
+ // Deletes this object.
+ void DeleteThis();
+
// The constrained window opened by this delegate to display signin flow
// content.
std::unique_ptr<ConstrainedWindowMac> constrained_window_;
@@ -90,6 +95,10 @@ class SigninViewControllerDelegateMac : public ConstrainedWindowMacDelegate,
// The web contents that the constrained window is displayed off of.
// Typically, this is going to be the active tab when the window is shown.
content::WebContents* host_web_contents_;
+
+ // The dialog modal presentation type.
+ ui::ModalType dialog_modal_type_;
+
NSRect window_frame_;
DISALLOW_COPY_AND_ASSIGN(SigninViewControllerDelegateMac);
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/profiles/signin_view_controller_delegate_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698