| 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_EXTENSIONS_SHELL_WINDOW_H_ | 5 #ifndef CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_ |
| 6 #define CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_ | 6 #define CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_ |
| 7 | 7 |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "chrome/browser/extensions/extension_function_dispatcher.h" | 9 #include "chrome/browser/extensions/extension_function_dispatcher.h" |
| 10 #include "chrome/browser/extensions/extension_keybinding_registry.h" | 10 #include "chrome/browser/extensions/extension_keybinding_registry.h" |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 bool restore_position; | 61 bool restore_position; |
| 62 bool restore_size; | 62 bool restore_size; |
| 63 | 63 |
| 64 gfx::Size minimum_size; | 64 gfx::Size minimum_size; |
| 65 gfx::Size maximum_size; | 65 gfx::Size maximum_size; |
| 66 | 66 |
| 67 std::string window_key; | 67 std::string window_key; |
| 68 | 68 |
| 69 // The process ID of the process that requested the create. | 69 // The process ID of the process that requested the create. |
| 70 int32 creator_process_id; | 70 int32 creator_process_id; |
| 71 |
| 72 // If true, don't show the window after creation. |
| 73 bool hidden; |
| 71 }; | 74 }; |
| 72 | 75 |
| 73 static ShellWindow* Create(Profile* profile, | 76 static ShellWindow* Create(Profile* profile, |
| 74 const extensions::Extension* extension, | 77 const extensions::Extension* extension, |
| 75 const GURL& url, | 78 const GURL& url, |
| 76 const CreateParams& params); | 79 const CreateParams& params); |
| 77 | 80 |
| 78 // Convert draggable regions in raw format to SkRegion format. Caller is | 81 // Convert draggable regions in raw format to SkRegion format. Caller is |
| 79 // responsible for deleting the returned SkRegion instance. | 82 // responsible for deleting the returned SkRegion instance. |
| 80 static SkRegion* RawDraggableRegionsToSkRegion( | 83 static SkRegion* RawDraggableRegionsToSkRegion( |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 | 207 |
| 205 // Used for loading app_icon_. | 208 // Used for loading app_icon_. |
| 206 scoped_ptr<ImageLoadingTracker> app_icon_loader_; | 209 scoped_ptr<ImageLoadingTracker> app_icon_loader_; |
| 207 | 210 |
| 208 scoped_ptr<NativeShellWindow> native_window_; | 211 scoped_ptr<NativeShellWindow> native_window_; |
| 209 | 212 |
| 210 DISALLOW_COPY_AND_ASSIGN(ShellWindow); | 213 DISALLOW_COPY_AND_ASSIGN(ShellWindow); |
| 211 }; | 214 }; |
| 212 | 215 |
| 213 #endif // CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_ | 216 #endif // CHROME_BROWSER_UI_EXTENSIONS_SHELL_WINDOW_H_ |
| OLD | NEW |