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

Side by Side Diff: chrome/browser/ui/views/panels/panel_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 | « chrome/browser/ui/views/panels/panel_stack_view.cc ('k') | no next file » | 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) 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/views/panels/panel_view.h" 5 #include "chrome/browser/ui/views/panels/panel_view.h"
6 6
7 #include <map> 7 #include <map>
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
(...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 WINDOWPLACEMENT placement; 173 WINDOWPLACEMENT placement;
174 if (!::GetWindowPlacement(native_window, &placement)) 174 if (!::GetWindowPlacement(native_window, &placement))
175 return false; 175 return false;
176 if (placement.showCmd == SW_MINIMIZE || placement.showCmd == SW_SHOWMINIMIZED) 176 if (placement.showCmd == SW_MINIMIZE || placement.showCmd == SW_SHOWMINIMIZED)
177 return true; 177 return true;
178 178
179 // If the panel window has owner window, as in stacked mode, check its owner 179 // If the panel window has owner window, as in stacked mode, check its owner
180 // window. Note that owner window, instead of parent window, is returned 180 // window. Note that owner window, instead of parent window, is returned
181 // though GWL_HWNDPARENT contains 'parent'. 181 // though GWL_HWNDPARENT contains 'parent'.
182 HWND owner_window = 182 HWND owner_window =
183 reinterpret_cast<HWND>(::GetWindowLong(native_window, GWL_HWNDPARENT)); 183 reinterpret_cast<HWND>(::GetWindowLongPtr(native_window,
184 GWLP_HWNDPARENT));
184 if (!owner_window || !::GetWindowPlacement(owner_window, &placement)) 185 if (!owner_window || !::GetWindowPlacement(owner_window, &placement))
185 return false; 186 return false;
186 return placement.showCmd == SW_MINIMIZE || 187 return placement.showCmd == SW_MINIMIZE ||
187 placement.showCmd == SW_SHOWMINIMIZED; 188 placement.showCmd == SW_SHOWMINIMIZED;
188 #else 189 #else
189 return true; 190 return true;
190 #endif 191 #endif
191 } 192 }
192 193
193 bool NativePanelTestingWin::IsWindowSizeKnown() const { 194 bool NativePanelTestingWin::IsWindowSizeKnown() const {
(...skipping 766 matching lines...) Expand 10 before | Expand all | Expand 10 after
960 DCHECK(thickness_for_mouse_resizing > 0); 961 DCHECK(thickness_for_mouse_resizing > 0);
961 SkRegion* region = new SkRegion; 962 SkRegion* region = new SkRegion;
962 region->op(0, 0, thickness_for_mouse_resizing, height, SkRegion::kUnion_Op); 963 region->op(0, 0, thickness_for_mouse_resizing, height, SkRegion::kUnion_Op);
963 region->op(width - thickness_for_mouse_resizing, 0, width, height, 964 region->op(width - thickness_for_mouse_resizing, 0, width, height,
964 SkRegion::kUnion_Op); 965 SkRegion::kUnion_Op);
965 region->op(0, height - thickness_for_mouse_resizing, width, height, 966 region->op(0, height - thickness_for_mouse_resizing, width, height,
966 SkRegion::kUnion_Op); 967 SkRegion::kUnion_Op);
967 web_contents->GetRenderViewHost()->GetView()->SetClickthroughRegion(region); 968 web_contents->GetRenderViewHost()->GetView()->SetClickthroughRegion(region);
968 #endif 969 #endif
969 } 970 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/panels/panel_stack_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698