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" |
(...skipping 174 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 // the taskbar. In order for multiple stacked panels to appear as one, this | 185 // the taskbar. In order for multiple stacked panels to appear as one, this |
186 // bit needs to be cleared. | 186 // bit needs to be cleared. |
187 int value = ::GetWindowLong(panel_window, GWL_EXSTYLE); | 187 int value = ::GetWindowLong(panel_window, GWL_EXSTYLE); |
188 ::SetWindowLong( | 188 ::SetWindowLong( |
189 panel_window, | 189 panel_window, |
190 GWL_EXSTYLE, | 190 GWL_EXSTYLE, |
191 stack_window ? (value & ~WS_EX_APPWINDOW) : (value | WS_EX_APPWINDOW)); | 191 stack_window ? (value & ~WS_EX_APPWINDOW) : (value | WS_EX_APPWINDOW)); |
192 | 192 |
193 // All the windows that share the same owner window will appear as a single | 193 // All the windows that share the same owner window will appear as a single |
194 // window on the taskbar. | 194 // window on the taskbar. |
195 ::SetWindowLong(panel_window, | 195 ::SetWindowLongPtr(panel_window, |
196 GWL_HWNDPARENT, | 196 GWLP_HWNDPARENT, |
197 reinterpret_cast<LONG>(stack_window)); | 197 reinterpret_cast<LONG>(stack_window)); |
198 | 198 |
199 #else | 199 #else |
200 NOTIMPLEMENTED(); | 200 NOTIMPLEMENTED(); |
201 #endif | 201 #endif |
202 } | 202 } |
OLD | NEW |