Index: chrome/test/webdriver/server.cc |
diff --git a/chrome/test/webdriver/server.cc b/chrome/test/webdriver/server.cc |
index 8046c046cf91e6d2777c6f9087eff4d49301ff04..6c8b33a7d7a1dcd48f08505156601f1accf4b3a6 100644 |
--- a/chrome/test/webdriver/server.cc |
+++ b/chrome/test/webdriver/server.cc |
@@ -37,6 +37,7 @@ |
#include "chrome/test/webdriver/commands/session_with_id.h" |
#include "chrome/test/webdriver/commands/source_command.h" |
#include "chrome/test/webdriver/commands/speed_command.h" |
+#include "chrome/test/webdriver/commands/target_locator_commands.h" |
#include "chrome/test/webdriver/commands/title_command.h" |
#include "chrome/test/webdriver/commands/url_command.h" |
#include "chrome/test/webdriver/commands/webelement_commands.h" |
@@ -78,16 +79,20 @@ void InitCallbacks(struct mg_context* ctx, |
base::WaitableEvent* shutdown_event) { |
mg_set_uri_callback(ctx, "/shutdown", &Shutdown, shutdown_event); |
- SetCallback<CreateSession>(ctx, "/session"); |
- SetCallback<BackCommand>(ctx, "/session/*/back"); |
- SetCallback<ExecuteCommand>(ctx, "/session/*/execute"); |
- SetCallback<ForwardCommand>(ctx, "/session/*/forward"); |
- SetCallback<RefreshCommand>(ctx, "/session/*/refresh"); |
- SetCallback<SourceCommand>(ctx, "/session/*/source"); |
- SetCallback<TitleCommand>(ctx, "/session/*/title"); |
- SetCallback<URLCommand>(ctx, "/session/*/url"); |
- SetCallback<SpeedCommand>(ctx, "/session/*/speed"); |
- SetCallback<ImplicitWaitCommand>(ctx, "/session/*/timeouts/implicit_wait"); |
+ SetCallback<CreateSession>(ctx, "/session"); |
+ SetCallback<BackCommand>(ctx, "/session/*/back"); |
+ SetCallback<ExecuteCommand>(ctx, "/session/*/execute"); |
+ SetCallback<ForwardCommand>(ctx, "/session/*/forward"); |
+ SetCallback<RefreshCommand>(ctx, "/session/*/refresh"); |
+ SetCallback<SourceCommand>(ctx, "/session/*/source"); |
+ SetCallback<TitleCommand>(ctx, "/session/*/title"); |
+ SetCallback<URLCommand>(ctx, "/session/*/url"); |
+ SetCallback<SpeedCommand>(ctx, "/session/*/speed"); |
+ SetCallback<ImplicitWaitCommand>(ctx, "/session/*/timeouts/implicit_wait"); |
+ SetCallback<WindowHandleCommand>(ctx, "/session/*/window_handle"); |
+ SetCallback<WindowHandlesCommand>(ctx, "/session/*/window_handles"); |
+ SetCallback<WindowCommand>(ctx, "/session/*/window"); |
+ SetCallback<SwitchFrameCommand>(ctx, "/session/*/frame"); |
// WebElement commands |
SetCallback<FindOneElementCommand>(ctx, "/session/*/element"); |