OLD | NEW |
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/overflow_panel_strip.h" | 5 #include "chrome/browser/ui/panels/overflow_panel_strip.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "chrome/browser/ui/panels/panel_manager.h" | 8 #include "chrome/browser/ui/panels/panel_manager.h" |
9 #include "chrome/browser/ui/panels/panel_mouse_watcher.h" | 9 #include "chrome/browser/ui/panels/panel_mouse_watcher.h" |
10 #include "chrome/browser/ui/panels/panel_overflow_indicator.h" | 10 #include "chrome/browser/ui/panels/panel_overflow_indicator.h" |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 int delta_x, | 224 int delta_x, |
225 int delta_y) { | 225 int delta_y) { |
226 NOTREACHED(); | 226 NOTREACHED(); |
227 } | 227 } |
228 | 228 |
229 void OverflowPanelStrip::EndDraggingPanelWithinStrip(Panel* panel, | 229 void OverflowPanelStrip::EndDraggingPanelWithinStrip(Panel* panel, |
230 bool aborted) { | 230 bool aborted) { |
231 NOTREACHED(); | 231 NOTREACHED(); |
232 } | 232 } |
233 | 233 |
234 bool OverflowPanelStrip::CanResizePanel(const Panel* panel) const { | 234 panel::Resizability OverflowPanelStrip::GetPanelResizability( |
235 return false; | 235 const Panel* panel) const { |
| 236 return panel::NOT_RESIZABLE; |
236 } | 237 } |
237 | 238 |
238 void OverflowPanelStrip::OnPanelResizedByMouse(Panel* panel, | 239 void OverflowPanelStrip::OnPanelResizedByMouse(Panel* panel, |
239 const gfx::Rect& new_bounds) { | 240 const gfx::Rect& new_bounds) { |
240 DCHECK_EQ(this, panel->panel_strip()); | 241 DCHECK_EQ(this, panel->panel_strip()); |
241 NOTREACHED(); | 242 NOTREACHED(); |
242 } | 243 } |
243 | 244 |
244 void OverflowPanelStrip::RefreshLayout() { | 245 void OverflowPanelStrip::RefreshLayout() { |
245 if (panels_.empty()) | 246 if (panels_.empty()) |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
451 panels_[i]->FullScreenModeChanged(is_full_screen); | 452 panels_[i]->FullScreenModeChanged(is_full_screen); |
452 } | 453 } |
453 | 454 |
454 void OverflowPanelStrip::UpdatePanelOnStripChange(Panel* panel) { | 455 void OverflowPanelStrip::UpdatePanelOnStripChange(Panel* panel) { |
455 // Set panel properties for this strip. | 456 // Set panel properties for this strip. |
456 panel->set_attention_mode(Panel::USE_PANEL_ATTENTION); | 457 panel->set_attention_mode(Panel::USE_PANEL_ATTENTION); |
457 panel->SetAppIconVisibility(false); | 458 panel->SetAppIconVisibility(false); |
458 panel->SetAlwaysOnTop(true); | 459 panel->SetAlwaysOnTop(true); |
459 panel->EnableResizeByMouse(false); | 460 panel->EnableResizeByMouse(false); |
460 } | 461 } |
OLD | NEW |