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

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

Issue 11498014: Removes calls to Widget::OnNativeWidgetActivationChanged() from (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years 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
« no previous file with comments | « no previous file | ui/views/widget/desktop_aura/desktop_native_widget_aura.cc » ('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 391 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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 }
OLDNEW
« no previous file with comments | « no previous file | ui/views/widget/desktop_aura/desktop_native_widget_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698