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 "base/win/scoped_gdi_object.h" | 7 #include "base/win/scoped_gdi_object.h" |
8 #include "base/win/windows_version.h" | 8 #include "base/win/windows_version.h" |
9 #include "chrome/browser/ui/ash/tabs/dock_info_ash.h" | 9 #include "chrome/browser/ui/ash/tabs/dock_info_ash.h" |
10 #include "chrome/browser/ui/browser_list.h" | 10 #include "chrome/browser/ui/browser_list.h" |
11 #include "chrome/browser/ui/browser_window.h" | 11 #include "chrome/browser/ui/browser_window.h" |
12 #include "chrome/browser/ui/views/frame/browser_view.h" | 12 #include "chrome/browser/ui/views/frame/browser_view.h" |
13 #include "chrome/browser/ui/views/tabs/tab.h" | 13 #include "chrome/browser/ui/views/tabs/tab.h" |
14 #include "ui/aura/root_window.h" | 14 #include "ui/aura/root_window.h" |
15 #include "ui/aura/window.h" | 15 #include "ui/aura/window.h" |
16 #include "ui/gfx/screen.h" | 16 #include "ui/gfx/screen.h" |
17 #include "ui/views/widget/desktop_root_window_host_win.h" | 17 |
| 18 #if defined(USE_AURA) |
| 19 #include "ui/views/widget/desktop_aura/desktop_root_window_host_win.h" |
| 20 #endif |
18 | 21 |
19 namespace { | 22 namespace { |
20 | 23 |
21 // BaseWindowFinder ----------------------------------------------------------- | 24 // BaseWindowFinder ----------------------------------------------------------- |
22 | 25 |
23 // Base class used to locate a window. This is intended to be used with the | 26 // Base class used to locate a window. This is intended to be used with the |
24 // various win32 functions that iterate over windows. | 27 // various win32 functions that iterate over windows. |
25 // | 28 // |
26 // A subclass need only override ShouldStopIterating to determine when | 29 // A subclass need only override ShouldStopIterating to determine when |
27 // iteration should stop. | 30 // iteration should stop. |
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 SetWindowPos(window(), HWND_TOP, bounds.x(), bounds.y(), bounds.width(), | 397 SetWindowPos(window(), HWND_TOP, bounds.x(), bounds.y(), bounds.width(), |
395 bounds.height(), SWP_NOACTIVATE | SWP_NOOWNERZORDER); | 398 bounds.height(), SWP_NOACTIVATE | SWP_NOOWNERZORDER); |
396 } | 399 } |
397 | 400 |
398 // static | 401 // static |
399 int DockInfo::GetHotSpotDeltaY() { | 402 int DockInfo::GetHotSpotDeltaY() { |
400 return Tab::GetMinimumUnselectedSize().height() - 1; | 403 return Tab::GetMinimumUnselectedSize().height() - 1; |
401 } | 404 } |
402 | 405 |
403 #endif // !USE_AURA | 406 #endif // !USE_AURA |
OLD | NEW |