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 <string> | 9 #include <string> |
10 | 10 |
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
276 // Panel can only be created using PanelManager::CreatePanel() or subclass. | 276 // Panel can only be created using PanelManager::CreatePanel() or subclass. |
277 // |app_name| is the default title for Panels when the page content does not | 277 // |app_name| is the default title for Panels when the page content does not |
278 // provide a title. For extensions, this is usually the application name | 278 // provide a title. For extensions, this is usually the application name |
279 // generated from the extension id. | 279 // generated from the extension id. |
280 Panel(const std::string& app_name, | 280 Panel(const std::string& app_name, |
281 const gfx::Size& min_size, const gfx::Size& max_size); | 281 const gfx::Size& min_size, const gfx::Size& max_size); |
282 | 282 |
283 private: | 283 private: |
284 friend class PanelManager; | 284 friend class PanelManager; |
285 friend class PanelBrowserTest; | 285 friend class PanelBrowserTest; |
| 286 friend class OldPanelBrowserTest; |
286 | 287 |
287 enum MaxSizePolicy { | 288 enum MaxSizePolicy { |
288 // Default maximum size is proportional to the work area. | 289 // Default maximum size is proportional to the work area. |
289 DEFAULT_MAX_SIZE, | 290 DEFAULT_MAX_SIZE, |
290 // Custom maximum size is used when the panel is resized by the user. | 291 // Custom maximum size is used when the panel is resized by the user. |
291 CUSTOM_MAX_SIZE | 292 CUSTOM_MAX_SIZE |
292 }; | 293 }; |
293 | 294 |
294 // Configures the renderer for auto resize (if auto resize is enabled). | 295 // Configures the renderer for auto resize (if auto resize is enabled). |
295 void ConfigureAutoResize(content::WebContents* web_contents); | 296 void ConfigureAutoResize(content::WebContents* web_contents); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
343 | 344 |
344 // The CommandUpdater manages the window commands. | 345 // The CommandUpdater manages the window commands. |
345 CommandUpdater command_updater_; | 346 CommandUpdater command_updater_; |
346 | 347 |
347 content::NotificationRegistrar registrar_; | 348 content::NotificationRegistrar registrar_; |
348 | 349 |
349 DISALLOW_COPY_AND_ASSIGN(Panel); | 350 DISALLOW_COPY_AND_ASSIGN(Panel); |
350 }; | 351 }; |
351 | 352 |
352 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_ | 353 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_ |
OLD | NEW |