| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2009, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2009, 2011 Apple Inc. All rights reserved. |
| 3 * Copyright (C) 2008, 2010 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2008, 2010 Nokia Corporation and/or its subsidiary(-ies) |
| 4 * Copyright (C) 2012, Samsung Electronics. All rights reserved. | 4 * Copyright (C) 2012, Samsung Electronics. All rights reserved. |
| 5 * | 5 * |
| 6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
| 7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
| 8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
| 9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
| 10 * | 10 * |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 #include "core/page/WindowFeatures.h" | 33 #include "core/page/WindowFeatures.h" |
| 34 #include "core/probe/CoreProbes.h" | 34 #include "core/probe/CoreProbes.h" |
| 35 #include "platform/geometry/IntRect.h" | 35 #include "platform/geometry/IntRect.h" |
| 36 #include "platform/network/NetworkHints.h" | 36 #include "platform/network/NetworkHints.h" |
| 37 #include "public/platform/WebScreenInfo.h" | 37 #include "public/platform/WebScreenInfo.h" |
| 38 | 38 |
| 39 namespace blink { | 39 namespace blink { |
| 40 | 40 |
| 41 DEFINE_TRACE(ChromeClient) { | 41 DEFINE_TRACE(ChromeClient) { |
| 42 visitor->Trace(last_mouse_over_node_); | 42 visitor->Trace(last_mouse_over_node_); |
| 43 HostWindow::Trace(visitor); | 43 PlatformChromeClient::Trace(visitor); |
| 44 } | 44 } |
| 45 | 45 |
| 46 void ChromeClient::SetWindowRectWithAdjustment(const IntRect& pending_rect, | 46 void ChromeClient::SetWindowRectWithAdjustment(const IntRect& pending_rect, |
| 47 LocalFrame& frame) { | 47 LocalFrame& frame) { |
| 48 IntRect screen = GetScreenInfo().available_rect; | 48 IntRect screen = GetScreenInfo().available_rect; |
| 49 IntRect window = pending_rect; | 49 IntRect window = pending_rect; |
| 50 | 50 |
| 51 IntSize minimum_size = MinimumWindowSize(); | 51 IntSize minimum_size = MinimumWindowSize(); |
| 52 // Let size 0 pass through, since that indicates default size, not minimum | 52 // Let size 0 pass through, since that indicates default size, not minimum |
| 53 // size. | 53 // size. |
| (...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 233 // Suspend pages in case the client method runs a new event loop that would | 233 // Suspend pages in case the client method runs a new event loop that would |
| 234 // otherwise cause the load to continue while we're in the middle of | 234 // otherwise cause the load to continue while we're in the middle of |
| 235 // executing JavaScript. | 235 // executing JavaScript. |
| 236 ScopedPageSuspender suspender; | 236 ScopedPageSuspender suspender; |
| 237 | 237 |
| 238 PrintDelegate(frame); | 238 PrintDelegate(frame); |
| 239 return true; | 239 return true; |
| 240 } | 240 } |
| 241 | 241 |
| 242 } // namespace blink | 242 } // namespace blink |
| OLD | NEW |