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 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 | 373 |
374 WebKit::WebString WebKitClientImpl::pathByAppendingComponent( | 374 WebKit::WebString WebKitClientImpl::pathByAppendingComponent( |
375 const WebKit::WebString& webkit_path, | 375 const WebKit::WebString& webkit_path, |
376 const WebKit::WebString& webkit_component) { | 376 const WebKit::WebString& webkit_component) { |
377 FilePath path(webkit_glue::WebStringToFilePathString(webkit_path)); | 377 FilePath path(webkit_glue::WebStringToFilePathString(webkit_path)); |
378 FilePath component(webkit_glue::WebStringToFilePathString(webkit_component)); | 378 FilePath component(webkit_glue::WebStringToFilePathString(webkit_component)); |
379 FilePath combined_path = path.Append(component); | 379 FilePath combined_path = path.Append(component); |
380 return webkit_glue::FilePathStringToWebString(combined_path.value()); | 380 return webkit_glue::FilePathStringToWebString(combined_path.value()); |
381 } | 381 } |
382 | 382 |
383 bool WebKitClientImpl::makeAllDirectories( | 383 bool WebKitClientImpl::makeAllDirectories(const WebKit::WebString& path) { |
384 const WebKit::WebString& path) { | |
385 DCHECK(!sandboxEnabled()); | 384 DCHECK(!sandboxEnabled()); |
386 FilePath::StringType file_path = webkit_glue::WebStringToFilePathString(path); | 385 FilePath::StringType file_path = webkit_glue::WebStringToFilePathString(path); |
387 return file_util::CreateDirectory(FilePath(file_path)); | 386 return file_util::CreateDirectory(FilePath(file_path)); |
388 } | 387 } |
389 | 388 |
390 WebKit::WebString WebKitClientImpl::getAbsolutePath( | 389 WebKit::WebString WebKitClientImpl::getAbsolutePath( |
391 const WebKit::WebString& path) { | 390 const WebKit::WebString& path) { |
392 FilePath file_path(webkit_glue::WebStringToFilePathString(path)); | 391 FilePath file_path(webkit_glue::WebStringToFilePathString(path)); |
393 file_util::AbsolutePath(&file_path); | 392 file_util::AbsolutePath(&file_path); |
394 return webkit_glue::FilePathStringToWebString(file_path.value()); | 393 return webkit_glue::FilePathStringToWebString(file_path.value()); |
(...skipping 18 matching lines...) Expand all Loading... |
413 // methods will be deleted. | 412 // methods will be deleted. |
414 | 413 |
415 WebCore::String WebKitClientImpl::uiResourceProtocol() { | 414 WebCore::String WebKitClientImpl::uiResourceProtocol() { |
416 return StdStringToString(webkit_glue::GetUIResourceProtocol()); | 415 return StdStringToString(webkit_glue::GetUIResourceProtocol()); |
417 } | 416 } |
418 | 417 |
419 // END(TemporaryGlue) | 418 // END(TemporaryGlue) |
420 //-------------------------------------------------------------------------- | 419 //-------------------------------------------------------------------------- |
421 | 420 |
422 } // namespace webkit_glue | 421 } // namespace webkit_glue |
OLD | NEW |