Index: chrome/test/chromedriver/command_listener.h |
diff --git a/chrome/test/chromedriver/command_listener.h b/chrome/test/chromedriver/command_listener.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..fb5d62a8b8db2b1ac173352ab48acef8f3c755ab |
--- /dev/null |
+++ b/chrome/test/chromedriver/command_listener.h |
@@ -0,0 +1,22 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_TEST_CHROMEDRIVER_COMMAND_LISTENER_H_ |
+#define CHROME_TEST_CHROMEDRIVER_COMMAND_LISTENER_H_ |
+ |
+#include <string> |
+ |
+class Status; |
+ |
+class CommandListener { |
+ public: |
+ virtual ~CommandListener(); |
+ |
+ // Called just before a WebDriver command is run, but only |
+ // for commands that operate on an existing session. Will be called for |
+ // WindowCommands, ElementCommands, and SessionCommands. |
+ virtual Status OnCommand(const std::string& command_name); |
stgao
2014/06/15 23:54:40
How about renaming "OnCommand" to "BeforeCommand"?
stgao
2014/06/15 23:54:40
add " = 0" before ";"?
|
+}; |
+ |
+#endif // CHROME_TEST_CHROMEDRIVER_COMMAND_LISTENER_H_ |