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

Unified Diff: chrome/browser/views/constrained_window_win.cc

Issue 392018: Enforce that only one constrained window is displayed at once per tab. (Closed)
Patch Set: Set focus correctly on linux Created 11 years, 1 month 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/views/constrained_window_win.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/constrained_window_win.cc
diff --git a/chrome/browser/views/constrained_window_win.cc b/chrome/browser/views/constrained_window_win.cc
index c94576e4e1667f27c3a75d9ee5078c95198fffa9..10d4bbb3a70bcb2972824fbd5709dd06a5baab7f 100644
--- a/chrome/browser/views/constrained_window_win.cc
+++ b/chrome/browser/views/constrained_window_win.cc
@@ -592,6 +592,10 @@ views::NonClientFrameView* ConstrainedWindowWin::CreateFrameViewForWindow() {
return new ConstrainedWindowFrameView(this);
}
+void ConstrainedWindowWin::ShowConstrainedWindow() {
+ ActivateConstrainedWindow();
+}
+
void ConstrainedWindowWin::CloseConstrainedWindow() {
// Broadcast to all observers of NOTIFY_CWINDOW_CLOSED.
// One example of such an observer is AutomationCWindowTracker in the
@@ -632,7 +636,6 @@ ConstrainedWindowWin::ConstrainedWindowWin(
set_focus_on_creation(false);
WindowWin::Init(owner_->GetNativeView(), gfx::Rect());
- ActivateConstrainedWindow();
}
void ConstrainedWindowWin::ActivateConstrainedWindow() {
« no previous file with comments | « chrome/browser/views/constrained_window_win.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698