| 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 #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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |