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

Unified Diff: chrome/browser/tab_contents/constrained_window.cc

Issue 459008: Mac: the return of the tab-modal-sheets patch. (Closed)
Patch Set: Merged ToT. Must ... commit ... soon. Created 11 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
« no previous file with comments | « chrome/browser/tab_contents/constrained_window.h ('k') | chrome/browser/tab_contents/tab_contents.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/tab_contents/constrained_window.cc
diff --git a/chrome/browser/tab_contents/constrained_window.cc b/chrome/browser/tab_contents/constrained_window.cc
new file mode 100644
index 0000000000000000000000000000000000000000..40f25cea7c685593e95b95b0c87de813f33212c6
--- /dev/null
+++ b/chrome/browser/tab_contents/constrained_window.cc
@@ -0,0 +1,19 @@
+// Copyright (c) 2006-2009 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.
+
+#include "constrained_window.h"
+
+bool ConstrainedWindow::ParentWillDo(ConstrainedWindow::Event event) {
+ switch(event) {
+ // "Content-area" constrained windows should close on |kEventNavigate|.
+ case kEventNavigate:
+ CloseConstrainedWindow();
+ return true;
+
+ // Do nothing.
+ default:
+ break;
+ }
+ return false;
+}
« no previous file with comments | « chrome/browser/tab_contents/constrained_window.h ('k') | chrome/browser/tab_contents/tab_contents.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698