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

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

Issue 9586018: Add support for multiple icon sizes for Mac platform apps (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix build Created 8 years, 9 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) 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_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
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #include "base/file_path.h" 12 #include "base/file_path.h"
13 #include "base/memory/ref_counted.h" 13 #include "base/memory/ref_counted.h"
14 #include "base/string16.h" 14 #include "base/string16.h"
15 #include "googleurl/src/gurl.h" 15 #include "googleurl/src/gurl.h"
16 #include "third_party/skia/include/core/SkBitmap.h" 16 #include "third_party/skia/include/core/SkBitmap.h"
17 #include "ui/gfx/image/image.h"
17 18
18 class CommandLine; 19 class CommandLine;
19 20
20 #if defined(USE_X11) 21 #if defined(USE_X11)
21 namespace base { 22 namespace base {
22 class Environment; 23 class Environment;
23 } 24 }
24 #endif 25 #endif
25 26
26 class ShellIntegration { 27 class ShellIntegration {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 ~ShortcutInfo(); 71 ~ShortcutInfo();
71 72
72 GURL url; 73 GURL url;
73 // If |extension_id| is non-empty, this is short cut is to an extension-app 74 // If |extension_id| is non-empty, this is short cut is to an extension-app
74 // and the launch url will be detected at start-up. In this case, |url| 75 // and the launch url will be detected at start-up. In this case, |url|
75 // is still used to generate the app id (windows app id, not chrome app id). 76 // is still used to generate the app id (windows app id, not chrome app id).
76 std::string extension_id; 77 std::string extension_id;
77 string16 title; 78 string16 title;
78 string16 description; 79 string16 description;
79 FilePath extension_path; 80 FilePath extension_path;
80 SkBitmap favicon; 81 gfx::Image favicon;
81 82
82 bool create_on_desktop; 83 bool create_on_desktop;
83 bool create_in_applications_menu; 84 bool create_in_applications_menu;
84 85
85 // For Windows, this refers to quick launch bar prior to Win7. In Win7, 86 // For Windows, this refers to quick launch bar prior to Win7. In Win7,
86 // this means "pin to taskbar". For Mac/Linux, this could be used for 87 // this means "pin to taskbar". For Mac/Linux, this could be used for
87 // Mac dock or the gnome/kde application launcher. However, those are not 88 // Mac dock or the gnome/kde application launcher. However, those are not
88 // implemented yet. 89 // implemented yet.
89 bool create_in_quick_launch_bar; 90 bool create_in_quick_launch_bar;
90 }; 91 };
(...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 // Set Chrome as the default handler for this protocol. 273 // Set Chrome as the default handler for this protocol.
273 virtual void SetAsDefault() OVERRIDE; 274 virtual void SetAsDefault() OVERRIDE;
274 275
275 std::string protocol_; 276 std::string protocol_;
276 277
277 DISALLOW_COPY_AND_ASSIGN(DefaultProtocolClientWorker); 278 DISALLOW_COPY_AND_ASSIGN(DefaultProtocolClientWorker);
278 }; 279 };
279 }; 280 };
280 281
281 #endif // CHROME_BROWSER_SHELL_INTEGRATION_H_ 282 #endif // CHROME_BROWSER_SHELL_INTEGRATION_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/image_loading_tracker_unittest.cc ('k') | chrome/browser/shell_integration_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698