| 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 #ifndef WEBKIT_CLIENT_IMPL_H_ | 5 #ifndef WEBKIT_CLIENT_IMPL_H_ |
| 6 #define WEBKIT_CLIENT_IMPL_H_ | 6 #define WEBKIT_CLIENT_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/platform_file.h" | 8 #include "base/platform_file.h" |
| 9 #include "base/timer.h" | 9 #include "base/timer.h" |
| 10 #include "webkit/api/public/WebKitClient.h" | 10 #include "webkit/api/public/WebKitClient.h" |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 virtual WebKit::WebURL filePathToURL(const WebKit::WebString& path); | 63 virtual WebKit::WebURL filePathToURL(const WebKit::WebString& path); |
| 64 | 64 |
| 65 virtual WebKit::WebApplicationCacheHost* createApplicationCacheHost( | 65 virtual WebKit::WebApplicationCacheHost* createApplicationCacheHost( |
| 66 WebKit::WebApplicationCacheHostClient*); | 66 WebKit::WebApplicationCacheHostClient*); |
| 67 | 67 |
| 68 // These are temporary methods that the WebKit layer can use to call to the | 68 // These are temporary methods that the WebKit layer can use to call to the |
| 69 // Glue layer. Once the Glue layer moves entirely into the WebKit layer, | 69 // Glue layer. Once the Glue layer moves entirely into the WebKit layer, |
| 70 // these methods will be deleted. | 70 // these methods will be deleted. |
| 71 virtual WebKit::WebMediaPlayer* createWebMediaPlayer( | 71 virtual WebKit::WebMediaPlayer* createWebMediaPlayer( |
| 72 WebKit::WebMediaPlayerClient*, WebCore::Frame*); | 72 WebKit::WebMediaPlayerClient*, WebCore::Frame*); |
| 73 virtual void setCursorForPlugin(const WebKit::WebCursorInfo&, WebCore::Frame*)
; | 73 virtual void setCursorForPlugin( |
| 74 const WebKit::WebCursorInfo&, WebCore::Frame*); |
| 74 virtual WebCore::String uiResourceProtocol(); | 75 virtual WebCore::String uiResourceProtocol(); |
| 75 virtual void notifyJSOutOfMemory(WebCore::Frame*); | 76 virtual void notifyJSOutOfMemory(WebCore::Frame*); |
| 76 virtual int screenDepth(WebCore::Widget*); | 77 virtual int screenDepth(WebCore::Widget*); |
| 77 virtual int screenDepthPerComponent(WebCore::Widget*); | 78 virtual int screenDepthPerComponent(WebCore::Widget*); |
| 78 virtual bool screenIsMonochrome(WebCore::Widget*); | 79 virtual bool screenIsMonochrome(WebCore::Widget*); |
| 79 virtual WebCore::IntRect screenRect(WebCore::Widget*); | 80 virtual WebCore::IntRect screenRect(WebCore::Widget*); |
| 80 virtual WebCore::IntRect screenAvailableRect(WebCore::Widget*); | 81 virtual WebCore::IntRect screenAvailableRect(WebCore::Widget*); |
| 81 virtual bool popupsAllowed(NPP); | 82 virtual bool popupsAllowed(NPP); |
| 82 virtual void widgetSetCursor(WebCore::Widget*, const WebCore::Cursor&); | 83 virtual void widgetSetCursor(WebCore::Widget*, const WebCore::Cursor&); |
| 83 virtual void widgetSetFocus(WebCore::Widget*); | 84 virtual void widgetSetFocus(WebCore::Widget*); |
| 84 virtual WebCore::WorkerContextProxy* createWorkerContextProxy(WebCore::Worker*
worker); | 85 virtual WebCore::WorkerContextProxy* createWorkerContextProxy( |
| 86 WebCore::Worker* worker); |
| 87 virtual WebKit::WebStorageNamespace* createLocalStorageNamespace( |
| 88 const WebKit::WebString& path, unsigned quota); |
| 89 virtual WebKit::WebStorageNamespace* createSessionStorageNamespace(); |
| 85 | 90 |
| 86 private: | 91 private: |
| 87 void DoTimeout() { | 92 void DoTimeout() { |
| 88 if (shared_timer_func_) | 93 if (shared_timer_func_) |
| 89 shared_timer_func_(); | 94 shared_timer_func_(); |
| 90 } | 95 } |
| 91 | 96 |
| 92 MessageLoop* main_loop_; | 97 MessageLoop* main_loop_; |
| 93 base::OneShotTimer<WebKitClientImpl> shared_timer_; | 98 base::OneShotTimer<WebKitClientImpl> shared_timer_; |
| 94 void (*shared_timer_func_)(); | 99 void (*shared_timer_func_)(); |
| 95 | 100 |
| 96 #if defined(OS_WIN) | 101 #if defined(OS_WIN) |
| 97 WebThemeEngineImpl theme_engine_; | 102 WebThemeEngineImpl theme_engine_; |
| 98 #endif | 103 #endif |
| 99 }; | 104 }; |
| 100 | 105 |
| 101 } // namespace webkit_glue | 106 } // namespace webkit_glue |
| 102 | 107 |
| 103 #endif // WEBKIT_CLIENT_IMPL_H_ | 108 #endif // WEBKIT_CLIENT_IMPL_H_ |
| OLD | NEW |