| 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 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 FilePath file_path(webkit_glue::WebStringToFilePathString(path)); | 398 FilePath file_path(webkit_glue::WebStringToFilePathString(path)); |
| 399 return file_util::DirectoryExists(file_path); | 399 return file_util::DirectoryExists(file_path); |
| 400 } | 400 } |
| 401 | 401 |
| 402 WebKit::WebURL WebKitClientImpl::filePathToURL(const WebKit::WebString& path) { | 402 WebKit::WebURL WebKitClientImpl::filePathToURL(const WebKit::WebString& path) { |
| 403 FilePath file_path(webkit_glue::WebStringToFilePathString(path)); | 403 FilePath file_path(webkit_glue::WebStringToFilePathString(path)); |
| 404 GURL file_url = net::FilePathToFileURL(file_path); | 404 GURL file_url = net::FilePathToFileURL(file_path); |
| 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 //-------------------------------------------------------------------------- | |
| 409 // BEGIN(TemporaryGlue) | |
| 410 | |
| 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 | |
| 413 // methods will be deleted. | |
| 414 | |
| 415 WebCore::String WebKitClientImpl::uiResourceProtocol() { | |
| 416 return StdStringToString(webkit_glue::GetUIResourceProtocol()); | |
| 417 } | |
| 418 | |
| 419 // END(TemporaryGlue) | |
| 420 //-------------------------------------------------------------------------- | |
| 421 | |
| 422 } // namespace webkit_glue | 408 } // namespace webkit_glue |
| OLD | NEW |