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; | |
287 | 286 |
288 enum MaxSizePolicy { | 287 enum MaxSizePolicy { |
289 // Default maximum size is proportional to the work area. | 288 // Default maximum size is proportional to the work area. |
290 DEFAULT_MAX_SIZE, | 289 DEFAULT_MAX_SIZE, |
291 // Custom maximum size is used when the panel is resized by the user. | 290 // Custom maximum size is used when the panel is resized by the user. |
292 CUSTOM_MAX_SIZE | 291 CUSTOM_MAX_SIZE |
293 }; | 292 }; |
294 | 293 |
295 // Configures the renderer for auto resize (if auto resize is enabled). | 294 // Configures the renderer for auto resize (if auto resize is enabled). |
296 void ConfigureAutoResize(content::WebContents* web_contents); | 295 void ConfigureAutoResize(content::WebContents* web_contents); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 | 343 |
345 // The CommandUpdater manages the window commands. | 344 // The CommandUpdater manages the window commands. |
346 CommandUpdater command_updater_; | 345 CommandUpdater command_updater_; |
347 | 346 |
348 content::NotificationRegistrar registrar_; | 347 content::NotificationRegistrar registrar_; |
349 | 348 |
350 DISALLOW_COPY_AND_ASSIGN(Panel); | 349 DISALLOW_COPY_AND_ASSIGN(Panel); |
351 }; | 350 }; |
352 | 351 |
353 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_ | 352 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_ |
OLD | NEW |