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

Side by Side Diff: webkit/glue/webkitclient_impl.cc

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 | « webkit/glue/webkitclient_impl.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
2 // source code is governed by a BSD-style license that can be found in the 2 // source code is governed by a BSD-style license that can be found in the
3 // LICENSE file. 3 // LICENSE file.
4 4
5 #include <math.h> 5 #include <math.h>
6 #include "config.h" 6 #include "config.h"
7 7
8 #include "FrameView.h" 8 #include "FrameView.h"
9 #include "ScrollView.h" 9 #include "ScrollView.h"
10 #include <wtf/Assertions.h> 10 #include <wtf/Assertions.h>
(...skipping 394 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 return webkit_glue::KURLToWebURL(webkit_glue::GURLToKURL(file_url)); 405 return webkit_glue::KURLToWebURL(webkit_glue::GURLToKURL(file_url));
406 } 406 }
407 407
408 //-------------------------------------------------------------------------- 408 //--------------------------------------------------------------------------
409 // BEGIN(TemporaryGlue) 409 // BEGIN(TemporaryGlue)
410 410
411 // These are temporary methods that the WebKit layer can use to call to the 411 // These are temporary methods that the WebKit layer can use to call to the
412 // Glue layer. Once the Glue layer moves entirely into the WebKit layer, these 412 // Glue layer. Once the Glue layer moves entirely into the WebKit layer, these
413 // methods will be deleted. 413 // methods will be deleted.
414 414
415 bool WebKitClientImpl::popupsAllowed(NPP npp) {
416 bool popups_allowed = false;
417 if (npp) {
418 NPAPI::PluginInstance* plugin_instance =
419 reinterpret_cast<NPAPI::PluginInstance*>(npp->ndata);
420 if (plugin_instance)
421 popups_allowed = plugin_instance->popups_allowed();
422 }
423 return popups_allowed;
424 }
425
426 WebCore::String WebKitClientImpl::uiResourceProtocol() { 415 WebCore::String WebKitClientImpl::uiResourceProtocol() {
427 return StdStringToString(webkit_glue::GetUIResourceProtocol()); 416 return StdStringToString(webkit_glue::GetUIResourceProtocol());
428 } 417 }
429 418
430 // END(TemporaryGlue) 419 // END(TemporaryGlue)
431 //-------------------------------------------------------------------------- 420 //--------------------------------------------------------------------------
432 421
433 } // namespace webkit_glue 422 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « webkit/glue/webkitclient_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698