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

Side by Side Diff: chrome/browser/chromeos/accessibility/chromevox_panel.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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "ash/common/accessibility_types.h" 5 #include "ash/common/accessibility_types.h"
6 #include "ash/common/shell_window_ids.h" 6 #include "ash/common/shell_window_ids.h"
7 #include "ash/root_window_controller.h" 7 #include "ash/root_window_controller.h"
8 #include "ash/shelf/shelf.h" 8 #include "ash/shelf/shelf.h"
9 #include "ash/shelf/shelf_layout_manager.h" 9 #include "ash/shelf/shelf_layout_manager.h"
10 #include "ash/shell.h" 10 #include "ash/shell.h"
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 132
133 void ChromeVoxPanel::ExitFullscreen() { 133 void ChromeVoxPanel::ExitFullscreen() {
134 widget_->Deactivate(); 134 widget_->Deactivate();
135 widget_->widget_delegate()->set_can_activate(false); 135 widget_->widget_delegate()->set_can_activate(false);
136 panel_fullscreen_ = false; 136 panel_fullscreen_ = false;
137 UpdateWidgetBounds(); 137 UpdateWidgetBounds();
138 } 138 }
139 139
140 void ChromeVoxPanel::DisableSpokenFeedback() { 140 void ChromeVoxPanel::DisableSpokenFeedback() {
141 chromeos::AccessibilityManager::Get()->EnableSpokenFeedback( 141 chromeos::AccessibilityManager::Get()->EnableSpokenFeedback(
142 false, ui::A11Y_NOTIFICATION_NONE); 142 false, ash::A11Y_NOTIFICATION_NONE);
143 } 143 }
144 144
145 void ChromeVoxPanel::Focus() { 145 void ChromeVoxPanel::Focus() {
146 widget_->widget_delegate()->set_can_activate(true); 146 widget_->widget_delegate()->set_can_activate(true);
147 widget_->Activate(); 147 widget_->Activate();
148 web_view_->RequestFocus(); 148 web_view_->RequestFocus();
149 } 149 }
150 150
151 const views::Widget* ChromeVoxPanel::GetWidget() const { 151 const views::Widget* ChromeVoxPanel::GetWidget() const {
152 return widget_; 152 return widget_;
(...skipping 24 matching lines...) Expand all
177 // If we're in full-screen mode, give the panel a height of 0 unless 177 // If we're in full-screen mode, give the panel a height of 0 unless
178 // it's active. 178 // it's active.
179 if (ash::GetRootWindowController(GetRootWindow()) 179 if (ash::GetRootWindowController(GetRootWindow())
180 ->GetWindowForFullscreenMode() && 180 ->GetWindowForFullscreenMode() &&
181 !widget_->IsActive()) { 181 !widget_->IsActive()) {
182 bounds.set_height(0); 182 bounds.set_height(0);
183 } 183 }
184 184
185 widget_->SetBounds(bounds); 185 widget_->SetBounds(bounds);
186 } 186 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698