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

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

Issue 10408047: Fix bug 105043: Panels [WIN]: For minimize panels, taskbar hover preview show the 4-pixel represent… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix per feedback Created 8 years, 7 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
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 "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/ui/browser.h" 10 #include "chrome/browser/ui/browser.h"
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 } 206 }
207 207
208 void Panel::SetPreviewMode(bool in_preview) { 208 void Panel::SetPreviewMode(bool in_preview) {
209 DCHECK_NE(in_preview_mode_, in_preview); 209 DCHECK_NE(in_preview_mode_, in_preview);
210 in_preview_mode_ = in_preview; 210 in_preview_mode_ = in_preview;
211 } 211 }
212 212
213 void Panel::SetExpansionState(ExpansionState new_state) { 213 void Panel::SetExpansionState(ExpansionState new_state) {
214 if (expansion_state_ == new_state) 214 if (expansion_state_ == new_state)
215 return; 215 return;
216 native_panel_->PanelExpansionStateChanging(expansion_state_, new_state);
216 expansion_state_ = new_state; 217 expansion_state_ = new_state;
217 218
218 manager()->OnPanelExpansionStateChanged(this); 219 manager()->OnPanelExpansionStateChanged(this);
219 220
220 DCHECK(initialized_ && panel_strip_ != NULL); 221 DCHECK(initialized_ && panel_strip_ != NULL);
221 native_panel_->PreventActivationByOS(panel_strip_->IsPanelMinimized(this)); 222 native_panel_->PreventActivationByOS(panel_strip_->IsPanelMinimized(this));
222 UpdateMinimizeRestoreButtonVisibility(); 223 UpdateMinimizeRestoreButtonVisibility();
223 224
224 content::NotificationService::current()->Notify( 225 content::NotificationService::current()->Notify(
225 chrome::NOTIFICATION_PANEL_CHANGED_EXPANSION_STATE, 226 chrome::NOTIFICATION_PANEL_CHANGED_EXPANSION_STATE,
(...skipping 562 matching lines...) Expand 10 before | Expand all | Expand 10 after
788 max_size_policy_ = CUSTOM_MAX_SIZE; 789 max_size_policy_ = CUSTOM_MAX_SIZE;
789 } 790 }
790 791
791 void Panel::OnPanelEndUserResizing() { 792 void Panel::OnPanelEndUserResizing() {
792 SetPreviewMode(false); 793 SetPreviewMode(false);
793 } 794 }
794 795
795 void Panel::DestroyBrowser() { 796 void Panel::DestroyBrowser() {
796 native_panel_->DestroyPanelBrowser(); 797 native_panel_->DestroyPanelBrowser();
797 } 798 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698