| 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 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
| (...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 void ConfigureAutoResize(content::WebContents* web_contents); | 329 void ConfigureAutoResize(content::WebContents* web_contents); |
| 330 | 330 |
| 331 // Prepares a title string for display (removes embedded newlines, etc). | 331 // Prepares a title string for display (removes embedded newlines, etc). |
| 332 static void FormatTitleForDisplay(string16* title); | 332 static void FormatTitleForDisplay(string16* title); |
| 333 | 333 |
| 334 // The application name that is also the name of the window when the | 334 // The application name that is also the name of the window when the |
| 335 // page content does not provide a title. | 335 // page content does not provide a title. |
| 336 // This name should be set when the panel is created. | 336 // This name should be set when the panel is created. |
| 337 const std::string app_name_; | 337 const std::string app_name_; |
| 338 | 338 |
| 339 Profile* profile_; |
| 340 |
| 339 // Current collection of panels to which this panel belongs. This determines | 341 // Current collection of panels to which this panel belongs. This determines |
| 340 // the panel's screen layout. | 342 // the panel's screen layout. |
| 341 PanelStrip* panel_strip_; // Owned by PanelManager. | 343 PanelStrip* panel_strip_; // Owned by PanelManager. |
| 342 | 344 |
| 343 bool initialized_; | 345 bool initialized_; |
| 344 | 346 |
| 345 // Stores the full size of the panel so we can restore it after it's | 347 // Stores the full size of the panel so we can restore it after it's |
| 346 // been minimized or squeezed due to lack of space in the strip. | 348 // been minimized or squeezed due to lack of space in the strip. |
| 347 gfx::Size full_size_; | 349 gfx::Size full_size_; |
| 348 | 350 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 380 | 382 |
| 381 content::NotificationRegistrar registrar_; | 383 content::NotificationRegistrar registrar_; |
| 382 const SessionID session_id_; | 384 const SessionID session_id_; |
| 383 scoped_ptr<extensions::WindowController> extension_window_controller_; | 385 scoped_ptr<extensions::WindowController> extension_window_controller_; |
| 384 scoped_ptr<PanelHost> panel_host_; | 386 scoped_ptr<PanelHost> panel_host_; |
| 385 | 387 |
| 386 DISALLOW_COPY_AND_ASSIGN(Panel); | 388 DISALLOW_COPY_AND_ASSIGN(Panel); |
| 387 }; | 389 }; |
| 388 | 390 |
| 389 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_ | 391 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_ |
| OLD | NEW |