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

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

Issue 541056: Tab-modal dialog improvements:... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 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 | « chrome/browser/views/constrained_window_win.h ('k') | chrome/browser/views/login_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/constrained_window_win.cc
===================================================================
--- chrome/browser/views/constrained_window_win.cc (revision 36364)
+++ chrome/browser/views/constrained_window_win.cc (working copy)
@@ -592,6 +592,16 @@
return new ConstrainedWindowFrameView(this);
}
+void ConstrainedWindowWin::FocusConstrainedWindow() {
+ focused_view_->RequestFocus();
+}
+
+void ConstrainedWindowWin::ShowConstrainedWindow() {
+ ActivateConstrainedWindow();
+ FocusConstrainedWindow();
+}
+
+
void ConstrainedWindowWin::CloseConstrainedWindow() {
// Broadcast to all observers of NOTIFY_CWINDOW_CLOSED.
// One example of such an observer is AutomationCWindowTracker in the
@@ -632,7 +642,9 @@
set_focus_on_creation(false);
WindowWin::Init(owner_->GetNativeView(), gfx::Rect());
- ActivateConstrainedWindow();
+
+ focused_view_ = window_delegate->GetContentsView();
+ DCHECK(focused_view_);
}
void ConstrainedWindowWin::ActivateConstrainedWindow() {
« no previous file with comments | « chrome/browser/views/constrained_window_win.h ('k') | chrome/browser/views/login_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698