summaryrefslogtreecommitdiffstats
path: root/base/message_loop.cc
diff options
context:
space:
mode:
authorhamaji@chromium.org <hamaji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-09 05:10:48 +0000
committerhamaji@chromium.org <hamaji@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-09 05:10:48 +0000
commit94128148b2ba757e212ae34007d44f3912a2f3d2 (patch)
tree9d4310495e83a4ba568daf1cffcf580ebea1c76b /base/message_loop.cc
parent913cedfc4c6b3024e983528f7078fba7de61cb1a (diff)
downloadchromium_src-94128148b2ba757e212ae34007d44f3912a2f3d2.zip
chromium_src-94128148b2ba757e212ae34007d44f3912a2f3d2.tar.gz
chromium_src-94128148b2ba757e212ae34007d44f3912a2f3d2.tar.bz2
Rebaseline tests whose expectations were changed by r55714.
The patch removed extra paddings inside buttons. http://trac.webkit.org/changeset/55714 BUG=1437 TEST=none Review URL: http://codereview.chromium.org/789003 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@49225 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/message_loop.cc')
-rw-r--r--base/message_loop.cc20
1 files changed, 7 insertions, 13 deletions
diff --git a/base/message_loop.cc b/base/message_loop.cc
index 3b13617..7a09f38 100644
--- a/base/message_loop.cc
+++ b/base/message_loop.cc
@@ -149,16 +149,6 @@ void MessageLoop::RemoveDestructionObserver(DestructionObserver *obs) {
destruction_observers_.RemoveObserver(obs);
}
-void MessageLoop::AddTaskObserver(TaskObserver *obs) {
- DCHECK_EQ(this, current());
- task_observers_.AddObserver(obs);
-}
-
-void MessageLoop::RemoveTaskObserver(TaskObserver *obs) {
- DCHECK_EQ(this, current());
- task_observers_.RemoveObserver(obs);
-}
-
void MessageLoop::Run() {
AutoRunState save_state(this);
RunHandler();
@@ -335,10 +325,7 @@ void MessageLoop::RunTask(Task* task) {
nestable_tasks_allowed_ = false;
HistogramEvent(kTaskRunEvent);
- FOR_EACH_OBSERVER(TaskObserver, task_observers_,
- WillProcessTask(task->tracked_birth_time()));
task->Run();
- FOR_EACH_OBSERVER(TaskObserver, task_observers_, DidProcessTask());
delete task;
nestable_tasks_allowed_ = true;
@@ -597,9 +584,16 @@ const LinearHistogram::DescriptionPair MessageLoop::event_descriptions_[] = {
// MessageLoopForUI
#if defined(OS_WIN)
+void MessageLoopForUI::WillProcessMessage(const MSG& message) {
+ pump_win()->WillProcessMessage(message);
+}
void MessageLoopForUI::DidProcessMessage(const MSG& message) {
pump_win()->DidProcessMessage(message);
}
+void MessageLoopForUI::PumpOutPendingPaintMessages() {
+ pump_ui()->PumpOutPendingPaintMessages();
+}
+
#endif // defined(OS_WIN)
#if !defined(OS_MACOSX)