| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   75   virtual double currentTime(); |   75   virtual double currentTime(); | 
|   76   virtual void setSharedTimerFiredFunction(void (*func)()); |   76   virtual void setSharedTimerFiredFunction(void (*func)()); | 
|   77   virtual void setSharedTimerFireTime(double fireTime); |   77   virtual void setSharedTimerFireTime(double fireTime); | 
|   78   virtual void stopSharedTimer(); |   78   virtual void stopSharedTimer(); | 
|   79   virtual void callOnMainThread(void (*func)()); |   79   virtual void callOnMainThread(void (*func)()); | 
|   80  |   80  | 
|   81   // These are temporary methods that the WebKit layer can use to call to the |   81   // These are temporary methods that the WebKit layer can use to call to the | 
|   82   // Glue layer.  Once the Glue layer moves entirely into the WebKit layer, |   82   // Glue layer.  Once the Glue layer moves entirely into the WebKit layer, | 
|   83   // these methods will be deleted. |   83   // these methods will be deleted. | 
|   84   virtual WebCore::String uiResourceProtocol(); |   84   virtual WebCore::String uiResourceProtocol(); | 
|   85   virtual bool popupsAllowed(NPP); |  | 
|   86  |   85  | 
|   87  private: |   86  private: | 
|   88   void DoTimeout() { |   87   void DoTimeout() { | 
|   89     if (shared_timer_func_) |   88     if (shared_timer_func_) | 
|   90       shared_timer_func_(); |   89       shared_timer_func_(); | 
|   91   } |   90   } | 
|   92  |   91  | 
|   93   MessageLoop* main_loop_; |   92   MessageLoop* main_loop_; | 
|   94   base::OneShotTimer<WebKitClientImpl> shared_timer_; |   93   base::OneShotTimer<WebKitClientImpl> shared_timer_; | 
|   95   void (*shared_timer_func_)(); |   94   void (*shared_timer_func_)(); | 
|   96  |   95  | 
|   97 #if defined(OS_WIN) |   96 #if defined(OS_WIN) | 
|   98   WebThemeEngineImpl theme_engine_; |   97   WebThemeEngineImpl theme_engine_; | 
|   99 #endif |   98 #endif | 
|  100 }; |   99 }; | 
|  101  |  100  | 
|  102 }  // namespace webkit_glue |  101 }  // namespace webkit_glue | 
|  103  |  102  | 
|  104 #endif  // WEBKIT_CLIENT_IMPL_H_ |  103 #endif  // WEBKIT_CLIENT_IMPL_H_ | 
| OLD | NEW |