OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/views/panels/panel_stack_view.h" | 5 #include "chrome/browser/ui/views/panels/panel_stack_view.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
10 #include "chrome/browser/ui/panels/panel.h" | 10 #include "chrome/browser/ui/panels/panel.h" |
11 #include "chrome/browser/ui/panels/stacked_panel_collection.h" | 11 #include "chrome/browser/ui/panels/stacked_panel_collection.h" |
12 #include "chrome/browser/ui/views/panels/panel_view.h" | 12 #include "chrome/browser/ui/views/panels/panel_view.h" |
13 #include "chrome/common/extensions/extension.h" | 13 #include "chrome/common/extensions/extension.h" |
14 #include "ui/gfx/image/image_skia.h" | 14 #include "ui/gfx/image/image_skia.h" |
15 #include "ui/gfx/rect.h" | 15 #include "ui/gfx/rect.h" |
16 #include "ui/views/widget/widget.h" | 16 #include "ui/views/widget/widget.h" |
17 | 17 |
18 #if defined(OS_WIN) | 18 #if defined(OS_WIN) |
| 19 #include "apps/shell_integration.h" |
19 #include "base/win/windows_version.h" | 20 #include "base/win/windows_version.h" |
20 #include "chrome/browser/shell_integration.h" | |
21 #include "chrome/browser/ui/views/hwnd_util.h" | 21 #include "chrome/browser/ui/views/hwnd_util.h" |
22 #include "chrome/browser/ui/views/panels/taskbar_window_thumbnailer_win.h" | 22 #include "chrome/browser/ui/views/panels/taskbar_window_thumbnailer_win.h" |
23 #include "ui/base/win/shell.h" | 23 #include "ui/base/win/shell.h" |
24 #endif | 24 #endif |
25 | 25 |
26 // static | 26 // static |
27 NativePanelStack* NativePanelStack::Create( | 27 NativePanelStack* NativePanelStack::Create( |
28 scoped_ptr<StackedPanelCollection> stacked_collection) { | 28 scoped_ptr<StackedPanelCollection> stacked_collection) { |
29 #if defined(OS_WIN) | 29 #if defined(OS_WIN) |
30 return new PanelStackView(stacked_collection.Pass()); | 30 return new PanelStackView(stacked_collection.Pass()); |
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 // All the windows that share the same owner window will appear as a single | 196 // All the windows that share the same owner window will appear as a single |
197 // window on the taskbar. | 197 // window on the taskbar. |
198 ::SetWindowLongPtr(panel_window, | 198 ::SetWindowLongPtr(panel_window, |
199 GWLP_HWNDPARENT, | 199 GWLP_HWNDPARENT, |
200 reinterpret_cast<LONG>(stack_window)); | 200 reinterpret_cast<LONG>(stack_window)); |
201 | 201 |
202 #else | 202 #else |
203 NOTIMPLEMENTED(); | 203 NOTIMPLEMENTED(); |
204 #endif | 204 #endif |
205 } | 205 } |
OLD | NEW |