OLD | NEW |
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 Loading... |
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 |
OLD | NEW |