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

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

Issue 10066032: Enable user resizing for docked Panels (GTK and Mac). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix tests 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
« no previous file with comments | « chrome/browser/ui/panels/overflow_panel_strip.h ('k') | chrome/browser/ui/panels/panel.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/overflow_panel_strip.h ('k') | chrome/browser/ui/panels/panel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698