OLD | NEW |
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/shelf/shelf_layout_manager.h" | 5 #include "ash/shelf/shelf_layout_manager.h" |
6 #include "ash/shell.h" | 6 #include "ash/shell.h" |
7 #include "ash/shell_window_ids.h" | 7 #include "ash/shell_window_ids.h" |
| 8 #include "base/macros.h" |
8 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" | 9 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" |
9 #include "chrome/browser/chromeos/accessibility/chromevox_panel.h" | 10 #include "chrome/browser/chromeos/accessibility/chromevox_panel.h" |
10 #include "chrome/common/extensions/extension_constants.h" | 11 #include "chrome/common/extensions/extension_constants.h" |
11 #include "content/public/browser/web_contents.h" | 12 #include "content/public/browser/web_contents.h" |
12 #include "ui/chromeos/accessibility_types.h" | 13 #include "ui/chromeos/accessibility_types.h" |
13 #include "ui/views/controls/webview/webview.h" | 14 #include "ui/views/controls/webview/webview.h" |
14 #include "ui/views/layout/fill_layout.h" | 15 #include "ui/views/layout/fill_layout.h" |
15 #include "ui/views/widget/widget.h" | 16 #include "ui/views/widget/widget.h" |
16 #include "ui/wm/core/shadow_types.h" | 17 #include "ui/wm/core/shadow_types.h" |
17 #include "ui/wm/core/window_animations.h" | 18 #include "ui/wm/core/window_animations.h" |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 uint32_t changed_metrics) { | 138 uint32_t changed_metrics) { |
138 UpdateWidgetBounds(); | 139 UpdateWidgetBounds(); |
139 } | 140 } |
140 | 141 |
141 void ChromeVoxPanel::UpdateWidgetBounds() { | 142 void ChromeVoxPanel::UpdateWidgetBounds() { |
142 gfx::Rect bounds(GetRootWindow()->bounds().size()); | 143 gfx::Rect bounds(GetRootWindow()->bounds().size()); |
143 if (!fullscreen_) | 144 if (!fullscreen_) |
144 bounds.set_height(kPanelHeight); | 145 bounds.set_height(kPanelHeight); |
145 widget_->SetBounds(bounds); | 146 widget_->SetBounds(bounds); |
146 } | 147 } |
OLD | NEW |