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

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

Issue 15239002: Move Extension and PermissionsData to extensions/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month 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 "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
11 #include "chrome/browser/ui/panels/detached_panel_collection.h" 11 #include "chrome/browser/ui/panels/detached_panel_collection.h"
12 #include "chrome/browser/ui/panels/display_settings_provider.h" 12 #include "chrome/browser/ui/panels/display_settings_provider.h"
13 #include "chrome/browser/ui/panels/native_panel_stack_window.h" 13 #include "chrome/browser/ui/panels/native_panel_stack_window.h"
14 #include "chrome/browser/ui/panels/panel.h" 14 #include "chrome/browser/ui/panels/panel.h"
15 #include "chrome/browser/ui/panels/panel_constants.h" 15 #include "chrome/browser/ui/panels/panel_constants.h"
16 #include "chrome/browser/ui/panels/panel_manager.h" 16 #include "chrome/browser/ui/panels/panel_manager.h"
17 #include "chrome/common/extensions/extension.h" 17 #include "extensions/common/extension.h"
18 18
19 StackedPanelCollection::StackedPanelCollection(PanelManager* panel_manager) 19 StackedPanelCollection::StackedPanelCollection(PanelManager* panel_manager)
20 : PanelCollection(PanelCollection::STACKED), 20 : PanelCollection(PanelCollection::STACKED),
21 panel_manager_(panel_manager), 21 panel_manager_(panel_manager),
22 primary_stack_window_(NULL), 22 primary_stack_window_(NULL),
23 secondary_stack_window_(NULL), 23 secondary_stack_window_(NULL),
24 minimizing_all_(false) { 24 minimizing_all_(false) {
25 } 25 }
26 26
27 StackedPanelCollection::~StackedPanelCollection() { 27 StackedPanelCollection::~StackedPanelCollection() {
(...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after
789 if (available_space < 0) 789 if (available_space < 0)
790 available_space = 0; 790 available_space = 0;
791 return available_space; 791 return available_space;
792 } 792 }
793 793
794 NativePanelStackWindow* StackedPanelCollection::GetStackWindowForPanel( 794 NativePanelStackWindow* StackedPanelCollection::GetStackWindowForPanel(
795 Panel* panel) const { 795 Panel* panel) const {
796 return secondary_stack_window_ && secondary_stack_window_->HasPanel(panel) ? 796 return secondary_stack_window_ && secondary_stack_window_->HasPanel(panel) ?
797 secondary_stack_window_ : primary_stack_window_; 797 secondary_stack_window_ : primary_stack_window_;
798 } 798 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel_extension_browsertest.cc ('k') | chrome/browser/ui/sync/profile_signin_confirmation_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698