Chromium Code Reviews| Index: chrome/browser/ui/cocoa/subresource_filter/subresource_filter_bubble_controller.h |
| diff --git a/chrome/browser/ui/cocoa/subresource_filter/subresource_filter_bubble_controller.h b/chrome/browser/ui/cocoa/subresource_filter/subresource_filter_bubble_controller.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..8abbc424862f0a5e78b25760a5350229190672b2 |
| --- /dev/null |
| +++ b/chrome/browser/ui/cocoa/subresource_filter/subresource_filter_bubble_controller.h |
| @@ -0,0 +1,33 @@ |
| +// Copyright 2017 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_UI_COCOA_SUBRESOURCE_FILTER_SUBRESOURCE_FILTER_BUBBLE_CONTROLLER_H_ |
| +#define CHROME_BROWSER_UI_COCOA_SUBRESOURCE_FILTER_SUBRESOURCE_FILTER_BUBBLE_CONTROLLER_H_ |
| + |
| +#import <Cocoa/Cocoa.h> |
| + |
| +#import "chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa.h" |
| + |
| +// Displays the content filtering bubble. This is a bubble which is shown |
| +// through content settings when the user proceeds through a Safe Browsing |
| +// warning interstitial that is displayed when the site ahead contains deceptive |
| +// embedded content. It explains to the user that some subresources were |
| +// filtered and presents the checkbox to enable those resources. If the check |
|
Charlie Harrison
2017/05/05 18:59:31
s/enable those resources/reload the page
shivanisha
2017/05/05 19:15:46
done
|
| +// box is checked, the OK button's text is replaced with Reload giving the user |
| +// the ability to reload the page with the content we've blocked previously. |
|
Charlie Harrison
2017/05/05 18:59:31
s/with the content we've blocked previously/with f
shivanisha
2017/05/05 19:15:46
done
shivanisha
2017/05/05 19:15:46
done
|
| +@interface SubresourceFilterBubbleController : ContentSettingBubbleController |
| + |
| +@end |
| + |
| +// The methods on this category are used internally by the controller and are |
| +// only exposed for testing purposes. DO NOT USE OTHERWISE. |
| +@interface SubresourceFilterBubbleController (ExposedForTesting) |
| +- (void)manageCheckboxChecked:(id)sender; |
| +- (id)titleLabel; |
| +- (id)messageLabel; |
| +- (id)manageCheckbox; |
| +- (id)doneButton; |
| +@end |
| + |
| +#endif // CHROME_BROWSER_UI_COCOA_SUBRESOURCE_FILTER_SUBRESOURCE_FILTER_BUBBLE_CONTROLLER_H_ |