Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(268)

Side by Side Diff: webkit/api/src/ChromiumBridge.cpp

Issue 346026: Remove TemporaryGlue::popupsAllowed by just having the... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | webkit/api/src/TemporaryGlue.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | webkit/api/src/TemporaryGlue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698