OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/ui/tabs/dock_info.h" | 5 #include "chrome/browser/ui/tabs/dock_info.h" |
6 | 6 |
7 #include "chrome/browser/ui/host_desktop.h" | 7 #include "chrome/browser/ui/host_desktop.h" |
8 #include "ui/aura/root_window.h" | 8 #include "ui/aura/root_window.h" |
9 #include "ui/aura/window.h" | 9 #include "ui/aura/window.h" |
10 #include "ui/base/x/x11_util.h" | 10 #include "ui/base/x/x11_util.h" |
11 #include "ui/views/widget/desktop_root_window_host_linux.h" | |
12 | 11 |
13 #if !defined(USE_ASH) | 12 #if !defined(OS_CHROMEOS) |
| 13 #include "ui/views/widget/desktop_aura/desktop_root_window_host_linux.h" |
| 14 #endif |
| 15 |
| 16 #if !defined(OS_CHROMEOS) |
14 | 17 |
15 namespace { | 18 namespace { |
16 | 19 |
17 //////////////////////////////////////////////////////////////////////////////// | 20 //////////////////////////////////////////////////////////////////////////////// |
18 // BaseWindowFinder | 21 // BaseWindowFinder |
19 // | 22 // |
20 // Base class used to locate a window. A subclass need only override | 23 // Base class used to locate a window. A subclass need only override |
21 // ShouldStopIterating to determine when iteration should stop. | 24 // ShouldStopIterating to determine when iteration should stop. |
22 class BaseWindowFinder : public ui::EnumerateWindowsDelegate { | 25 class BaseWindowFinder : public ui::EnumerateWindowsDelegate { |
23 public: | 26 public: |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 return false; | 201 return false; |
199 *bounds = window_->bounds(); | 202 *bounds = window_->bounds(); |
200 return true; | 203 return true; |
201 } | 204 } |
202 | 205 |
203 void DockInfo::SizeOtherWindowTo(const gfx::Rect& bounds) const { | 206 void DockInfo::SizeOtherWindowTo(const gfx::Rect& bounds) const { |
204 window_->SetBounds(bounds); | 207 window_->SetBounds(bounds); |
205 } | 208 } |
206 | 209 |
207 #endif | 210 #endif |
OLD | NEW |