| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_JUMPLIST_UPDATER_WIN_H_ | 5 #ifndef CHROME_BROWSER_JUMPLIST_UPDATER_WIN_H_ |
| 6 #define CHROME_BROWSER_JUMPLIST_UPDATER_WIN_H_ | 6 #define CHROME_BROWSER_JUMPLIST_UPDATER_WIN_H_ |
| 7 | 7 |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 #include <shobjidl.h> | 9 #include <shobjidl.h> |
| 10 | 10 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 class ShellLinkItem : public base::RefCountedThreadSafe<ShellLinkItem> { | 23 class ShellLinkItem : public base::RefCountedThreadSafe<ShellLinkItem> { |
| 24 public: | 24 public: |
| 25 ShellLinkItem(); | 25 ShellLinkItem(); |
| 26 | 26 |
| 27 const std::wstring& title() const { return title_; } | 27 const std::wstring& title() const { return title_; } |
| 28 const std::wstring& icon_path() const { return icon_path_; } | 28 const std::wstring& icon_path() const { return icon_path_; } |
| 29 int icon_index() const { return icon_index_; } | 29 int icon_index() const { return icon_index_; } |
| 30 const SkBitmap& icon_data() const { return icon_data_; } | 30 const SkBitmap& icon_data() const { return icon_data_; } |
| 31 | 31 |
| 32 std::wstring GetArguments() const; | 32 std::wstring GetArguments() const; |
| 33 CommandLine* GetCommandLine(); | 33 base::CommandLine* GetCommandLine(); |
| 34 | 34 |
| 35 void set_title(const std::wstring& title) { | 35 void set_title(const std::wstring& title) { |
| 36 title_ = title; | 36 title_ = title; |
| 37 } | 37 } |
| 38 | 38 |
| 39 void set_icon(const std::wstring& path, int index) { | 39 void set_icon(const std::wstring& path, int index) { |
| 40 icon_path_ = path; | 40 icon_path_ = path; |
| 41 icon_index_ = index; | 41 icon_index_ = index; |
| 42 } | 42 } |
| 43 | 43 |
| 44 void set_icon_data(const SkBitmap& data) { | 44 void set_icon_data(const SkBitmap& data) { |
| 45 icon_data_ = data; | 45 icon_data_ = data; |
| 46 } | 46 } |
| 47 | 47 |
| 48 private: | 48 private: |
| 49 friend class base::RefCountedThreadSafe<ShellLinkItem>; | 49 friend class base::RefCountedThreadSafe<ShellLinkItem>; |
| 50 ~ShellLinkItem(); | 50 ~ShellLinkItem(); |
| 51 | 51 |
| 52 // Used for storing and appending command-line arguments. | 52 // Used for storing and appending command-line arguments. |
| 53 CommandLine command_line_; | 53 base::CommandLine command_line_; |
| 54 | 54 |
| 55 // The string to be displayed in a JumpList. | 55 // The string to be displayed in a JumpList. |
| 56 std::wstring title_; | 56 std::wstring title_; |
| 57 | 57 |
| 58 // The absolute path to an icon to be displayed in a JumpList. | 58 // The absolute path to an icon to be displayed in a JumpList. |
| 59 std::wstring icon_path_; | 59 std::wstring icon_path_; |
| 60 | 60 |
| 61 // The icon index in the icon file. If an icon file consists of two or more | 61 // The icon index in the icon file. If an icon file consists of two or more |
| 62 // icons, set this value to identify the icon. If an icon file consists of | 62 // icons, set this value to identify the icon. If an icon file consists of |
| 63 // one icon, this value is 0. | 63 // one icon, this value is 0. |
| (...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 base::win::ScopedComPtr<ICustomDestinationList> destination_list_; | 130 base::win::ScopedComPtr<ICustomDestinationList> destination_list_; |
| 131 | 131 |
| 132 // The current user setting for "Number of recent items to display in Jump | 132 // The current user setting for "Number of recent items to display in Jump |
| 133 // Lists" option in the "Taskbar and Start Menu Properties". | 133 // Lists" option in the "Taskbar and Start Menu Properties". |
| 134 size_t user_max_items_; | 134 size_t user_max_items_; |
| 135 | 135 |
| 136 DISALLOW_COPY_AND_ASSIGN(JumpListUpdater); | 136 DISALLOW_COPY_AND_ASSIGN(JumpListUpdater); |
| 137 }; | 137 }; |
| 138 | 138 |
| 139 #endif // CHROME_BROWSER_JUMPLIST_UPDATER_WIN_H_ | 139 #endif // CHROME_BROWSER_JUMPLIST_UPDATER_WIN_H_ |
| OLD | NEW |