[ios] Renamed methods.

This commit is contained in:
VladiMihaylenko 2016-12-09 15:35:55 +03:00 committed by Илья Гречухин
parent 12e04098d1
commit e10dd2b4af
3 changed files with 10 additions and 13 deletions

View file

@ -133,13 +133,13 @@ extern NSString * const kAlohalyticsTapEventKey;
- (void)dismissPlacePage
{
self.trafficButtonHidden = NO;
[self.placePageManager hidePlacePage];
[self.placePageManager close];
}
- (void)showPlacePage:(place_page::Info const &)info
{
self.trafficButtonHidden = YES;
[self.placePageManager showPlacePage:info];
[self.placePageManager show:info];
if (IPAD)
{
auto ownerView = self.ownerController.view;
@ -278,7 +278,7 @@ extern NSString * const kAlohalyticsTapEventKey;
self.menuState = MWMBottomMenuStateHidden;
MapViewController * ownerController = self.ownerController;
static_cast<EAGLView *>(ownerController.view).widgetsManager.fullScreen = YES;
[self.placePageManager dismissPlacePage];
[self.placePageManager close];
self.searchManager.state = MWMSearchManagerStateHidden;
[MWMAddPlaceNavigationBar showInSuperview:ownerController.view

View file

@ -32,7 +32,7 @@
@implementation MWMPlacePageManager
- (void)showPlacePage:(place_page::Info const &)info
- (void)show:(place_page::Info const &)info
{
self.currentDownloaderStatus = storage::NodeStatus::Undefined;
[MWMFrameworkListener addObserver:self];
@ -55,7 +55,7 @@
[self processCountryEvent:self.data.countryId];
}
- (void)closePlacePage
- (void)close
{
[self.layout close];
[MWMLocationManager removeObserver:self];
@ -157,32 +157,30 @@
}
- (void)mwm_refreshUI { [self.layout mwm_refreshUI]; }
- (void)dismissPlacePage { [self closePlacePage]; }
- (void)hidePlacePage { [self closePlacePage]; }
- (void)routeFrom
{
[Statistics logEvent:kStatEventName(kStatPlacePage, kStatBuildRoute)
withParameters:@{kStatValue : kStatSource}];
[self close];
[[MWMRouter router] buildFromPoint:self.target bestRouter:YES];
[self closePlacePage];
}
- (void)routeTo
{
[Statistics logEvent:kStatEventName(kStatPlacePage, kStatBuildRoute)
withParameters:@{kStatValue : kStatDestination}];
[self close];
[[MWMRouter router] buildToPoint:self.target bestRouter:YES];
[self closePlacePage];
}
- (void)taxiTo
{
[Statistics logEvent:kStatPlacePageTaxiClick
withParameters:@{kStatProvider : kStatUber, kStatTags : self.data.statisticsTags}];
[self close];
auto router = [MWMRouter router];
router.type = routing::RouterType::Taxi;
[router buildToPoint:self.target bestRouter:NO];
[self closePlacePage];
}
- (MWMRoutePoint)target

View file

@ -46,10 +46,9 @@ struct FeatureID;
@property(nonatomic) CGFloat topBound;
@property(nonatomic) CGFloat leftBound;
- (void)showPlacePage:(place_page::Info const &)info;
- (void)show:(place_page::Info const &)info;
- (void)close;
- (void)mwm_refreshUI;
- (void)dismissPlacePage;
- (void)hidePlacePage;
- (void)willRotateToInterfaceOrientation:(UIInterfaceOrientation)orientation;
- (void)viewWillTransitionToSize:(CGSize)size
withTransitionCoordinator:(id<UIViewControllerTransitionCoordinator>)coordinator;