OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #import <Cocoa/Cocoa.h> | 5 #import <Cocoa/Cocoa.h> |
6 | 6 |
7 #import "base/mac/scoped_nsobject.h" | 7 #import "base/mac/scoped_nsobject.h" |
8 #import "chrome/browser/web_applications/web_app_mac.h" | 8 #import "chrome/browser/web_applications/web_app_mac.h" |
9 #import "ui/base/l10n/l10n_util_mac.h" | 9 #import "ui/base/l10n/l10n_util_mac.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "chrome/browser/profiles/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
12 #include "chrome/browser/ui/cocoa/key_equivalent_constants.h" | 12 #include "chrome/browser/ui/cocoa/key_equivalent_constants.h" |
13 #include "chrome/grit/generated_resources.h" | 13 #include "chrome/grit/generated_resources.h" |
14 #include "grit/components_strings.h" | 14 #include "components/strings/grit/components_strings.h" |
15 #include "ui/gfx/image/image.h" | 15 #include "ui/gfx/image/image.h" |
16 | 16 |
17 @interface CrCreateAppShortcutCheckboxObserver : NSObject { | 17 @interface CrCreateAppShortcutCheckboxObserver : NSObject { |
18 @private | 18 @private |
19 NSButton* checkbox_; | 19 NSButton* checkbox_; |
20 NSButton* continueButton_; | 20 NSButton* continueButton_; |
21 } | 21 } |
22 | 22 |
23 - (id)initWithCheckbox:(NSButton*)checkbox | 23 - (id)initWithCheckbox:(NSButton*)checkbox |
24 continueButton:(NSButton*)continueButton; | 24 continueButton:(NSButton*)continueButton; |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 gfx::NativeWindow /*parent_window*/, | 126 gfx::NativeWindow /*parent_window*/, |
127 Profile* profile, | 127 Profile* profile, |
128 const extensions::Extension* app, | 128 const extensions::Extension* app, |
129 const base::Callback<void(bool)>& close_callback) { | 129 const base::Callback<void(bool)>& close_callback) { |
130 web_app::GetShortcutInfoForApp( | 130 web_app::GetShortcutInfoForApp( |
131 app, profile, | 131 app, profile, |
132 base::Bind(&CreateAppShortcutInfoLoaded, profile, app, close_callback)); | 132 base::Bind(&CreateAppShortcutInfoLoaded, profile, app, close_callback)); |
133 } | 133 } |
134 | 134 |
135 } // namespace chrome | 135 } // namespace chrome |
OLD | NEW |