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