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

Unified Diff: chrome/browser/ui/ash/ash_init.cc

Issue 2078393005: mash: Move accessibility_types.h from ui namespace to ash namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@a11y
Patch Set: fix chromevox code generated from js Created 4 years, 6 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: chrome/browser/ui/ash/ash_init.cc
diff --git a/chrome/browser/ui/ash/ash_init.cc b/chrome/browser/ui/ash/ash_init.cc
index b439934f427ae54f254c279eb7826bad39e9e53f..13ba2cae4ba2dbc94f25386a7348cd67984edde1 100644
--- a/chrome/browser/ui/ash/ash_init.cc
+++ b/chrome/browser/ui/ash/ash_init.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/ui/ash/ash_init.h"
#include "ash/accelerators/accelerator_controller.h"
+#include "ash/common/accessibility_types.h"
#include "ash/common/ash_switches.h"
#include "ash/high_contrast/high_contrast_controller.h"
#include "ash/magnifier/magnification_controller.h"
@@ -84,12 +85,12 @@ void OpenAsh(gfx::AcceleratedWidget remote_window) {
DCHECK(chromeos::MagnificationManager::Get());
bool magnifier_enabled =
chromeos::MagnificationManager::Get()->IsMagnifierEnabled();
- ui::MagnifierType magnifier_type =
+ ash::MagnifierType magnifier_type =
chromeos::MagnificationManager::Get()->GetMagnifierType();
- shell->magnification_controller()->
- SetEnabled(magnifier_enabled && magnifier_type == ui::MAGNIFIER_FULL);
- shell->partial_magnification_controller()->
- SetEnabled(magnifier_enabled && magnifier_type == ui::MAGNIFIER_PARTIAL);
+ shell->magnification_controller()->SetEnabled(
+ magnifier_enabled && magnifier_type == ash::MAGNIFIER_FULL);
+ shell->partial_magnification_controller()->SetEnabled(
+ magnifier_enabled && magnifier_type == ash::MAGNIFIER_PARTIAL);
if (!base::CommandLine::ForCurrentProcess()->HasSwitch(
switches::kDisableZeroBrowsersOpenForTests)) {

Powered by Google App Engine
This is Rietveld 408576698