summaryrefslogtreecommitdiffstats
path: root/chrome/test/ui/view_event_test_base.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/test/ui/view_event_test_base.h')
-rw-r--r--chrome/test/ui/view_event_test_base.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/test/ui/view_event_test_base.h b/chrome/test/ui/view_event_test_base.h
index 4582f8a..6ae7e34 100644
--- a/chrome/test/ui/view_event_test_base.h
+++ b/chrome/test/ui/view_event_test_base.h
@@ -36,6 +36,10 @@
class Task;
+namespace gfx {
+class Size;
+}
+
// Base class for Views based tests that dispatch events.
//
// As views based event test involves waiting for events to be processed,
@@ -114,7 +118,7 @@ class ViewEventTestBase : public ChromeViews::WindowDelegate,
// Returns an empty Size. Subclasses that want a preferred size other than
// that of the View returned by CreateContentsView should override this
// appropriately.
- virtual gfx::Size GetPreferredSize() { return gfx::Size(); }
+ virtual gfx::Size GetPreferredSize();
// Creates a task that calls the specified method back. The specified
// method is called in such a way that if there are any test failures