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

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

Issue 10260001: Remove panel size limit when user resizes it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch for landing Created 8 years, 7 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/docked_panel_strip.cc ('k') | chrome/browser/ui/panels/panel.cc » ('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 #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 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 292
293 // Sets whether the panel is shown in preview mode. When the panel is 293 // Sets whether the panel is shown in preview mode. When the panel is
294 // being dragged, it is in preview mode. 294 // being dragged, it is in preview mode.
295 void SetPreviewMode(bool in_preview_mode); 295 void SetPreviewMode(bool in_preview_mode);
296 296
297 // Sets up the panel for being resizable by the user - for example, 297 // Sets up the panel for being resizable by the user - for example,
298 // enables the resize mouse cursors when mouse is hovering over the edges. 298 // enables the resize mouse cursors when mouse is hovering over the edges.
299 void EnableResizeByMouse(bool enable); 299 void EnableResizeByMouse(bool enable);
300 300
301 // Changes the preferred size to acceptable based on min_size() and max_size() 301 // Changes the preferred size to acceptable based on min_size() and max_size()
302 void ClampSize(gfx::Size* size) const; 302 gfx::Size ClampSize(const gfx::Size& size) const;
303 303
304 // Called when the panel's active state changes. 304 // Called when the panel's active state changes.
305 // |active| is true if panel became active. 305 // |active| is true if panel became active.
306 void OnActiveStateChanged(bool active); 306 void OnActiveStateChanged(bool active);
307 307
308 protected: 308 protected:
309 virtual void DestroyBrowser() OVERRIDE; 309 virtual void DestroyBrowser() OVERRIDE;
310 310
311 private: 311 private:
312 friend class PanelManager; 312 friend class PanelManager;
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 AttentionMode attention_mode_; 363 AttentionMode attention_mode_;
364 364
365 ExpansionState expansion_state_; 365 ExpansionState expansion_state_;
366 366
367 content::NotificationRegistrar registrar_; 367 content::NotificationRegistrar registrar_;
368 368
369 DISALLOW_COPY_AND_ASSIGN(Panel); 369 DISALLOW_COPY_AND_ASSIGN(Panel);
370 }; 370 };
371 371
372 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_ 372 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/docked_panel_strip.cc ('k') | chrome/browser/ui/panels/panel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698