| OLD | NEW |
| 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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 private: | 265 private: |
| 266 friend class PanelManager; | 266 friend class PanelManager; |
| 267 friend class PanelBrowserTest; | 267 friend class PanelBrowserTest; |
| 268 FRIEND_TEST_ALL_PREFIXES(PanelBrowserTest, RestoredBounds); | 268 FRIEND_TEST_ALL_PREFIXES(PanelBrowserTest, RestoredBounds); |
| 269 | 269 |
| 270 // Panel can only be created using PanelManager::CreatePanel(). | 270 // Panel can only be created using PanelManager::CreatePanel(). |
| 271 // |requested_size| is the desired size for the panel, but actual | 271 // |requested_size| is the desired size for the panel, but actual |
| 272 // size may differ after panel layout. | 272 // size may differ after panel layout. |
| 273 Panel(Browser* browser, const gfx::Size& requested_size); | 273 Panel(Browser* browser, const gfx::Size& requested_size); |
| 274 | 274 |
| 275 // Configures the tab contents for auto resize, including configurations | 275 // Configures the web contents for auto resize, including configurations |
| 276 // on the renderer and detecting renderer changes. | 276 // on the renderer and detecting renderer changes. |
| 277 void EnableTabContentsAutoResize(TabContents* tab_contents); | 277 void EnableWebContentsAutoResize(content::WebContents* web_contents); |
| 278 | 278 |
| 279 // Configures the renderer for auto resize (if auto resize is enabled). | 279 // Configures the renderer for auto resize (if auto resize is enabled). |
| 280 void ConfigureAutoResize(TabContents* tab_contents); | 280 void ConfigureAutoResize(content::WebContents* web_contents); |
| 281 | 281 |
| 282 Browser* browser_; // Weak, owned by native panel. | 282 Browser* browser_; // Weak, owned by native panel. |
| 283 | 283 |
| 284 bool initialized_; | 284 bool initialized_; |
| 285 | 285 |
| 286 // Newly created panels may be placed in a temporary layout until their | 286 // Newly created panels may be placed in a temporary layout until their |
| 287 // final position is determined. | 287 // final position is determined. |
| 288 bool has_temporary_layout_; | 288 bool has_temporary_layout_; |
| 289 | 289 |
| 290 // Stores the full size of the panel so we can restore it after it's | 290 // Stores the full size of the panel so we can restore it after it's |
| (...skipping 21 matching lines...) Expand all Loading... |
| 312 | 312 |
| 313 // Indicates whether the panel app icon is visible in the taskbar. | 313 // Indicates whether the panel app icon is visible in the taskbar. |
| 314 bool app_icon_visible_; | 314 bool app_icon_visible_; |
| 315 | 315 |
| 316 content::NotificationRegistrar registrar_; | 316 content::NotificationRegistrar registrar_; |
| 317 | 317 |
| 318 DISALLOW_COPY_AND_ASSIGN(Panel); | 318 DISALLOW_COPY_AND_ASSIGN(Panel); |
| 319 }; | 319 }; |
| 320 | 320 |
| 321 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_ | 321 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_ |
| OLD | NEW |