OLD | NEW |
1 // Copyright (c) 2010 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_UI_COCOA_LOCATION_BAR_INSTANT_OPT_IN_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_LOCATION_BAR_INSTANT_OPT_IN_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_INSTANT_OPT_IN_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_LOCATION_BAR_INSTANT_OPT_IN_CONTROLLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #import <Cocoa/Cocoa.h> | 9 #import <Cocoa/Cocoa.h> |
10 | 10 |
11 class Profile; | |
12 | |
13 // This delegate receives callbacks from the InstantOptInController when the OK | 11 // This delegate receives callbacks from the InstantOptInController when the OK |
14 // and Cancel buttons are pushed. | 12 // and Cancel buttons are pushed. |
15 class InstantOptInControllerDelegate { | 13 class InstantOptInControllerDelegate { |
16 public: | 14 public: |
17 virtual void UserPressedOptIn(bool opt_in) = 0; | 15 virtual void UserPressedOptIn(bool opt_in) = 0; |
18 | 16 |
19 protected: | 17 protected: |
20 virtual ~InstantOptInControllerDelegate() {} | 18 virtual ~InstantOptInControllerDelegate() {} |
21 }; | 19 }; |
22 | 20 |
(...skipping 11 matching lines...) Expand all Loading... |
34 // Designated initializer. | 32 // Designated initializer. |
35 - (id)initWithDelegate:(InstantOptInControllerDelegate*)delegate; | 33 - (id)initWithDelegate:(InstantOptInControllerDelegate*)delegate; |
36 | 34 |
37 // Button actions. | 35 // Button actions. |
38 - (IBAction)ok:(id)sender; | 36 - (IBAction)ok:(id)sender; |
39 - (IBAction)cancel:(id)sender; | 37 - (IBAction)cancel:(id)sender; |
40 | 38 |
41 @end | 39 @end |
42 | 40 |
43 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_INSTANT_OPT_IN_CONTROLLER_H_ | 41 #endif // CHROME_BROWSER_UI_COCOA_LOCATION_BAR_INSTANT_OPT_IN_CONTROLLER_H_ |
OLD | NEW |