Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "webkit/glue/webkitclient_impl.h" | 5 #include "webkit/glue/webkitclient_impl.h" |
| 6 | 6 |
| 7 #if defined(OS_LINUX) | 7 #if defined(OS_LINUX) |
| 8 #include <malloc.h> | 8 #include <malloc.h> |
| 9 #endif | 9 #endif |
| 10 | 10 |
| (...skipping 25 matching lines...) Expand all Loading... | |
| 36 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 36 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" |
| 37 #include "third_party/WebKit/Source/WebKit/chromium/public/WebVector.h" | 37 #include "third_party/WebKit/Source/WebKit/chromium/public/WebVector.h" |
| 38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" | 38 #include "third_party/WebKit/Source/WebKit/chromium/public/WebURL.h" |
| 39 #include "webkit/glue/media/audio_decoder.h" | 39 #include "webkit/glue/media/audio_decoder.h" |
| 40 #include "webkit/plugins/npapi/plugin_instance.h" | 40 #include "webkit/plugins/npapi/plugin_instance.h" |
| 41 #include "webkit/plugins/npapi/webplugininfo.h" | 41 #include "webkit/plugins/npapi/webplugininfo.h" |
| 42 #include "webkit/glue/webkit_glue.h" | 42 #include "webkit/glue/webkit_glue.h" |
| 43 #include "webkit/glue/websocketstreamhandle_impl.h" | 43 #include "webkit/glue/websocketstreamhandle_impl.h" |
| 44 #include "webkit/glue/weburlloader_impl.h" | 44 #include "webkit/glue/weburlloader_impl.h" |
| 45 | 45 |
| 46 #if defined(OS_LINUX) | 46 #if defined(OS_POSIX) && !defined(OS_MACOSX) |
|
Lei Zhang
2011/05/24 00:11:32
there's no reason to do this unless you also fix t
| |
| 47 #include "v8/include/v8.h" | 47 #include "v8/include/v8.h" |
| 48 #endif | 48 #endif |
| 49 | 49 |
| 50 using WebKit::WebAudioBus; | 50 using WebKit::WebAudioBus; |
| 51 using WebKit::WebCookie; | 51 using WebKit::WebCookie; |
| 52 using WebKit::WebData; | 52 using WebKit::WebData; |
| 53 using WebKit::WebLocalizedString; | 53 using WebKit::WebLocalizedString; |
| 54 using WebKit::WebPluginListBuilder; | 54 using WebKit::WebPluginListBuilder; |
| 55 using WebKit::WebString; | 55 using WebKit::WebString; |
| 56 using WebKit::WebSocketStreamHandle; | 56 using WebKit::WebSocketStreamHandle; |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 199 : main_loop_(MessageLoop::current()), | 199 : main_loop_(MessageLoop::current()), |
| 200 shared_timer_func_(NULL), | 200 shared_timer_func_(NULL), |
| 201 shared_timer_fire_time_(0.0), | 201 shared_timer_fire_time_(0.0), |
| 202 shared_timer_suspended_(0) { | 202 shared_timer_suspended_(0) { |
| 203 } | 203 } |
| 204 | 204 |
| 205 WebKitClientImpl::~WebKitClientImpl() { | 205 WebKitClientImpl::~WebKitClientImpl() { |
| 206 } | 206 } |
| 207 | 207 |
| 208 WebThemeEngine* WebKitClientImpl::themeEngine() { | 208 WebThemeEngine* WebKitClientImpl::themeEngine() { |
| 209 #if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_MACOSX) | 209 #if defined(OS_WIN) || defined(OS_POSIX) |
|
Lei Zhang
2011/05/24 00:11:32
ditto, the code won't even compile, so why bother
| |
| 210 return &theme_engine_; | 210 return &theme_engine_; |
| 211 #else | 211 #else |
| 212 return NULL; | 212 return NULL; |
| 213 #endif | 213 #endif |
| 214 } | 214 } |
| 215 | 215 |
| 216 WebURLLoader* WebKitClientImpl::createURLLoader() { | 216 WebURLLoader* WebKitClientImpl::createURLLoader() { |
| 217 return new WebURLLoaderImpl(); | 217 return new WebURLLoaderImpl(); |
| 218 } | 218 } |
| 219 | 219 |
| (...skipping 365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 585 ++shared_timer_suspended_; | 585 ++shared_timer_suspended_; |
| 586 } | 586 } |
| 587 | 587 |
| 588 void WebKitClientImpl::ResumeSharedTimer() { | 588 void WebKitClientImpl::ResumeSharedTimer() { |
| 589 // The shared timer may have fired or been adjusted while we were suspended. | 589 // The shared timer may have fired or been adjusted while we were suspended. |
| 590 if (--shared_timer_suspended_ == 0 && !shared_timer_.IsRunning()) | 590 if (--shared_timer_suspended_ == 0 && !shared_timer_.IsRunning()) |
| 591 setSharedTimerFireTime(shared_timer_fire_time_); | 591 setSharedTimerFireTime(shared_timer_fire_time_); |
| 592 } | 592 } |
| 593 | 593 |
| 594 } // namespace webkit_glue | 594 } // namespace webkit_glue |
| OLD | NEW |