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

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

Issue 2074913005: Convert TrayAccessibility to wm common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@webnotification
Patch Set: rebase 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/shell_window_ids.h" 6 #include "ash/common/shell_window_ids.h"
6 #include "ash/root_window_controller.h" 7 #include "ash/root_window_controller.h"
7 #include "ash/shelf/shelf.h" 8 #include "ash/shelf/shelf.h"
8 #include "ash/shelf/shelf_layout_manager.h" 9 #include "ash/shelf/shelf_layout_manager.h"
9 #include "ash/shell.h" 10 #include "ash/shell.h"
10 #include "base/macros.h" 11 #include "base/macros.h"
11 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" 12 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h"
12 #include "chrome/browser/chromeos/accessibility/chromevox_panel.h" 13 #include "chrome/browser/chromeos/accessibility/chromevox_panel.h"
13 #include "chrome/browser/extensions/chrome_extension_web_contents_observer.h" 14 #include "chrome/browser/extensions/chrome_extension_web_contents_observer.h"
14 #include "chrome/common/extensions/extension_constants.h" 15 #include "chrome/common/extensions/extension_constants.h"
15 #include "content/public/browser/web_contents.h" 16 #include "content/public/browser/web_contents.h"
16 #include "extensions/browser/view_type_utils.h" 17 #include "extensions/browser/view_type_utils.h"
17 #include "ui/chromeos/accessibility_types.h"
18 #include "ui/display/screen.h" 18 #include "ui/display/screen.h"
19 #include "ui/views/controls/webview/webview.h" 19 #include "ui/views/controls/webview/webview.h"
20 #include "ui/views/layout/fill_layout.h" 20 #include "ui/views/layout/fill_layout.h"
21 #include "ui/views/widget/widget.h" 21 #include "ui/views/widget/widget.h"
22 #include "ui/wm/core/shadow_types.h" 22 #include "ui/wm/core/shadow_types.h"
23 #include "ui/wm/core/window_animations.h" 23 #include "ui/wm/core/window_animations.h"
24 24
25 namespace { 25 namespace {
26 26
27 const int kPanelHeight = 35; 27 const int kPanelHeight = 35;
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
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