| 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 "config.h" | 5 #include "config.h" |
| 6 | 6 |
| 7 #include "FrameView.h" | 7 #include "FrameView.h" |
| 8 #include "ScrollView.h" | 8 #include "ScrollView.h" |
| 9 #include <wtf/Assertions.h> | 9 #include <wtf/Assertions.h> |
| 10 #undef LOG | 10 #undef LOG |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 #include "webkit/glue/weburlloader_impl.h" | 35 #include "webkit/glue/weburlloader_impl.h" |
| 36 #include "webkit/glue/webview_impl.h" | 36 #include "webkit/glue/webview_impl.h" |
| 37 #include "webkit/glue/webworkerclient_impl.h" | 37 #include "webkit/glue/webworkerclient_impl.h" |
| 38 | 38 |
| 39 using WebKit::WebApplicationCacheHost; | 39 using WebKit::WebApplicationCacheHost; |
| 40 using WebKit::WebApplicationCacheHostClient; | 40 using WebKit::WebApplicationCacheHostClient; |
| 41 using WebKit::WebCursorInfo; | 41 using WebKit::WebCursorInfo; |
| 42 using WebKit::WebData; | 42 using WebKit::WebData; |
| 43 using WebKit::WebLocalizedString; | 43 using WebKit::WebLocalizedString; |
| 44 using WebKit::WebPluginListBuilder; | 44 using WebKit::WebPluginListBuilder; |
| 45 using WebKit::WebStorageNamespace; |
| 45 using WebKit::WebString; | 46 using WebKit::WebString; |
| 46 using WebKit::WebThemeEngine; | 47 using WebKit::WebThemeEngine; |
| 47 using WebKit::WebURLLoader; | 48 using WebKit::WebURLLoader; |
| 48 using WebKit::WebWidgetClient; | 49 using WebKit::WebWidgetClient; |
| 49 | 50 |
| 50 namespace { | 51 namespace { |
| 51 | 52 |
| 52 ChromeClientImpl* ToChromeClient(WebCore::Widget* widget) { | 53 ChromeClientImpl* ToChromeClient(WebCore::Widget* widget) { |
| 53 WebCore::FrameView* view; | 54 WebCore::FrameView* view; |
| 54 if (widget->isFrameView()) { | 55 if (widget->isFrameView()) { |
| (...skipping 402 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 457 ChromeClientImpl* chrome_client = ToChromeClient(widget); | 458 ChromeClientImpl* chrome_client = ToChromeClient(widget); |
| 458 if (chrome_client) | 459 if (chrome_client) |
| 459 chrome_client->focus(); | 460 chrome_client->focus(); |
| 460 } | 461 } |
| 461 | 462 |
| 462 WebCore::WorkerContextProxy* WebKitClientImpl::createWorkerContextProxy( | 463 WebCore::WorkerContextProxy* WebKitClientImpl::createWorkerContextProxy( |
| 463 WebCore::Worker* worker) { | 464 WebCore::Worker* worker) { |
| 464 return WebWorkerClientImpl::createWorkerContextProxy(worker); | 465 return WebWorkerClientImpl::createWorkerContextProxy(worker); |
| 465 } | 466 } |
| 466 | 467 |
| 468 WebStorageNamespace* WebKitClientImpl::createLocalStorageNamespace( |
| 469 const WebString& path, unsigned quota) { |
| 470 NOTREACHED(); |
| 471 return 0; |
| 472 } |
| 473 |
| 474 WebStorageNamespace* WebKitClientImpl::createSessionStorageNamespace() { |
| 475 NOTREACHED(); |
| 476 return 0; |
| 477 } |
| 478 |
| 467 WebKit::WebString WebKitClientImpl::getAbsolutePath( | 479 WebKit::WebString WebKitClientImpl::getAbsolutePath( |
| 468 const WebKit::WebString& path) { | 480 const WebKit::WebString& path) { |
| 469 FilePath file_path(webkit_glue::WebStringToFilePathString(path)); | 481 FilePath file_path(webkit_glue::WebStringToFilePathString(path)); |
| 470 file_util::AbsolutePath(&file_path); | 482 file_util::AbsolutePath(&file_path); |
| 471 return webkit_glue::FilePathStringToWebString(file_path.value()); | 483 return webkit_glue::FilePathStringToWebString(file_path.value()); |
| 472 } | 484 } |
| 473 | 485 |
| 474 bool WebKitClientImpl::isDirectory(const WebKit::WebString& path) { | 486 bool WebKitClientImpl::isDirectory(const WebKit::WebString& path) { |
| 475 FilePath file_path(webkit_glue::WebStringToFilePathString(path)); | 487 FilePath file_path(webkit_glue::WebStringToFilePathString(path)); |
| 476 return file_util::DirectoryExists(file_path); | 488 return file_util::DirectoryExists(file_path); |
| 477 } | 489 } |
| 478 | 490 |
| 479 WebKit::WebURL WebKitClientImpl::filePathToURL(const WebKit::WebString& path) { | 491 WebKit::WebURL WebKitClientImpl::filePathToURL(const WebKit::WebString& path) { |
| 480 FilePath file_path(webkit_glue::WebStringToFilePathString(path)); | 492 FilePath file_path(webkit_glue::WebStringToFilePathString(path)); |
| 481 GURL file_url = net::FilePathToFileURL(file_path); | 493 GURL file_url = net::FilePathToFileURL(file_path); |
| 482 return webkit_glue::KURLToWebURL(webkit_glue::GURLToKURL(file_url)); | 494 return webkit_glue::KURLToWebURL(webkit_glue::GURLToKURL(file_url)); |
| 483 } | 495 } |
| 496 |
| 484 } // namespace webkit_glue | 497 } // namespace webkit_glue |
| OLD | NEW |