| 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_SUPPORT_WEBIT_SUPPORT_H_ | 5 #ifndef WEBKIT_SUPPORT_WEBIT_SUPPORT_H_ |
| 6 #define WEBKIT_SUPPORT_WEBIT_SUPPORT_H_ | 6 #define WEBKIT_SUPPORT_WEBIT_SUPPORT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 | 98 |
| 99 // -------- Message loop and task | 99 // -------- Message loop and task |
| 100 void RunMessageLoop(); | 100 void RunMessageLoop(); |
| 101 void QuitMessageLoop(); | 101 void QuitMessageLoop(); |
| 102 void RunAllPendingMessages(); | 102 void RunAllPendingMessages(); |
| 103 void DispatchMessageLoop(); | 103 void DispatchMessageLoop(); |
| 104 WebKit::WebDevToolsAgentClient::WebKitClientMessageLoop* | 104 WebKit::WebDevToolsAgentClient::WebKitClientMessageLoop* |
| 105 CreateDevToolsMessageLoop(); | 105 CreateDevToolsMessageLoop(); |
| 106 void PostTaskFromHere(Task* task); // TODO(tkent): Eliminate Task. | 106 void PostTaskFromHere(Task* task); // TODO(tkent): Eliminate Task. |
| 107 void PostDelayedTaskFromHere(Task* task, int64 delay_ms); // ditto. | 107 void PostDelayedTaskFromHere(Task* task, int64 delay_ms); // ditto. |
| 108 void PostDelayedTask(void (*func)(void*), void* context, int64 delay_ms); |
| 108 | 109 |
| 109 // -------- File path and PathService | 110 // -------- File path and PathService |
| 110 // Converts the specified path string to an absolute path in WebString. | 111 // Converts the specified path string to an absolute path in WebString. |
| 111 // |utf8_path| is in UTF-8 encoding, not native multibyte string. | 112 // |utf8_path| is in UTF-8 encoding, not native multibyte string. |
| 112 WebKit::WebString GetAbsoluteWebStringFromUTF8Path( | 113 WebKit::WebString GetAbsoluteWebStringFromUTF8Path( |
| 113 const std::string& utf8_path); | 114 const std::string& utf8_path); |
| 114 | 115 |
| 115 // Create a WebURL from the specified string. | 116 // Create a WebURL from the specified string. |
| 116 // If |path_or_url_in_nativemb| is a URL starting with scheme, this simply | 117 // If |path_or_url_in_nativemb| is a URL starting with scheme, this simply |
| 117 // returns a WebURL for it. Otherwise, this returns a file:// URL. | 118 // returns a WebURL for it. Otherwise, this returns a file:// URL. |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 VKEY_NEXT = base::VKEY_NEXT, | 166 VKEY_NEXT = base::VKEY_NEXT, |
| 166 VKEY_HOME = base::VKEY_HOME, | 167 VKEY_HOME = base::VKEY_HOME, |
| 167 VKEY_END = base::VKEY_END, | 168 VKEY_END = base::VKEY_END, |
| 168 VKEY_SNAPSHOT = base::VKEY_SNAPSHOT, | 169 VKEY_SNAPSHOT = base::VKEY_SNAPSHOT, |
| 169 VKEY_F1 = base::VKEY_F1, | 170 VKEY_F1 = base::VKEY_F1, |
| 170 }; | 171 }; |
| 171 | 172 |
| 172 } // namespace webkit_support | 173 } // namespace webkit_support |
| 173 | 174 |
| 174 #endif // WEBKIT_SUPPORT_WEBIT_CLIENT_IMPL_H_ | 175 #endif // WEBKIT_SUPPORT_WEBIT_CLIENT_IMPL_H_ |
| OLD | NEW |