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

Side by Side Diff: chrome/browser/chromeos/accessibility/chromevox_panel.cc

Issue 2908333003: [mus+ash] Removes WmWindow from ash (app_list, frame, metrics, session, system, wallpaper) (Closed)
Patch Set: [mus ash] Removes WmWindow from ash (rebase, nits and cleanup of use of ResizeHandleWindowTargeter) Created 3 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 "chrome/browser/chromeos/accessibility/chromevox_panel.h" 5 #include "chrome/browser/chromeos/accessibility/chromevox_panel.h"
6 6
7 #include "ash/accessibility_types.h" 7 #include "ash/accessibility_types.h"
8 #include "ash/public/cpp/shell_window_ids.h" 8 #include "ash/public/cpp/shell_window_ids.h"
9 #include "ash/root_window_controller.h" 9 #include "ash/root_window_controller.h"
10 #include "ash/shelf/shelf.h" 10 #include "ash/shelf/shelf.h"
11 #include "ash/shelf/shelf_layout_manager.h" 11 #include "ash/shelf/shelf_layout_manager.h"
12 #include "ash/shell.h" 12 #include "ash/shell.h"
13 #include "ash/wm_window.h"
14 #include "base/macros.h" 13 #include "base/macros.h"
15 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" 14 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h"
16 #include "chrome/browser/chromeos/profiles/profile_helper.h" 15 #include "chrome/browser/chromeos/profiles/profile_helper.h"
17 #include "chrome/browser/data_use_measurement/data_use_web_contents_observer.h" 16 #include "chrome/browser/data_use_measurement/data_use_web_contents_observer.h"
18 #include "chrome/browser/extensions/chrome_extension_web_contents_observer.h" 17 #include "chrome/browser/extensions/chrome_extension_web_contents_observer.h"
19 #include "chrome/common/extensions/extension_constants.h" 18 #include "chrome/common/extensions/extension_constants.h"
20 #include "content/public/browser/web_contents.h" 19 #include "content/public/browser/web_contents.h"
21 #include "extensions/browser/view_type_utils.h" 20 #include "extensions/browser/view_type_utils.h"
22 #include "ui/display/screen.h" 21 #include "ui/display/screen.h"
23 #include "ui/views/controls/webview/webview.h" 22 #include "ui/views/controls/webview/webview.h"
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 } 200 }
202 201
203 void ChromeVoxPanel::SendPanelHeightToAsh(int panel_height) { 202 void ChromeVoxPanel::SendPanelHeightToAsh(int panel_height) {
204 // TODO(mash): Replace with shelf mojo API. 203 // TODO(mash): Replace with shelf mojo API.
205 ash::Shelf* shelf = ash::Shelf::ForWindow(GetRootWindow()); 204 ash::Shelf* shelf = ash::Shelf::ForWindow(GetRootWindow());
206 ash::ShelfLayoutManager* shelf_layout_manager = 205 ash::ShelfLayoutManager* shelf_layout_manager =
207 shelf ? shelf->shelf_layout_manager() : nullptr; 206 shelf ? shelf->shelf_layout_manager() : nullptr;
208 if (shelf_layout_manager) 207 if (shelf_layout_manager)
209 shelf_layout_manager->SetChromeVoxPanelHeight(panel_height); 208 shelf_layout_manager->SetChromeVoxPanelHeight(panel_height);
210 } 209 }
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/accessibility/accessibility_manager.cc ('k') | chrome/browser/chromeos/login/login_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698