Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(589)

Side by Side Diff: chrome/browser/ui/panels/panel.cc

Issue 10987037: Add tests for panel app icon functionaility. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Patch to land Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/ui/panels/native_panel.h ('k') | chrome/browser/ui/panels/panel_constants.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/native_panel.h ('k') | chrome/browser/ui/panels/panel_constants.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698