| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/ui/panels/panel.h" | 5 #include "chrome/browser/ui/panels/panel.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/message_loop.h" | 8 #include "base/message_loop.h" |
| 9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
| 10 #include "chrome/app/chrome_command_ids.h" | 10 #include "chrome/app/chrome_command_ids.h" |
| (...skipping 818 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 829 } | 829 } |
| 830 | 830 |
| 831 void Panel::OnImageLoaded(const gfx::Image& image, | 831 void Panel::OnImageLoaded(const gfx::Image& image, |
| 832 const std::string& extension_id, | 832 const std::string& extension_id, |
| 833 int index) { | 833 int index) { |
| 834 if (!image.IsEmpty()) { | 834 if (!image.IsEmpty()) { |
| 835 app_icon_ = image; | 835 app_icon_ = image; |
| 836 native_panel_->UpdatePanelTitleBar(); | 836 native_panel_->UpdatePanelTitleBar(); |
| 837 } | 837 } |
| 838 app_icon_loader_.reset(); | 838 app_icon_loader_.reset(); |
| 839 |
| 840 content::NotificationService::current()->Notify( |
| 841 chrome::NOTIFICATION_PANEL_APP_ICON_LOADED, |
| 842 content::Source<Panel>(this), |
| 843 content::NotificationService::NoDetails()); |
| 839 } | 844 } |
| OLD | NEW |