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

Unified Diff: chrome/browser/ui/cocoa/constrained_window/constrained_window_web_dialog_sheet.h

Issue 817273003: [Mac] Make ConstrainedWebDialog resize with parent window (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/constrained_window/constrained_window_web_dialog_sheet.h
diff --git a/chrome/browser/ui/cocoa/constrained_window/constrained_window_web_dialog_sheet.h b/chrome/browser/ui/cocoa/constrained_window/constrained_window_web_dialog_sheet.h
new file mode 100644
index 0000000000000000000000000000000000000000..57ba754af0e04215a799bda96a89013492e9b1b6
--- /dev/null
+++ b/chrome/browser/ui/cocoa/constrained_window/constrained_window_web_dialog_sheet.h
@@ -0,0 +1,25 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_WEB_DIALOG_SHEET_H_
+#define CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_WEB_DIALOG_SHEET_H_
+
+#import "chrome/browser/ui/cocoa/constrained_window/constrained_window_custom_sheet.h"
+
+namespace ui {
+class WebDialogDelegate;
+}
+
+// Represents a custom sheet for web dialog.
+@interface WebDialogConstrainedWindowSheet : CustomConstrainedWindowSheet {
+ @private
+ ui::WebDialogDelegate* web_dialog_delegate_; // Weak.
+}
+
+- (id)initWithCustomWindow:(NSWindow*)customWindow
+ webDialogDelegate:(ui::WebDialogDelegate*)delegate;
+
+@end
+
+#endif // CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_WEB_DIALOG_SHEET_H_

Powered by Google App Engine
This is Rietveld 408576698