Chromium Code Reviews| Index: ios/chrome/search_widget_extension/search_widget_view.h |
| diff --git a/ios/chrome/widget_extension/widget_view.h b/ios/chrome/search_widget_extension/search_widget_view.h |
| similarity index 69% |
| rename from ios/chrome/widget_extension/widget_view.h |
| rename to ios/chrome/search_widget_extension/search_widget_view.h |
| index 6b6bd57d044b2861dd173abcfadc6ef507b5f9c9..aa6410d21647d202bc2a1171d5902523f4427cba 100644 |
| --- a/ios/chrome/widget_extension/widget_view.h |
| +++ b/ios/chrome/search_widget_extension/search_widget_view.h |
| @@ -2,14 +2,14 @@ |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| -#ifndef IOS_CHROME_WIDGET_EXTENSION_WIDGET_VIEW_H_ |
| -#define IOS_CHROME_WIDGET_EXTENSION_WIDGET_VIEW_H_ |
| +#ifndef IOS_CHROME_SEARCH_WIDGET_EXTENSION_SEARCH_WIDGET_VIEW_H_ |
| +#define IOS_CHROME_SEARCH_WIDGET_EXTENSION_SEARCH_WIDGET_VIEW_H_ |
| #import <UIKit/UIKit.h> |
| // Protocol to be implemented by targets for user actions coming from the widget |
|
sdefresne
2017/04/12 15:15:25
nit: ... user actions coming from the search widge
lody
2017/04/12 15:35:31
Done.
|
| // view. |
| -@protocol WidgetViewActionTarget |
| +@protocol SearchWidgetViewActionTarget |
| // Called when the user taps the Search button. |
| - (void)openSearch:(id)sender; |
| @@ -24,13 +24,13 @@ |
| @end |
| -// View for the widget. Shows a blinking cursor for a fake omnibox and calls the |
| -// target when tapped. |
| -@interface WidgetView : UIView |
| +// View for the search widget. Shows a blinking cursor for a fake omnibox and |
| +// calls the target when tapped. |
| +@interface SearchWidgetView : UIView |
| // Designated initializer, creates the widget view with a |target| for user |
| // actions. |
| -- (instancetype)initWithActionTarget:(id<WidgetViewActionTarget>)target |
| +- (instancetype)initWithActionTarget:(id<SearchWidgetViewActionTarget>)target |
| NS_DESIGNATED_INITIALIZER; |
| - (instancetype)initWithFrame:(CGRect)frame NS_UNAVAILABLE; |
| - (instancetype)initWithCoder:(NSCoder*)aDecoder NS_UNAVAILABLE; |
| @@ -40,4 +40,4 @@ |
| @end |
| -#endif // IOS_CHROME_WIDGET_EXTENSION_WIDGET_VIEW_H_ |
| +#endif // IOS_CHROME_SEARCH_WIDGET_EXTENSION_SEARCH_WIDGET_VIEW_H_ |