| 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;
|
| +}
|
|
|