summaryrefslogtreecommitdiffstats
path: root/ash/root_window_controller.cc
diff options
context:
space:
mode:
authoroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-29 00:14:28 +0000
committeroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-10-29 00:14:28 +0000
commit608de6c37623cffef25091a29ad9eb8a22406367 (patch)
tree4655e3fd74f9ac00ea71284a049c2a86e45f5bab /ash/root_window_controller.cc
parenteb03353241d2cf444a1f1ef5c4ea12d2815f2b30 (diff)
downloadchromium_src-608de6c37623cffef25091a29ad9eb8a22406367.zip
chromium_src-608de6c37623cffef25091a29ad9eb8a22406367.tar.gz
chromium_src-608de6c37623cffef25091a29ad9eb8a22406367.tar.bz2
VIRTUAL KEYBOARD mode for second display
This is a place holder so that bshe can add VK to this root window. BUG=310325 R=bshe@chromium.org Review URL: https://codereview.chromium.org/41583002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@231454 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/root_window_controller.cc')
-rw-r--r--ash/root_window_controller.cc20
1 files changed, 16 insertions, 4 deletions
diff --git a/ash/root_window_controller.cc b/ash/root_window_controller.cc
index 8afa501..072608c 100644
--- a/ash/root_window_controller.cc
+++ b/ash/root_window_controller.cc
@@ -219,13 +219,20 @@ namespace internal {
void RootWindowController::CreateForPrimaryDisplay(
aura::RootWindow* root) {
RootWindowController* controller = new RootWindowController(root);
- controller->Init(true /* primary */,
+ controller->Init(RootWindowController::PRIMARY,
Shell::GetInstance()->delegate()->IsFirstRunAfterBoot());
}
void RootWindowController::CreateForSecondaryDisplay(aura::RootWindow * root) {
RootWindowController* controller = new RootWindowController(root);
- controller->Init(false /* secondary */, false /* first run */);
+ controller->Init(RootWindowController::SECONDARY, false /* first run */);
+}
+
+void RootWindowController::CreateForVirtualKeyboardDisplay(
+ aura::RootWindow * root) {
+ RootWindowController* controller = new RootWindowController(root);
+ controller->Init(RootWindowController::VIRTUAL_KEYBOARD,
+ false /* first run */);
}
// static
@@ -569,11 +576,16 @@ RootWindowController::RootWindowController(aura::RootWindow* root_window)
capture_client_.reset(new views::corewm::ScopedCaptureClient(root_window));
}
-void RootWindowController::Init(bool is_primary, bool first_run_after_boot) {
+void RootWindowController::Init(RootWindowType root_window_type,
+ bool first_run_after_boot) {
Shell::GetInstance()->InitRootWindow(root_window_.get());
root_window_->SetCursor(ui::kCursorPointer);
CreateContainersInRootWindow(root_window_.get());
+
+ if (root_window_type == VIRTUAL_KEYBOARD)
+ return;
+
CreateSystemBackground(first_run_after_boot);
InitLayoutManagers();
@@ -587,7 +599,7 @@ void RootWindowController::Init(bool is_primary, bool first_run_after_boot) {
Shell* shell = Shell::GetInstance();
shell->AddShellObserver(this);
- if (is_primary) {
+ if (root_window_type == PRIMARY) {
root_window_layout()->OnWindowResized();
shell->InitKeyboard(this);
} else {