| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 { | 77 { |
| 78 return FloatRect(m_popup->m_windowRectInScreen.x, m_popup->m_windowRectI
nScreen.y, m_popup->m_windowRectInScreen.width, m_popup->m_windowRectInScreen.he
ight); | 78 return FloatRect(m_popup->m_windowRectInScreen.x, m_popup->m_windowRectI
nScreen.y, m_popup->m_windowRectInScreen.width, m_popup->m_windowRectInScreen.he
ight); |
| 79 } | 79 } |
| 80 | 80 |
| 81 virtual void setWindowRect(const FloatRect& rect) OVERRIDE | 81 virtual void setWindowRect(const FloatRect& rect) OVERRIDE |
| 82 { | 82 { |
| 83 m_popup->m_windowRectInScreen = IntRect(rect); | 83 m_popup->m_windowRectInScreen = IntRect(rect); |
| 84 m_popup->widgetClient()->setWindowRect(m_popup->m_windowRectInScreen); | 84 m_popup->widgetClient()->setWindowRect(m_popup->m_windowRectInScreen); |
| 85 } | 85 } |
| 86 | 86 |
| 87 virtual void addMessageToConsole(MessageSource, MessageLevel, const String&
message, unsigned lineNumber, const String&) OVERRIDE | 87 virtual void addMessageToConsole(MessageSource, MessageLevel, const String&
message, unsigned lineNumber, const String&, const String&) OVERRIDE |
| 88 { | 88 { |
| 89 #ifndef NDEBUG | 89 #ifndef NDEBUG |
| 90 fprintf(stderr, "CONSOLE MESSSAGE:%u: %s\n", lineNumber, message.utf8().
data()); | 90 fprintf(stderr, "CONSOLE MESSSAGE:%u: %s\n", lineNumber, message.utf8().
data()); |
| 91 #else | 91 #else |
| 92 UNUSED_PARAM(message); | 92 UNUSED_PARAM(message); |
| 93 UNUSED_PARAM(lineNumber); | 93 UNUSED_PARAM(lineNumber); |
| 94 #endif | 94 #endif |
| 95 } | 95 } |
| 96 | 96 |
| 97 virtual void invalidateContentsAndRootView(const IntRect& paintRect) OVERRID
E | 97 virtual void invalidateContentsAndRootView(const IntRect& paintRect) OVERRID
E |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 // A WebPagePopupImpl instance usually has two references. | 344 // A WebPagePopupImpl instance usually has two references. |
| 345 // - One owned by the instance itself. It represents the visible widget. | 345 // - One owned by the instance itself. It represents the visible widget. |
| 346 // - One owned by a WebViewImpl. It's released when the WebViewImpl ask the | 346 // - One owned by a WebViewImpl. It's released when the WebViewImpl ask the |
| 347 // WebPagePopupImpl to close. | 347 // WebPagePopupImpl to close. |
| 348 // We need them because the closing operation is asynchronous and the widget | 348 // We need them because the closing operation is asynchronous and the widget |
| 349 // can be closed while the WebViewImpl is unaware of it. | 349 // can be closed while the WebViewImpl is unaware of it. |
| 350 return adoptRef(new WebPagePopupImpl(client)).leakRef(); | 350 return adoptRef(new WebPagePopupImpl(client)).leakRef(); |
| 351 } | 351 } |
| 352 | 352 |
| 353 } // namespace WebKit | 353 } // namespace WebKit |
| OLD | NEW |