| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). | 3 * Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies). |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 WebLocalFrameImpl* frame = WebLocalFrameImpl::fromFrame(localFrame); | 253 WebLocalFrameImpl* frame = WebLocalFrameImpl::fromFrame(localFrame); |
| 254 if (frame && frame->client()) { | 254 if (frame && frame->client()) { |
| 255 frame->client()->didAddMessageToConsole( | 255 frame->client()->didAddMessageToConsole( |
| 256 WebConsoleMessage(static_cast<WebConsoleMessage::Level>(level), mess
age), | 256 WebConsoleMessage(static_cast<WebConsoleMessage::Level>(level), mess
age), |
| 257 sourceID, | 257 sourceID, |
| 258 lineNumber, | 258 lineNumber, |
| 259 stackTrace); | 259 stackTrace); |
| 260 } | 260 } |
| 261 } | 261 } |
| 262 | 262 |
| 263 bool ChromeClientImpl::tabsToLinks() | |
| 264 { | |
| 265 return m_webView->tabsToLinks(); | |
| 266 } | |
| 267 | |
| 268 void ChromeClientImpl::scheduleAnimation() | 263 void ChromeClientImpl::scheduleAnimation() |
| 269 { | 264 { |
| 270 m_webView->scheduleAnimation(); | 265 m_webView->scheduleAnimation(); |
| 271 } | 266 } |
| 272 | 267 |
| 273 IntRect ChromeClientImpl::rootViewToScreen(const IntRect& rect) const | 268 IntRect ChromeClientImpl::rootViewToScreen(const IntRect& rect) const |
| 274 { | 269 { |
| 275 IntRect screenRect(rect); | 270 IntRect screenRect(rect); |
| 276 | 271 |
| 277 if (m_webView->client()) { | 272 if (m_webView->client()) { |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 370 webFrame->client()->forwardInputEvent(&webEvent); | 365 webFrame->client()->forwardInputEvent(&webEvent); |
| 371 } else if (event->isWheelEvent()) { | 366 } else if (event->isWheelEvent()) { |
| 372 WebMouseWheelEventBuilder webEvent(webFrame->frameView(), 0, *static_cas
t<WheelEvent*>(event)); | 367 WebMouseWheelEventBuilder webEvent(webFrame->frameView(), 0, *static_cas
t<WheelEvent*>(event)); |
| 373 if (webEvent.type == WebInputEvent::Undefined) | 368 if (webEvent.type == WebInputEvent::Undefined) |
| 374 return; | 369 return; |
| 375 webFrame->client()->forwardInputEvent(&webEvent); | 370 webFrame->client()->forwardInputEvent(&webEvent); |
| 376 } | 371 } |
| 377 } | 372 } |
| 378 | 373 |
| 379 } // namespace blink | 374 } // namespace blink |
| OLD | NEW |