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 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
402 } | 402 } |
403 | 403 |
404 void Panel::FullScreenModeChanged(bool is_full_screen) { | 404 void Panel::FullScreenModeChanged(bool is_full_screen) { |
405 native_panel_->FullScreenModeChanged(is_full_screen); | 405 native_panel_->FullScreenModeChanged(is_full_screen); |
406 } | 406 } |
407 | 407 |
408 void Panel::Show() { | 408 void Panel::Show() { |
409 if (manager()->display_settings_provider()->is_full_screen() || !collection_) | 409 if (manager()->display_settings_provider()->is_full_screen() || !collection_) |
410 return; | 410 return; |
411 | 411 |
412 native_panel_->ShowPanel(); | 412 native_panel_->ShowPanel(); |
413 } | 413 } |
414 | 414 |
415 void Panel::ShowInactive() { | 415 void Panel::ShowInactive() { |
416 if (manager()->display_settings_provider()->is_full_screen() || !collection_) | 416 if (manager()->display_settings_provider()->is_full_screen() || !collection_) |
417 return; | 417 return; |
418 | 418 |
419 native_panel_->ShowPanelInactive(); | 419 native_panel_->ShowPanelInactive(); |
420 } | 420 } |
421 | 421 |
422 void Panel::Hide() { | 422 void Panel::Hide() { |
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
838 app_icon_ = image; | 838 app_icon_ = image; |
839 native_panel_->UpdatePanelTitleBar(); | 839 native_panel_->UpdatePanelTitleBar(); |
840 } | 840 } |
841 app_icon_loader_.reset(); | 841 app_icon_loader_.reset(); |
842 | 842 |
843 content::NotificationService::current()->Notify( | 843 content::NotificationService::current()->Notify( |
844 chrome::NOTIFICATION_PANEL_APP_ICON_LOADED, | 844 chrome::NOTIFICATION_PANEL_APP_ICON_LOADED, |
845 content::Source<Panel>(this), | 845 content::Source<Panel>(this), |
846 content::NotificationService::NoDetails()); | 846 content::NotificationService::NoDetails()); |
847 } | 847 } |
OLD | NEW |