Index: chrome/browser/automation/ui_controls_internal.h |
diff --git a/chrome/browser/automation/ui_controls_internal.h b/chrome/browser/automation/ui_controls_internal.h |
index 5ec9a81f574fc0a2675af6a5d05562bfe1c8be0f..bb2fa988b2b3171ebf859cdeab4f7149b4136506 100644 |
--- a/chrome/browser/automation/ui_controls_internal.h |
+++ b/chrome/browser/automation/ui_controls_internal.h |
@@ -5,25 +5,25 @@ |
#ifndef CHROME_BROWSER_AUTOMATION_UI_CONTROLS_INTERNAL_H_ |
#define CHROME_BROWSER_AUTOMATION_UI_CONTROLS_INTERNAL_H_ |
-#include "base/task.h" |
+#include "base/callback.h" |
#include "chrome/browser/automation/ui_controls.h" |
namespace ui_controls { |
// A utility class to send a mouse click event in a task. |
// It's shared by ui_controls_linux.cc and ui_controls_mac.cc |
-class ClickTask : public Task { |
+class ClickTask : public base::Closure { |
public: |
- // A |followup| Task can be specified to notify the caller when the mouse |
- // click event is sent. If can be NULL if the caller does not care about it. |
- ClickTask(MouseButton button, int state, Task* followup); |
+ // A |followup| closure can be specified to notify the caller when the mouse |
+ // click event is sent. It can be null if the caller does not care about it. |
+ ClickTask(MouseButton button, int state, const base::Closure& followup); |
virtual ~ClickTask(); |
virtual void Run(); |
private: |
MouseButton button_; |
int state_; |
- Task* followup_; |
+ base::Closure followup_; |
}; |
} // namespace ui_controls |