OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 return -1; | 160 return -1; |
161 } | 161 } |
162 | 162 |
163 WebKitClientImpl::WebKitClientImpl() | 163 WebKitClientImpl::WebKitClientImpl() |
164 : main_loop_(MessageLoop::current()), | 164 : main_loop_(MessageLoop::current()), |
165 shared_timer_func_(NULL), | 165 shared_timer_func_(NULL), |
166 shared_timer_fire_time_(0.0), | 166 shared_timer_fire_time_(0.0), |
167 shared_timer_suspended_(0) { | 167 shared_timer_suspended_(0) { |
168 } | 168 } |
169 | 169 |
| 170 WebKitClientImpl::~WebKitClientImpl() { |
| 171 } |
| 172 |
170 WebThemeEngine* WebKitClientImpl::themeEngine() { | 173 WebThemeEngine* WebKitClientImpl::themeEngine() { |
171 #if defined(OS_WIN) | 174 #if defined(OS_WIN) |
172 return &theme_engine_; | 175 return &theme_engine_; |
173 #else | 176 #else |
174 return NULL; | 177 return NULL; |
175 #endif | 178 #endif |
176 } | 179 } |
177 | 180 |
178 WebURLLoader* WebKitClientImpl::createURLLoader() { | 181 WebURLLoader* WebKitClientImpl::createURLLoader() { |
179 return new WebURLLoaderImpl(); | 182 return new WebURLLoaderImpl(); |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
443 ++shared_timer_suspended_; | 446 ++shared_timer_suspended_; |
444 } | 447 } |
445 | 448 |
446 void WebKitClientImpl::ResumeSharedTimer() { | 449 void WebKitClientImpl::ResumeSharedTimer() { |
447 // The shared timer may have fired or been adjusted while we were suspended. | 450 // The shared timer may have fired or been adjusted while we were suspended. |
448 if (--shared_timer_suspended_ == 0 && !shared_timer_.IsRunning()) | 451 if (--shared_timer_suspended_ == 0 && !shared_timer_.IsRunning()) |
449 setSharedTimerFireTime(shared_timer_fire_time_); | 452 setSharedTimerFireTime(shared_timer_fire_time_); |
450 } | 453 } |
451 | 454 |
452 } // namespace webkit_glue | 455 } // namespace webkit_glue |
OLD | NEW |