summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzork@chromium.org <zork@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-20 06:07:15 +0000
committerzork@chromium.org <zork@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-01-20 06:07:15 +0000
commitfcbbf082d9e87a7590617b402952d57bffb4daa2 (patch)
tree7715f41b4d9a6c870bb37543e27267a57f85239e
parentfded8f64311a991a8f0b00b78b399559083ba32c (diff)
downloadchromium_src-fcbbf082d9e87a7590617b402952d57bffb4daa2.zip
chromium_src-fcbbf082d9e87a7590617b402952d57bffb4daa2.tar.gz
chromium_src-fcbbf082d9e87a7590617b402952d57bffb4daa2.tar.bz2
Initialize the InputMethod before the windows. Allow the status container to be activated.
R=yusukes@chromium.org BUG=104192 TEST=With Aura enabled, tab through the status bar on the login screen Review URL: https://chromiumcodereview.appspot.com/9264005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@118413 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--ash/shell.cc12
-rw-r--r--ash/wm/activation_controller.cc1
2 files changed, 7 insertions, 6 deletions
diff --git a/ash/shell.cc b/ash/shell.cc
index 40df7c9..0e9a14c 100644
--- a/ash/shell.cc
+++ b/ash/shell.cc
@@ -218,6 +218,12 @@ void Shell::DeleteInstance() {
}
void Shell::Init() {
+ // InputMethodEventFilter must be added first since it has the highest
+ // priority.
+ DCHECK(!GetRootWindowEventFilterCount());
+ input_method_filter_.reset(new internal::InputMethodEventFilter);
+ AddRootWindowEventFilter(input_method_filter_.get());
+
// On small screens we automatically enable --aura-window-mode=compact if the
// user has not explicitly set a window mode flag. This must happen before
// we create containers or layout managers.
@@ -249,12 +255,6 @@ void Shell::Init() {
// Force a layout.
root_window->layout_manager()->OnWindowResized();
- // InputMethodEventFilter must be added first since it has the highest
- // priority.
- DCHECK(!GetRootWindowEventFilterCount());
- input_method_filter_.reset(new internal::InputMethodEventFilter);
- AddRootWindowEventFilter(input_method_filter_.get());
-
window_modality_controller_.reset(new internal::WindowModalityController);
AddRootWindowEventFilter(window_modality_controller_.get());
diff --git a/ash/wm/activation_controller.cc b/ash/wm/activation_controller.cc
index 85d1c4f..4ebaa91 100644
--- a/ash/wm/activation_controller.cc
+++ b/ash/wm/activation_controller.cc
@@ -31,6 +31,7 @@ bool SupportsChildActivation(aura::Window* window) {
window->id() == kShellWindowId_AlwaysOnTopContainer ||
window->id() == kShellWindowId_PanelContainer ||
window->id() == kShellWindowId_SystemModalContainer ||
+ window->id() == kShellWindowId_StatusContainer ||
window->id() == kShellWindowId_LockScreenContainer ||
window->id() == kShellWindowId_LockSystemModalContainer;
}