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

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

Issue 14188014: Rename NativePanelStack to NativePanelStackWindow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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/stacked_panel_collection.h" 5 #include "chrome/browser/ui/panels/stacked_panel_collection.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include "base/auto_reset.h" 8 #include "base/auto_reset.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "chrome/browser/ui/panels/detached_panel_collection.h" 10 #include "chrome/browser/ui/panels/detached_panel_collection.h"
11 #include "chrome/browser/ui/panels/display_settings_provider.h" 11 #include "chrome/browser/ui/panels/display_settings_provider.h"
12 #include "chrome/browser/ui/panels/native_panel_stack.h" 12 #include "chrome/browser/ui/panels/native_panel_stack_window.h"
13 #include "chrome/browser/ui/panels/panel.h" 13 #include "chrome/browser/ui/panels/panel.h"
14 #include "chrome/browser/ui/panels/panel_constants.h" 14 #include "chrome/browser/ui/panels/panel_constants.h"
15 #include "chrome/browser/ui/panels/panel_manager.h" 15 #include "chrome/browser/ui/panels/panel_manager.h"
16 16
17 StackedPanelCollection::StackedPanelCollection(PanelManager* panel_manager) 17 StackedPanelCollection::StackedPanelCollection(PanelManager* panel_manager)
18 : PanelCollection(PanelCollection::STACKED), 18 : PanelCollection(PanelCollection::STACKED),
19 panel_manager_(panel_manager), 19 panel_manager_(panel_manager),
20 native_stack_(NULL), 20 native_stack_(NULL),
21 minimizing_all_(false) { 21 minimizing_all_(false) {
22 native_stack_ = NativePanelStack::Create(make_scoped_ptr(this).Pass()); 22 native_stack_ = NativePanelStackWindow::Create(make_scoped_ptr(this).Pass());
23 } 23 }
24 24
25 StackedPanelCollection::~StackedPanelCollection() { 25 StackedPanelCollection::~StackedPanelCollection() {
26 DCHECK(panels_.empty()); 26 DCHECK(panels_.empty());
27 DCHECK(most_recently_active_panels_.empty()); 27 DCHECK(most_recently_active_panels_.empty());
28 } 28 }
29 29
30 void StackedPanelCollection::OnDisplayChanged() { 30 void StackedPanelCollection::OnDisplayChanged() {
31 if (panels_.empty()) 31 if (panels_.empty())
32 return; 32 return;
(...skipping 628 matching lines...) Expand 10 before | Expand all | Expand 10 after
661 if (panel->IsActive()) 661 if (panel->IsActive())
662 bottom += panel->GetBounds().height(); 662 bottom += panel->GetBounds().height();
663 else 663 else
664 bottom += panel::kTitlebarHeight; 664 bottom += panel::kTitlebarHeight;
665 } 665 }
666 int available_space = work_area.bottom() - bottom; 666 int available_space = work_area.bottom() - bottom;
667 if (available_space < 0) 667 if (available_space < 0)
668 available_space = 0; 668 available_space = 0;
669 return available_space; 669 return available_space;
670 } 670 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/stacked_panel_collection.h ('k') | chrome/browser/ui/views/panels/panel_stack_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698