Changeset 145565 in webkit
- Timestamp:
- Mar 12, 2013, 11:13:50 AM (12 years ago)
- Location:
- releases/WebKitGTK/webkit-2.0/Source/WebKit2
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
releases/WebKitGTK/webkit-2.0/Source/WebKit2/ChangeLog
r145528 r145565 1 2013-03-12 Manuel Rego Casasnovas <rego@igalia.com> 2 3 Clean up WebPageURITest 4 5 Reviewed by Carlos Garcia Campos. 6 7 * UIProcess/API/gtk/tests/TestLoaderClient.cpp: 8 * UIProcess/API/gtk/tests/WebKitTestBus.cpp: 9 (WebKitTestBus::getOrCreateConnection): 10 (WebKitTestBus::createProxy): 11 * UIProcess/API/gtk/tests/WebKitTestBus.h: 12 (WebKitTestBus::connection): 13 (WebKitTestBus): 14 1 15 2013-03-12 Carlos Garcia Campos <cgarcia@igalia.com> 2 16 -
releases/WebKitGTK/webkit-2.0/Source/WebKit2/UIProcess/API/gtk/tests/TestLoaderClient.cpp
r144890 r145565 304 304 GRefPtr<GDBusProxy> proxy = adoptGRef(bus->createProxy("org.webkit.gtk.WebExtensionTest", 305 305 "/org/webkit/gtk/WebExtensionTest", "org.webkit.gtk.WebExtensionTest", m_mainLoop)); 306 guint id= g_dbus_connection_signal_subscribe(306 m_uriChangedSignalID = g_dbus_connection_signal_subscribe( 307 307 g_dbus_proxy_get_connection(proxy.get()), 308 308 0, … … 315 315 this, 316 316 0); 317 g_assert( id);317 g_assert(m_uriChangedSignalID); 318 318 319 319 g_signal_connect(m_webView, "notify::uri", G_CALLBACK(webViewURIChanged), this); 320 320 } 321 321 322 ~WebPageURITest() 323 { 324 g_signal_handlers_disconnect_matched(m_webView, G_SIGNAL_MATCH_DATA, 0, 0, 0, 0, this); 325 g_dbus_connection_signal_unsubscribe(bus->connection(), m_uriChangedSignalID); 326 } 327 328 unsigned m_uriChangedSignalID; 322 329 Vector<CString> m_webPageURIs; 323 330 Vector<CString> m_webViewURIs; 324 325 331 }; 326 332 -
releases/WebKitGTK/webkit-2.0/Source/WebKit2/UIProcess/API/gtk/tests/WebKitTestBus.cpp
r139305 r145565 70 70 } 71 71 72 GDBusConnection* WebKitTestBus:: connection()72 GDBusConnection* WebKitTestBus::getOrCreateConnection() 73 73 { 74 74 if (m_connection) … … 89 89 GDBusProxy* WebKitTestBus::createProxy(const char* serviceName, const char* objectPath, const char* interfaceName, GMainLoop* mainLoop) 90 90 { 91 unsigned watcherID = g_bus_watch_name_on_connection( connection(), serviceName, G_BUS_NAME_WATCHER_FLAGS_NONE, onNameAppeared, 0, mainLoop, 0);91 unsigned watcherID = g_bus_watch_name_on_connection(getOrCreateConnection(), serviceName, G_BUS_NAME_WATCHER_FLAGS_NONE, onNameAppeared, 0, mainLoop, 0); 92 92 g_main_loop_run(mainLoop); 93 93 g_bus_unwatch_name(watcherID); -
releases/WebKitGTK/webkit-2.0/Source/WebKit2/UIProcess/API/gtk/tests/WebKitTestBus.h
r139305 r145565 32 32 bool run(); 33 33 GDBusProxy* createProxy(const char* serviceName, const char* objectPath, const char* interfaceName, GMainLoop*); 34 GDBusConnection* connection() const { return m_connection.get(); } 34 35 35 36 private: 36 GDBusConnection* connection();37 GDBusConnection* getOrCreateConnection(); 37 38 38 39 pid_t m_pid;
Note:
See TracChangeset
for help on using the changeset viewer.