Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(855)

Side by Side Diff: chrome/browser/ui/views/panels/panel_stack_view.cc

Issue 12094107: Convert to *WindowLongPtr functions for Win64 compatability (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/ui/views/panels/panel_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/panels/panel_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698