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_APP_LAUNCH_PARAMS_H_ | 5 #ifndef CHROME_BROWSER_UI_EXTENSIONS_APP_LAUNCH_PARAMS_H_ |
6 #define CHROME_BROWSER_UI_EXTENSIONS_APP_LAUNCH_PARAMS_H_ | 6 #define CHROME_BROWSER_UI_EXTENSIONS_APP_LAUNCH_PARAMS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
11 #include "base/files/file_path.h" | 11 #include "base/files/file_path.h" |
12 #include "chrome/browser/ui/host_desktop.h" | 12 #include "chrome/browser/ui/host_desktop.h" |
13 #include "chrome/common/extensions/extension_constants.h" | 13 #include "chrome/common/extensions/extension_constants.h" |
| 14 #include "extensions/common/constants.h" |
14 #include "ui/base/window_open_disposition.h" | 15 #include "ui/base/window_open_disposition.h" |
15 #include "ui/gfx/rect.h" | 16 #include "ui/gfx/rect.h" |
16 #include "url/gurl.h" | 17 #include "url/gurl.h" |
17 | 18 |
18 class Profile; | 19 class Profile; |
19 | 20 |
20 namespace extensions { | 21 namespace extensions { |
21 class Extension; | 22 class Extension; |
22 } | 23 } |
23 | 24 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 // position and dimensions. | 67 // position and dimensions. |
67 gfx::Rect override_bounds; | 68 gfx::Rect override_bounds; |
68 | 69 |
69 // If non-empty, information from the command line may be passed on to the | 70 // If non-empty, information from the command line may be passed on to the |
70 // application. | 71 // application. |
71 base::CommandLine command_line; | 72 base::CommandLine command_line; |
72 | 73 |
73 // If non-empty, the current directory from which any relative paths on the | 74 // If non-empty, the current directory from which any relative paths on the |
74 // command line should be expanded from. | 75 // command line should be expanded from. |
75 base::FilePath current_directory; | 76 base::FilePath current_directory; |
| 77 |
| 78 // Record where the app is launched from for tracking purpose. |
| 79 // Different app may have their own enumeration of sources. |
| 80 extensions::AppLaunchSource source; |
76 }; | 81 }; |
77 | 82 |
78 #endif // CHROME_BROWSER_UI_EXTENSIONS_APP_LAUNCH_PARAMS_H_ | 83 #endif // CHROME_BROWSER_UI_EXTENSIONS_APP_LAUNCH_PARAMS_H_ |
OLD | NEW |