| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PLATFORM_SUPPORT_IMPL_H_ | 5 #ifndef WEBKIT_PLATFORM_SUPPORT_IMPL_H_ |
| 6 #define WEBKIT_PLATFORM_SUPPORT_IMPL_H_ | 6 #define WEBKIT_PLATFORM_SUPPORT_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/platform_file.h" | 9 #include "base/platform_file.h" |
| 10 #include "base/threading/thread_local_storage.h" | 10 #include "base/threading/thread_local_storage.h" |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 // need to be specialized by the embedder. | 114 // need to be specialized by the embedder. |
| 115 | 115 |
| 116 // Gets a localized string given a message id. Returns an empty string if the | 116 // Gets a localized string given a message id. Returns an empty string if the |
| 117 // message id is not found. | 117 // message id is not found. |
| 118 virtual string16 GetLocalizedString(int message_id) = 0; | 118 virtual string16 GetLocalizedString(int message_id) = 0; |
| 119 | 119 |
| 120 // Returns the raw data for a resource. This resource must have been | 120 // Returns the raw data for a resource. This resource must have been |
| 121 // specified as BINDATA in the relevant .rc file. | 121 // specified as BINDATA in the relevant .rc file. |
| 122 virtual base::StringPiece GetDataResource(int resource_id) = 0; | 122 virtual base::StringPiece GetDataResource(int resource_id) = 0; |
| 123 | 123 |
| 124 // Returns the raw data for an image resource with a scale factor as close as |
| 125 // is available to |scale_factor|. This resource must have been specified as |
| 126 // BINDATA in the relevant .rc file. |
| 127 virtual base::StringPiece GetImageResource(int resource_id, |
| 128 float scale_factor) = 0; |
| 129 |
| 124 // Returns the list of plugins. | 130 // Returns the list of plugins. |
| 125 virtual void GetPlugins(bool refresh, | 131 virtual void GetPlugins(bool refresh, |
| 126 std::vector<webkit::WebPluginInfo>* plugins) = 0; | 132 std::vector<webkit::WebPluginInfo>* plugins) = 0; |
| 127 // Creates a ResourceLoaderBridge. | 133 // Creates a ResourceLoaderBridge. |
| 128 virtual ResourceLoaderBridge* CreateResourceLoader( | 134 virtual ResourceLoaderBridge* CreateResourceLoader( |
| 129 const ResourceLoaderBridge::RequestInfo& request_info) = 0; | 135 const ResourceLoaderBridge::RequestInfo& request_info) = 0; |
| 130 // Creates a WebSocketStreamHandleBridge. | 136 // Creates a WebSocketStreamHandleBridge. |
| 131 virtual WebSocketStreamHandleBridge* CreateWebSocketBridge( | 137 virtual WebSocketStreamHandleBridge* CreateWebSocketBridge( |
| 132 WebKit::WebSocketStreamHandle* handle, | 138 WebKit::WebSocketStreamHandle* handle, |
| 133 WebSocketStreamHandleDelegate* delegate) = 0; | 139 WebSocketStreamHandleDelegate* delegate) = 0; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 153 void (*shared_timer_func_)(); | 159 void (*shared_timer_func_)(); |
| 154 double shared_timer_fire_time_; | 160 double shared_timer_fire_time_; |
| 155 int shared_timer_suspended_; // counter | 161 int shared_timer_suspended_; // counter |
| 156 WebThemeEngineImpl theme_engine_; | 162 WebThemeEngineImpl theme_engine_; |
| 157 base::ThreadLocalStorage::Slot current_thread_slot_; | 163 base::ThreadLocalStorage::Slot current_thread_slot_; |
| 158 }; | 164 }; |
| 159 | 165 |
| 160 } // namespace webkit_glue | 166 } // namespace webkit_glue |
| 161 | 167 |
| 162 #endif // WEBKIT_PLATFORM_SUPPORT_IMPL_H_ | 168 #endif // WEBKIT_PLATFORM_SUPPORT_IMPL_H_ |
| OLD | NEW |