diff options
author | maruel@google.com <maruel@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-15 12:27:03 +0000 |
---|---|---|
committer | maruel@google.com <maruel@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-15 12:27:03 +0000 |
commit | 1eb89e8fbf2d31247f5ceb271d8887a63d4a2bcf (patch) | |
tree | b78be07dbada3ac0f6d2435558e4a6aaba198ffc /chrome/test/ui | |
parent | ea15e98a9353494df754a11fb49f0e4b8c0d4789 (diff) | |
download | chromium_src-1eb89e8fbf2d31247f5ceb271d8887a63d4a2bcf.zip chromium_src-1eb89e8fbf2d31247f5ceb271d8887a63d4a2bcf.tar.gz chromium_src-1eb89e8fbf2d31247f5ceb271d8887a63d4a2bcf.tar.bz2 |
Large patch set (159 files total) to cleanup the includes.
- Slightly reduce the size of the generated .lib files ~3%.
- Reduce the number of implicit and explicit atl and windows includes. hooray!
- Help incremental build by reducing the number of unnecessary included files.
- Split some template class in two, one base class for the common code and the specialization that inherits from the base class.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@937 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/ui')
-rw-r--r-- | chrome/test/ui/view_event_test_base.cc | 5 | ||||
-rw-r--r-- | chrome/test/ui/view_event_test_base.h | 6 |
2 files changed, 10 insertions, 1 deletions
diff --git a/chrome/test/ui/view_event_test_base.cc b/chrome/test/ui/view_event_test_base.cc index bf0aa84..7027444 100644 --- a/chrome/test/ui/view_event_test_base.cc +++ b/chrome/test/ui/view_event_test_base.cc @@ -31,6 +31,7 @@ #include "base/message_loop.h" #include "chrome/browser/automation/ui_controls.h" +#include "chrome/views/view.h" #include "chrome/views/window.h" namespace { @@ -111,6 +112,10 @@ void ViewEventTestBase::StartMessageLoopAndRunTest() { MessageLoop::current()->Run(); } +gfx::Size ViewEventTestBase::GetPreferredSize() { + return gfx::Size(); +} + void ViewEventTestBase::ScheduleMouseMoveInBackground(int x, int y) { if (!dnd_thread_.get()) { dnd_thread_.reset(new Thread("mouse-move-thread")); 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 |