X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fchrome%2Fbrowser%2Fui%2Fash%2Fash_init.cc;h=4ba14256fe5c0bbe4296a3844ec437882f9c52ca;hb=ff3e2503a20db9193d323c1d19c38c68004dec4a;hp=7d980afb6d0d748b90fc09a48facd8cab7464c43;hpb=7338fba38ba696536d1cc9d389afd716a6ab2fe6;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/chrome/browser/ui/ash/ash_init.cc b/src/chrome/browser/ui/ash/ash_init.cc index 7d980af..4ba1425 100644 --- a/src/chrome/browser/ui/ash/ash_init.cc +++ b/src/chrome/browser/ui/ash/ash_init.cc @@ -6,19 +6,16 @@ #include "ash/accelerators/accelerator_controller.h" #include "ash/ash_switches.h" -#include "ash/content_support/inject.h" #include "ash/high_contrast/high_contrast_controller.h" #include "ash/magnifier/magnification_controller.h" #include "ash/magnifier/partial_magnification_controller.h" #include "ash/shell.h" -#include "ash/wm/event_rewriter_event_filter.h" #include "base/command_line.h" #include "chrome/browser/browser_shutdown.h" #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" #include "chrome/browser/chromeos/accessibility/magnification_manager.h" #include "chrome/browser/lifetime/application_lifetime.h" #include "chrome/browser/ui/ash/chrome_shell_delegate.h" -#include "chrome/browser/ui/ash/event_rewriter.h" #include "chrome/browser/ui/ash/screenshot_taker.h" #include "chrome/common/chrome_switches.h" #include "ui/aura/env.h" @@ -59,15 +56,12 @@ void OpenAsh() { // Shell takes ownership of ChromeShellDelegate. ash::Shell* shell = ash::Shell::CreateInstance(new ChromeShellDelegate); - ash::InitContentSupport(); - shell->event_rewriter_filter()->SetEventRewriterDelegate( - scoped_ptr(new EventRewriter).Pass()); shell->accelerator_controller()->SetScreenshotDelegate( scoped_ptr(new ScreenshotTaker).Pass()); #if defined(OS_CHROMEOS) shell->accelerator_controller()->SetImeControlDelegate( scoped_ptr(new ImeController).Pass()); - ash::Shell::GetInstance()->high_contrast_controller()->SetEnabled( + shell->high_contrast_controller()->SetEnabled( chromeos::AccessibilityManager::Get()->IsHighContrastEnabled()); DCHECK(chromeos::MagnificationManager::Get()); @@ -75,9 +69,9 @@ void OpenAsh() { chromeos::MagnificationManager::Get()->IsMagnifierEnabled(); ash::MagnifierType magnifier_type = chromeos::MagnificationManager::Get()->GetMagnifierType(); - ash::Shell::GetInstance()->magnification_controller()-> + shell->magnification_controller()-> SetEnabled(magnifier_enabled && magnifier_type == ash::MAGNIFIER_FULL); - ash::Shell::GetInstance()->partial_magnification_controller()-> + shell->partial_magnification_controller()-> SetEnabled(magnifier_enabled && magnifier_type == ash::MAGNIFIER_PARTIAL); if (!CommandLine::ForCurrentProcess()->HasSwitch(