| 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 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 void SetPreviewMode(bool in_preview_mode); | 288 void SetPreviewMode(bool in_preview_mode); |
| 289 | 289 |
| 290 // Sets up the panel for being resizable by the user - for example, | 290 // Sets up the panel for being resizable by the user - for example, |
| 291 // enables the resize mouse cursors when mouse is hovering over the edges. | 291 // enables the resize mouse cursors when mouse is hovering over the edges. |
| 292 void EnableResizeByMouse(bool enable); | 292 void EnableResizeByMouse(bool enable); |
| 293 | 293 |
| 294 // Changes the preferred size to acceptable based on min_size() and max_size() | 294 // Changes the preferred size to acceptable based on min_size() and max_size() |
| 295 void ClampSize(gfx::Size* size) const; | 295 void ClampSize(gfx::Size* size) const; |
| 296 | 296 |
| 297 // Called when the panel's active state changes. | 297 // Called when the panel's active state changes. |
| 298 void OnActiveStateChanged(); | 298 // |active| is true if panel became active. |
| 299 void OnActiveStateChanged(bool active); |
| 299 | 300 |
| 300 protected: | 301 protected: |
| 301 virtual void DestroyBrowser() OVERRIDE; | 302 virtual void DestroyBrowser() OVERRIDE; |
| 302 | 303 |
| 303 private: | 304 private: |
| 304 friend class PanelManager; | 305 friend class PanelManager; |
| 305 friend class PanelBrowserTest; | 306 friend class PanelBrowserTest; |
| 306 FRIEND_TEST_ALL_PREFIXES(PanelBrowserTest, RestoredBounds); | 307 FRIEND_TEST_ALL_PREFIXES(PanelBrowserTest, RestoredBounds); |
| 307 | 308 |
| 308 // Panel can only be created using PanelManager::CreatePanel(). | 309 // Panel can only be created using PanelManager::CreatePanel(). |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 355 AttentionMode attention_mode_; | 356 AttentionMode attention_mode_; |
| 356 | 357 |
| 357 ExpansionState expansion_state_; | 358 ExpansionState expansion_state_; |
| 358 | 359 |
| 359 content::NotificationRegistrar registrar_; | 360 content::NotificationRegistrar registrar_; |
| 360 | 361 |
| 361 DISALLOW_COPY_AND_ASSIGN(Panel); | 362 DISALLOW_COPY_AND_ASSIGN(Panel); |
| 362 }; | 363 }; |
| 363 | 364 |
| 364 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_ | 365 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_ |
| OLD | NEW |