Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1141)

Side by Side Diff: chrome/browser/shell_integration.h

Issue 6576020: Remove Gears from Chrome (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: ready to review Created 9 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_SHELL_INTEGRATION_H_ 5 #ifndef CHROME_BROWSER_SHELL_INTEGRATION_H_
6 #define CHROME_BROWSER_SHELL_INTEGRATION_H_ 6 #define CHROME_BROWSER_SHELL_INTEGRATION_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 bool create_on_desktop; 65 bool create_on_desktop;
66 bool create_in_applications_menu; 66 bool create_in_applications_menu;
67 67
68 // For Windows, this refers to quick launch bar prior to Win7. In Win7, 68 // For Windows, this refers to quick launch bar prior to Win7. In Win7,
69 // this means "pin to taskbar". For Mac/Linux, this could be used for 69 // this means "pin to taskbar". For Mac/Linux, this could be used for
70 // Mac dock or the gnome/kde application launcher. However, those are not 70 // Mac dock or the gnome/kde application launcher. However, those are not
71 // implemented yet. 71 // implemented yet.
72 bool create_in_quick_launch_bar; 72 bool create_in_quick_launch_bar;
73 }; 73 };
74 74
75 // Re-implementation of chrome_plugin_utill::CPB_GetCommandLineArgumentsCommon 75 // If |extension_app_id| is non-empty, an arguments string is created using
76 // which is deprecated. If |extension_app_id| is non-empty, an arguments 76 // the kAppId=<id> flag. Otherwise, the kApp=<url> is used.
77 // string is created using the kAppId=<id> flag. Otherwise, the kApp=<url> is
78 // used.
79 // NOTE: This function is dangerous, do not use! You cannot treat 77 // NOTE: This function is dangerous, do not use! You cannot treat
80 // command lines as plain strings as there are metacharacters. 78 // command lines as plain strings as there are metacharacters.
81 // TODO(evanm): remove it. 79 // TODO(evanm): remove it.
82 static std::string GetCommandLineArgumentsCommon(const GURL& url, 80 static std::string GetCommandLineArgumentsCommon(const GURL& url,
83 const string16& extension_app_id); 81 const string16& extension_app_id);
84 82
85 #if defined(USE_X11) 83 #if defined(USE_X11)
86 // Returns filename of the desktop shortcut used to launch the browser. 84 // Returns filename of the desktop shortcut used to launch the browser.
87 static std::string GetDesktopName(base::Environment* env); 85 static std::string GetDesktopName(base::Environment* env);
88 86
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 // state. 174 // state.
177 void UpdateUI(DefaultBrowserState state); 175 void UpdateUI(DefaultBrowserState state);
178 176
179 DefaultBrowserObserver* observer_; 177 DefaultBrowserObserver* observer_;
180 178
181 DISALLOW_COPY_AND_ASSIGN(DefaultBrowserWorker); 179 DISALLOW_COPY_AND_ASSIGN(DefaultBrowserWorker);
182 }; 180 };
183 }; 181 };
184 182
185 #endif // CHROME_BROWSER_SHELL_INTEGRATION_H_ 183 #endif // CHROME_BROWSER_SHELL_INTEGRATION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698