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

Unified Diff: ash/launcher/launcher.cc

Issue 9295049: Allow focus to be sent between browser window and launcher/status window (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
Index: ash/launcher/launcher.cc
diff --git a/ash/launcher/launcher.cc b/ash/launcher/launcher.cc
index 61810e2e3c23b896acbb74e24afe5c3f8bf8d95d..89efe58d889a407697442815d5c8db8a0f8392f9 100644
--- a/ash/launcher/launcher.cc
+++ b/ash/launcher/launcher.cc
@@ -133,6 +133,14 @@ Launcher::~Launcher() {
widget_->CloseNow();
}
+bool Launcher::Activate() {
+ bool focus = delegate_view_->SetPaneFocusAndFocusDefault();
+ if (focus) {
sky 2012/01/30 15:52:46 nit: no {}
Zachary Kuznia 2012/01/31 11:00:50 Done.
+ widget_->Activate();
+ }
+ return focus;
+}
+
void Launcher::SetStatusWidth(int width) {
delegate_view_->SetStatusWidth(width);
}

Powered by Google App Engine
This is Rietveld 408576698