OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
657 IntRect ChromiumBridge::screenAvailableRect(Widget* widget) | 657 IntRect ChromiumBridge::screenAvailableRect(Widget* widget) |
658 { | 658 { |
659 WebWidgetClient* client = toWebWidgetClient(widget); | 659 WebWidgetClient* client = toWebWidgetClient(widget); |
660 if (!client) | 660 if (!client) |
661 return IntRect(); | 661 return IntRect(); |
662 return client->screenInfo().availableRect; | 662 return client->screenInfo().availableRect; |
663 } | 663 } |
664 | 664 |
665 bool ChromiumBridge::popupsAllowed(NPP npp) | 665 bool ChromiumBridge::popupsAllowed(NPP npp) |
666 { | 666 { |
667 return webKitClient()->popupsAllowed(npp); | 667 // FIXME: Give the embedder a way to control this. |
| 668 return false; |
668 } | 669 } |
669 | 670 |
670 void ChromiumBridge::widgetSetCursor(Widget* widget, const Cursor& cursor) | 671 void ChromiumBridge::widgetSetCursor(Widget* widget, const Cursor& cursor) |
671 { | 672 { |
672 ChromeClientImpl* client = toChromeClientImpl(widget); | 673 ChromeClientImpl* client = toChromeClientImpl(widget); |
673 if (client) | 674 if (client) |
674 client->setCursor(WebCursorInfo(cursor)); | 675 client->setCursor(WebCursorInfo(cursor)); |
675 } | 676 } |
676 | 677 |
677 void ChromiumBridge::widgetSetFocus(Widget* widget) | 678 void ChromiumBridge::widgetSetFocus(Widget* widget) |
678 { | 679 { |
679 ChromeClientImpl* client = toChromeClientImpl(widget); | 680 ChromeClientImpl* client = toChromeClientImpl(widget); |
680 if (client) | 681 if (client) |
681 client->focus(); | 682 client->focus(); |
682 } | 683 } |
683 | 684 |
684 WorkerContextProxy* WorkerContextProxy::create(Worker* worker) | 685 WorkerContextProxy* WorkerContextProxy::create(Worker* worker) |
685 { | 686 { |
686 return WebWorkerClientImpl::createWorkerContextProxy(worker); | 687 return WebWorkerClientImpl::createWorkerContextProxy(worker); |
687 } | 688 } |
688 | 689 |
689 } // namespace WebCore | 690 } // namespace WebCore |
OLD | NEW |