OLD | NEW |
---|---|
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_manager.h" | 5 #include "chrome/browser/ui/panels/panel_manager.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "chrome/browser/fullscreen.h" | 9 #include "chrome/browser/fullscreen.h" |
10 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
11 #include "chrome/browser/ui/browser_list.h" | 11 #include "chrome/browser/ui/browser_list.h" |
12 #include "chrome/browser/ui/panels/panel_mouse_watcher.h" | 12 #include "chrome/browser/ui/panels/panel_mouse_watcher.h" |
13 #include "chrome/browser/ui/panels/panel_overflow_strip.h" | 13 #include "chrome/browser/ui/panels/panel_overflow_strip.h" |
14 #include "chrome/browser/ui/panels/panel_strip.h" | 14 #include "chrome/browser/ui/panels/panel_strip.h" |
15 #include "chrome/browser/ui/window_sizer.h" | 15 #include "chrome/browser/ui/window_sizer.h" |
16 #include "chrome/common/chrome_notification_types.h" | 16 #include "chrome/common/chrome_notification_types.h" |
17 #include "content/public/browser/notification_service.h" | 17 #include "content/public/browser/notification_service.h" |
18 #include "content/public/browser/notification_source.h" | 18 #include "content/public/browser/notification_source.h" |
19 | 19 |
20 namespace { | 20 namespace { |
21 const int kOverflowStripThickness = 24; | 21 const int kOverflowStripThickness = 26; |
jennb
2011/12/08 20:05:46
How is this change related to the bug fixes?
| |
22 | 22 |
23 // Width of spacing around panel strip and the left/right edges of the screen. | 23 // Width of spacing around panel strip and the left/right edges of the screen. |
24 const int kPanelStripLeftMargin = kOverflowStripThickness + 6; | 24 const int kPanelStripLeftMargin = kOverflowStripThickness + 6; |
25 const int kPanelStripRightMargin = 24; | 25 const int kPanelStripRightMargin = 24; |
26 | 26 |
27 // Height of panel strip is based on the factor of the working area. | 27 // Height of panel strip is based on the factor of the working area. |
28 const double kPanelStripHeightFactor = 0.5; | 28 const double kPanelStripHeightFactor = 0.5; |
29 | 29 |
30 static const int kFullScreenModeCheckIntervalMs = 1000; | 30 static const int kFullScreenModeCheckIntervalMs = 1000; |
31 | 31 |
(...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
225 return panel_strip_->num_panels() + panel_overflow_strip_->num_panels(); | 225 return panel_strip_->num_panels() + panel_overflow_strip_->num_panels(); |
226 } | 226 } |
227 | 227 |
228 bool PanelManager::is_dragging_panel() const { | 228 bool PanelManager::is_dragging_panel() const { |
229 return panel_strip_->is_dragging_panel(); | 229 return panel_strip_->is_dragging_panel(); |
230 } | 230 } |
231 | 231 |
232 const PanelManager::Panels& PanelManager::panels() const { | 232 const PanelManager::Panels& PanelManager::panels() const { |
233 return panel_strip_->panels(); | 233 return panel_strip_->panels(); |
234 } | 234 } |
OLD | NEW |