| 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 24 matching lines...) Expand all Loading... |
| 35 #include "chrome/browser/notifications/balloon.h" | 35 #include "chrome/browser/notifications/balloon.h" |
| 36 #include "chrome/browser/notifications/balloon_collection.h" | 36 #include "chrome/browser/notifications/balloon_collection.h" |
| 37 #include "chrome/browser/printing/print_job.h" | 37 #include "chrome/browser/printing/print_job.h" |
| 38 #include "chrome/browser/profile.h" | 38 #include "chrome/browser/profile.h" |
| 39 #include "chrome/browser/renderer_host/render_view_host.h" | 39 #include "chrome/browser/renderer_host/render_view_host.h" |
| 40 #include "chrome/browser/search_engines/template_url_model.h" | 40 #include "chrome/browser/search_engines/template_url_model.h" |
| 41 #include "chrome/browser/sessions/tab_restore_service.h" | 41 #include "chrome/browser/sessions/tab_restore_service.h" |
| 42 #include "chrome/browser/tab_contents/navigation_controller.h" | 42 #include "chrome/browser/tab_contents/navigation_controller.h" |
| 43 #include "chrome/browser/tab_contents/tab_contents.h" | 43 #include "chrome/browser/tab_contents/tab_contents.h" |
| 44 #include "chrome/browser/tab_contents/thumbnail_generator.h" | 44 #include "chrome/browser/tab_contents/thumbnail_generator.h" |
| 45 #include "chrome/browser/tab_contents_wrapper.h" | |
| 46 #include "chrome/browser/translate/page_translated_details.h" | 45 #include "chrome/browser/translate/page_translated_details.h" |
| 47 #include "chrome/browser/translate/translate_infobar_delegate.h" | 46 #include "chrome/browser/translate/translate_infobar_delegate.h" |
| 48 #include "chrome/browser/ui/browser.h" | 47 #include "chrome/browser/ui/browser.h" |
| 48 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
| 49 #include "chrome/common/automation_constants.h" | 49 #include "chrome/common/automation_constants.h" |
| 50 #include "chrome/common/extensions/extension.h" | 50 #include "chrome/common/extensions/extension.h" |
| 51 #include "chrome/common/notification_service.h" | 51 #include "chrome/common/notification_service.h" |
| 52 #include "gfx/codec/png_codec.h" | 52 #include "gfx/codec/png_codec.h" |
| 53 #include "gfx/rect.h" | 53 #include "gfx/rect.h" |
| 54 #include "googleurl/src/gurl.h" | 54 #include "googleurl/src/gurl.h" |
| 55 | 55 |
| 56 #if defined(OS_CHROMEOS) | 56 #if defined(OS_CHROMEOS) |
| 57 #include "chrome/browser/chromeos/login/authentication_notification_details.h" | 57 #include "chrome/browser/chromeos/login/authentication_notification_details.h" |
| 58 #endif | 58 #endif |
| (...skipping 1469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1528 this, &OnNotificationBalloonCountObserver::OnBalloonCollectionChanged)); | 1528 this, &OnNotificationBalloonCountObserver::OnBalloonCollectionChanged)); |
| 1529 } | 1529 } |
| 1530 | 1530 |
| 1531 void OnNotificationBalloonCountObserver::OnBalloonCollectionChanged() { | 1531 void OnNotificationBalloonCountObserver::OnBalloonCollectionChanged() { |
| 1532 if (static_cast<int>(collection_->GetActiveBalloons().size()) == count_) { | 1532 if (static_cast<int>(collection_->GetActiveBalloons().size()) == count_) { |
| 1533 collection_->set_on_collection_changed_callback(NULL); | 1533 collection_->set_on_collection_changed_callback(NULL); |
| 1534 reply_.SendSuccess(NULL); | 1534 reply_.SendSuccess(NULL); |
| 1535 delete this; | 1535 delete this; |
| 1536 } | 1536 } |
| 1537 } | 1537 } |
| OLD | NEW |