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

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

Issue 8776035: Add PanelOverflowStrip to handle panel overflow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Created 9 years 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) 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 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_H_ 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_H_
6 #define CHROME_BROWSER_UI_PANELS_PANEL_H_ 6 #define CHROME_BROWSER_UI_PANELS_PANEL_H_
7 #pragma once 7 #pragma once
8 8
9 #include "chrome/browser/ui/browser_window.h" 9 #include "chrome/browser/ui/browser_window.h"
10 10
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 // Gets the extension that a panel is created from. 56 // Gets the extension that a panel is created from.
57 // Returns NULL if it cannot be found. 57 // Returns NULL if it cannot be found.
58 const Extension* GetExtension() const; 58 const Extension* GetExtension() const;
59 59
60 void SetExpansionState(ExpansionState new_expansion_state); 60 void SetExpansionState(ExpansionState new_expansion_state);
61 61
62 bool ShouldBringUpTitlebar(int mouse_x, int mouse_y) const; 62 bool ShouldBringUpTitlebar(int mouse_x, int mouse_y) const;
63 63
64 bool IsDrawingAttention() const; 64 bool IsDrawingAttention() const;
65 65
66 // Ensures that the panel is fully visible, that is, not obscured by other
67 // top-most windows.
68 void EnsureFullyVisible();
69
70 int TitleOnlyHeight() const;
71
72 // Returns the size of the panel when it is iconified, as shown on the
73 // overflow area.
74 gfx::Size IconOnlySize() const;
75
66 // BrowserWindow overrides. 76 // BrowserWindow overrides.
67 virtual void Show() OVERRIDE; 77 virtual void Show() OVERRIDE;
68 virtual void ShowInactive() OVERRIDE; 78 virtual void ShowInactive() OVERRIDE;
69 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; 79 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE;
70 virtual void Close() OVERRIDE; 80 virtual void Close() OVERRIDE;
71 virtual void Activate() OVERRIDE; 81 virtual void Activate() OVERRIDE;
72 virtual void Deactivate() OVERRIDE; 82 virtual void Deactivate() OVERRIDE;
73 virtual bool IsActive() const OVERRIDE; 83 virtual bool IsActive() const OVERRIDE;
74 virtual void FlashFrame() OVERRIDE; 84 virtual void FlashFrame() OVERRIDE;
75 virtual gfx::NativeWindow GetNativeHandle() OVERRIDE; 85 virtual gfx::NativeWindow GetNativeHandle() OVERRIDE;
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 NativePanel* native_panel_; // Weak, owns us. 291 NativePanel* native_panel_; // Weak, owns us.
282 292
283 ExpansionState expansion_state_; 293 ExpansionState expansion_state_;
284 294
285 content::NotificationRegistrar registrar_; 295 content::NotificationRegistrar registrar_;
286 296
287 DISALLOW_COPY_AND_ASSIGN(Panel); 297 DISALLOW_COPY_AND_ASSIGN(Panel);
288 }; 298 };
289 299
290 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_ 300 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698