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

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

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
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 #ifndef CHROME_BROWSER_UI_PANELS_OVERFLOW_PANEL_STRIP_H_ 5 #ifndef CHROME_BROWSER_UI_PANELS_OVERFLOW_PANEL_STRIP_H_
6 #define CHROME_BROWSER_UI_PANELS_OVERFLOW_PANEL_STRIP_H_ 6 #define CHROME_BROWSER_UI_PANELS_OVERFLOW_PANEL_STRIP_H_
7 #pragma once 7 #pragma once
8 8
9 #include <vector> 9 #include <vector>
10 #include "chrome/browser/ui/panels/panel.h" 10 #include "chrome/browser/ui/panels/panel.h"
(...skipping 21 matching lines...) Expand all
32 // PanelStrip OVERRIDES: 32 // PanelStrip OVERRIDES:
33 virtual void SetDisplayArea(const gfx::Rect& display_area) OVERRIDE; 33 virtual void SetDisplayArea(const gfx::Rect& display_area) OVERRIDE;
34 virtual void RefreshLayout() OVERRIDE; 34 virtual void RefreshLayout() OVERRIDE;
35 virtual void AddPanel(Panel* panel, 35 virtual void AddPanel(Panel* panel,
36 PositioningMask positioning_mask) OVERRIDE; 36 PositioningMask positioning_mask) OVERRIDE;
37 virtual void RemovePanel(Panel* panel) OVERRIDE; 37 virtual void RemovePanel(Panel* panel) OVERRIDE;
38 virtual void CloseAll() OVERRIDE; 38 virtual void CloseAll() OVERRIDE;
39 virtual void ResizePanelWindow( 39 virtual void ResizePanelWindow(
40 Panel* panel, 40 Panel* panel,
41 const gfx::Size& preferred_window_size) OVERRIDE; 41 const gfx::Size& preferred_window_size) OVERRIDE;
42 virtual bool CanResizePanel(const Panel* panel) const OVERRIDE; 42 virtual panel::Resizability GetPanelResizability(
43 const Panel* panel) const OVERRIDE;
43 virtual void OnPanelResizedByMouse(Panel* panel, 44 virtual void OnPanelResizedByMouse(Panel* panel,
44 const gfx::Rect& new_bounds) OVERRIDE; 45 const gfx::Rect& new_bounds) OVERRIDE;
45 virtual void OnPanelAttentionStateChanged(Panel* panel) OVERRIDE; 46 virtual void OnPanelAttentionStateChanged(Panel* panel) OVERRIDE;
46 virtual void OnPanelTitlebarClicked(Panel* panel, 47 virtual void OnPanelTitlebarClicked(Panel* panel,
47 panel::ClickModifier modifier) OVERRIDE; 48 panel::ClickModifier modifier) OVERRIDE;
48 virtual void ActivatePanel(Panel* panel) OVERRIDE; 49 virtual void ActivatePanel(Panel* panel) OVERRIDE;
49 virtual void MinimizePanel(Panel* panel) OVERRIDE; 50 virtual void MinimizePanel(Panel* panel) OVERRIDE;
50 virtual void RestorePanel(Panel* panel) OVERRIDE; 51 virtual void RestorePanel(Panel* panel) OVERRIDE;
51 virtual bool IsPanelMinimized(const Panel* panel) const OVERRIDE; 52 virtual bool IsPanelMinimized(const Panel* panel) const OVERRIDE;
52 virtual bool CanShowPanelAsActive(const Panel* panel) const OVERRIDE; 53 virtual bool CanShowPanelAsActive(const Panel* panel) const OVERRIDE;
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 int overflow_hover_animator_start_width_; 157 int overflow_hover_animator_start_width_;
157 int overflow_hover_animator_end_width_; 158 int overflow_hover_animator_end_width_;
158 159
159 // Invalid panel index. 160 // Invalid panel index.
160 static const size_t kInvalidPanelIndex = static_cast<size_t>(-1); 161 static const size_t kInvalidPanelIndex = static_cast<size_t>(-1);
161 162
162 DISALLOW_COPY_AND_ASSIGN(OverflowPanelStrip); 163 DISALLOW_COPY_AND_ASSIGN(OverflowPanelStrip);
163 }; 164 };
164 165
165 #endif // CHROME_BROWSER_UI_PANELS_OVERFLOW_PANEL_STRIP_H_ 166 #endif // CHROME_BROWSER_UI_PANELS_OVERFLOW_PANEL_STRIP_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/docked_panel_strip.cc ('k') | chrome/browser/ui/panels/overflow_panel_strip.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698