| 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_VIEWS_CREATE_APPLICATION_SHORTCUT_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_CREATE_APPLICATION_SHORTCUT_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_CREATE_APPLICATION_SHORTCUT_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_CREATE_APPLICATION_SHORTCUT_VIEW_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 public: | 136 public: |
| 137 CreateChromeApplicationShortcutView( | 137 CreateChromeApplicationShortcutView( |
| 138 Profile* profile, | 138 Profile* profile, |
| 139 const extensions::Extension* app, | 139 const extensions::Extension* app, |
| 140 const base::Callback<void(bool)>& close_callback); | 140 const base::Callback<void(bool)>& close_callback); |
| 141 virtual ~CreateChromeApplicationShortcutView(); | 141 virtual ~CreateChromeApplicationShortcutView(); |
| 142 virtual bool Accept() OVERRIDE; | 142 virtual bool Accept() OVERRIDE; |
| 143 virtual bool Cancel() OVERRIDE; | 143 virtual bool Cancel() OVERRIDE; |
| 144 | 144 |
| 145 private: | 145 private: |
| 146 void OnShortcutInfoLoaded(const web_app::ShortcutInfo& shortcut_info); |
| 147 |
| 146 base::Callback<void(bool)> close_callback_; | 148 base::Callback<void(bool)> close_callback_; |
| 147 | 149 |
| 148 base::WeakPtrFactory<CreateChromeApplicationShortcutView> weak_ptr_factory_; | 150 base::WeakPtrFactory<CreateChromeApplicationShortcutView> weak_ptr_factory_; |
| 149 | 151 |
| 150 DISALLOW_COPY_AND_ASSIGN(CreateChromeApplicationShortcutView); | 152 DISALLOW_COPY_AND_ASSIGN(CreateChromeApplicationShortcutView); |
| 151 }; | 153 }; |
| 152 | 154 |
| 153 #endif // CHROME_BROWSER_UI_VIEWS_CREATE_APPLICATION_SHORTCUT_VIEW_H_ | 155 #endif // CHROME_BROWSER_UI_VIEWS_CREATE_APPLICATION_SHORTCUT_VIEW_H_ |
| OLD | NEW |