| 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 #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 "third_party/WebKit/WebKit/chromium/public/WebKitClient.h" | 10 #include "third_party/WebKit/WebKit/chromium/public/WebKitClient.h" |
| 11 #if defined(OS_WIN) | 11 #if defined(OS_WIN) |
| 12 #include "webkit/glue/webthemeengine_impl_win.h" | 12 #include "webkit/glue/webthemeengine_impl_win.h" |
| 13 #elif defined(OS_LINUX) | 13 #elif defined(OS_LINUX) |
| 14 #include "webkit/glue/webthemeengine_impl_linux.h" | 14 #include "webkit/glue/webthemeengine_impl_linux.h" |
| 15 #elif defined(OS_MACOSX) |
| 16 #include "webkit/glue/webthemeengine_impl_mac.h" |
| 15 #endif | 17 #endif |
| 16 | 18 |
| 17 | 19 |
| 18 class MessageLoop; | 20 class MessageLoop; |
| 19 | 21 |
| 20 namespace webkit_glue { | 22 namespace webkit_glue { |
| 21 | 23 |
| 22 class WebKitClientImpl : public WebKit::WebKitClient { | 24 class WebKitClientImpl : public WebKit::WebKitClient { |
| 23 public: | 25 public: |
| 24 WebKitClientImpl(); | 26 WebKitClientImpl(); |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 if (shared_timer_func_ && !shared_timer_suspended_) | 81 if (shared_timer_func_ && !shared_timer_suspended_) |
| 80 shared_timer_func_(); | 82 shared_timer_func_(); |
| 81 } | 83 } |
| 82 | 84 |
| 83 MessageLoop* main_loop_; | 85 MessageLoop* main_loop_; |
| 84 base::OneShotTimer<WebKitClientImpl> shared_timer_; | 86 base::OneShotTimer<WebKitClientImpl> shared_timer_; |
| 85 void (*shared_timer_func_)(); | 87 void (*shared_timer_func_)(); |
| 86 double shared_timer_fire_time_; | 88 double shared_timer_fire_time_; |
| 87 int shared_timer_suspended_; // counter | 89 int shared_timer_suspended_; // counter |
| 88 | 90 |
| 89 #if defined(OS_WIN) || defined(OS_LINUX) | 91 #if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_MACOSX) |
| 90 WebThemeEngineImpl theme_engine_; | 92 WebThemeEngineImpl theme_engine_; |
| 91 #endif | 93 #endif |
| 92 }; | 94 }; |
| 93 | 95 |
| 94 } // namespace webkit_glue | 96 } // namespace webkit_glue |
| 95 | 97 |
| 96 #endif // WEBKIT_CLIENT_IMPL_H_ | 98 #endif // WEBKIT_CLIENT_IMPL_H_ |
| OLD | NEW |