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

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

Issue 9956145: Remove wrench button from panel. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync Created 8 years, 8 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_browser_view.h" 5 #include "chrome/browser/ui/panels/panel_browser_view.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "chrome/browser/native_window_notification_source.h" 9 #include "chrome/browser/native_window_notification_source.h"
10 #include "chrome/browser/ui/panels/display_settings_provider.h" 10 #include "chrome/browser/ui/panels/display_settings_provider.h"
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 GetFrameView()->GetWidget()->GetNativeView() == ::GetForegroundWindow(); 180 GetFrameView()->GetWidget()->GetNativeView() == ::GetForegroundWindow();
181 #else 181 #else
182 NOTIMPLEMENTED(); 182 NOTIMPLEMENTED();
183 bool focused = active; 183 bool focused = active;
184 #endif 184 #endif
185 185
186 if (focused_ == focused) 186 if (focused_ == focused)
187 return; 187 return;
188 focused_ = focused; 188 focused_ = focused;
189 189
190 GetFrameView()->OnFocusChanged(focused);
191
192 if (focused_) { 190 if (focused_) {
193 // Expand the panel if needed. Do NOT expand a TITLE_ONLY panel 191 // Expand the panel if needed. Do NOT expand a TITLE_ONLY panel
194 // otherwise it will be impossible to drag a title without 192 // otherwise it will be impossible to drag a title without
195 // expanding it. 193 // expanding it.
196 if (panel_->expansion_state() == Panel::MINIMIZED) 194 if (panel_->expansion_state() == Panel::MINIMIZED)
197 panel_->SetExpansionState(Panel::EXPANDED); 195 panel_->SetExpansionState(Panel::EXPANDED);
198 196
199 if (is_drawing_attention_) { 197 if (is_drawing_attention_) {
200 panel_->FlashFrame(false); 198 panel_->FlashFrame(false);
201 199
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
722 return expected_color == frame_view->title_label_->enabled_color(); 720 return expected_color == frame_view->title_label_->enabled_color();
723 } 721 }
724 722
725 bool NativePanelTestingWin::IsWindowSizeKnown() const { 723 bool NativePanelTestingWin::IsWindowSizeKnown() const {
726 return true; 724 return true;
727 } 725 }
728 726
729 bool NativePanelTestingWin::IsAnimatingBounds() const { 727 bool NativePanelTestingWin::IsAnimatingBounds() const {
730 return panel_browser_view_->IsAnimatingBounds(); 728 return panel_browser_view_->IsAnimatingBounds();
731 } 729 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698