| 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 523 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 534 | 534 |
| 535 void ChromeClientImpl::setStatusbarText(const String& message) { | 535 void ChromeClientImpl::setStatusbarText(const String& message) { |
| 536 if (m_webView->client()) | 536 if (m_webView->client()) |
| 537 m_webView->client()->setStatusText(message); | 537 m_webView->client()->setStatusText(message); |
| 538 } | 538 } |
| 539 | 539 |
| 540 bool ChromeClientImpl::tabsToLinks() { | 540 bool ChromeClientImpl::tabsToLinks() { |
| 541 return m_webView->tabsToLinks(); | 541 return m_webView->tabsToLinks(); |
| 542 } | 542 } |
| 543 | 543 |
| 544 IntRect ChromeClientImpl::windowResizerRect(LocalFrame& frame) const { | |
| 545 return WebLocalFrameImpl::fromFrame(&frame) | |
| 546 ->localRoot() | |
| 547 ->frameWidget() | |
| 548 ->client() | |
| 549 ->windowResizerRect(); | |
| 550 } | |
| 551 | |
| 552 void ChromeClientImpl::invalidateRect(const IntRect& updateRect) { | 544 void ChromeClientImpl::invalidateRect(const IntRect& updateRect) { |
| 553 if (!updateRect.isEmpty()) | 545 if (!updateRect.isEmpty()) |
| 554 m_webView->invalidateRect(updateRect); | 546 m_webView->invalidateRect(updateRect); |
| 555 } | 547 } |
| 556 | 548 |
| 557 void ChromeClientImpl::scheduleAnimation(Widget* widget) { | 549 void ChromeClientImpl::scheduleAnimation(Widget* widget) { |
| 558 DCHECK(widget->isFrameView()); | 550 DCHECK(widget->isFrameView()); |
| 559 FrameView* view = toFrameView(widget); | 551 FrameView* view = toFrameView(widget); |
| 560 LocalFrame* frame = view->frame().localFrameRoot(); | 552 LocalFrame* frame = view->frame().localFrameRoot(); |
| 561 | 553 |
| (...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1169 if (RuntimeEnabledFeatures::presentationEnabled()) | 1161 if (RuntimeEnabledFeatures::presentationEnabled()) |
| 1170 PresentationController::provideTo(frame, client->presentationClient()); | 1162 PresentationController::provideTo(frame, client->presentationClient()); |
| 1171 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) | 1163 if (RuntimeEnabledFeatures::audioOutputDevicesEnabled()) |
| 1172 provideAudioOutputDeviceClientTo(frame, | 1164 provideAudioOutputDeviceClientTo(frame, |
| 1173 AudioOutputDeviceClientImpl::create()); | 1165 AudioOutputDeviceClientImpl::create()); |
| 1174 if (RuntimeEnabledFeatures::installedAppEnabled()) | 1166 if (RuntimeEnabledFeatures::installedAppEnabled()) |
| 1175 InstalledAppController::provideTo(frame, client->installedAppClient()); | 1167 InstalledAppController::provideTo(frame, client->installedAppClient()); |
| 1176 } | 1168 } |
| 1177 | 1169 |
| 1178 } // namespace blink | 1170 } // namespace blink |
| OLD | NEW |