| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/automation/automation_provider_observers.h" | 5 #include "chrome/browser/automation/automation_provider_observers.h" |
| 6 | 6 |
| 7 #include <deque> | 7 #include <deque> |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 #include "chrome/browser/metrics/metric_event_duration_details.h" | 28 #include "chrome/browser/metrics/metric_event_duration_details.h" |
| 29 #include "chrome/browser/notifications/balloon.h" | 29 #include "chrome/browser/notifications/balloon.h" |
| 30 #include "chrome/browser/notifications/balloon_collection.h" | 30 #include "chrome/browser/notifications/balloon_collection.h" |
| 31 #include "chrome/browser/printing/print_job.h" | 31 #include "chrome/browser/printing/print_job.h" |
| 32 #include "chrome/browser/profile.h" | 32 #include "chrome/browser/profile.h" |
| 33 #include "chrome/browser/search_engines/template_url_model.h" | 33 #include "chrome/browser/search_engines/template_url_model.h" |
| 34 #include "chrome/browser/tab_contents/navigation_controller.h" | 34 #include "chrome/browser/tab_contents/navigation_controller.h" |
| 35 #include "chrome/browser/tab_contents/tab_contents.h" | 35 #include "chrome/browser/tab_contents/tab_contents.h" |
| 36 #include "chrome/browser/translate/page_translated_details.h" | 36 #include "chrome/browser/translate/page_translated_details.h" |
| 37 #include "chrome/browser/translate/translate_infobar_delegate.h" | 37 #include "chrome/browser/translate/translate_infobar_delegate.h" |
| 38 #include "chrome/common/automation_constants.h" | |
| 39 #include "chrome/common/extensions/extension.h" | 38 #include "chrome/common/extensions/extension.h" |
| 40 #include "chrome/common/notification_service.h" | 39 #include "chrome/common/notification_service.h" |
| 40 #include "chrome/test/automation/automation_constants.h" |
| 41 #include "gfx/rect.h" | 41 #include "gfx/rect.h" |
| 42 | 42 |
| 43 #if defined(OS_CHROMEOS) | 43 #if defined(OS_CHROMEOS) |
| 44 #include "chrome/browser/chromeos/login/authentication_notification_details.h" | 44 #include "chrome/browser/chromeos/login/authentication_notification_details.h" |
| 45 #endif | 45 #endif |
| 46 | 46 |
| 47 // Holds onto start and stop timestamps for a particular tab | 47 // Holds onto start and stop timestamps for a particular tab |
| 48 class InitialLoadObserver::TabTime { | 48 class InitialLoadObserver::TabTime { |
| 49 public: | 49 public: |
| 50 explicit TabTime(base::TimeTicks started) | 50 explicit TabTime(base::TimeTicks started) |
| (...skipping 1312 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1363 this, &OnNotificationBalloonCountObserver::OnBalloonCollectionChanged)); | 1363 this, &OnNotificationBalloonCountObserver::OnBalloonCollectionChanged)); |
| 1364 } | 1364 } |
| 1365 | 1365 |
| 1366 void OnNotificationBalloonCountObserver::OnBalloonCollectionChanged() { | 1366 void OnNotificationBalloonCountObserver::OnBalloonCollectionChanged() { |
| 1367 if (static_cast<int>(collection_->GetActiveBalloons().size()) == count_) { | 1367 if (static_cast<int>(collection_->GetActiveBalloons().size()) == count_) { |
| 1368 collection_->set_on_collection_changed_callback(NULL); | 1368 collection_->set_on_collection_changed_callback(NULL); |
| 1369 reply_.SendSuccess(NULL); | 1369 reply_.SendSuccess(NULL); |
| 1370 delete this; | 1370 delete this; |
| 1371 } | 1371 } |
| 1372 } | 1372 } |
| OLD | NEW |