Commit 853cab97 authored by Ewann's avatar Ewann Committed by Commit Bot

[iOS] Rename soon-to-be legacy files

A new page info is going to be implemented.

Bug: 1038919
Change-Id: I4cba76a06144784cee46ebd637b7281f7107e5cf
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2036177Reviewed-by: default avatarSylvain Defresne <sdefresne@chromium.org>
Commit-Queue: Ewann Pellé <ewannpv@chromium.org>
Cr-Commit-Position: refs/heads/master@{#738210}
parent 1f4b7d92
......@@ -60,12 +60,12 @@ source_set("features") {
source_set("coordinator") {
configs += [ "//build/config/compiler:enable_arc" ]
sources = [
"legacy_page_info_mediator.h",
"legacy_page_info_mediator.mm",
"page_info_coordinator.h",
"page_info_coordinator.mm",
"page_info_legacy_coordinator.h",
"page_info_legacy_coordinator.mm",
"page_info_mediator.h",
"page_info_mediator.mm",
]
deps = [
":page_info",
......@@ -101,7 +101,7 @@ source_set("eg_tests") {
configs += [ "//build/config/compiler:enable_arc" ]
defines = [ "CHROME_EARL_GREY_1" ]
testonly = true
sources = [ "page_info_egtest.mm" ]
sources = [ "legacy_page_info_egtest.mm" ]
deps = [
":page_info",
"//ios/chrome/browser/ui/popup_menu:constants",
......@@ -122,7 +122,7 @@ source_set("eg2_tests") {
"//build/config/ios:xctest_config",
]
testonly = true
sources = [ "page_info_egtest.mm" ]
sources = [ "legacy_page_info_egtest.mm" ]
deps = [
":constants",
"//ios/chrome/browser/ui/popup_menu:constants",
......
......@@ -16,10 +16,10 @@
#error "This file requires ARC support."
#endif
@interface PageInfoTestCase : ChromeTestCase
@interface LegacyPageInfoTestCase : ChromeTestCase
@end
@implementation PageInfoTestCase
@implementation LegacyPageInfoTestCase
// Tests that rotating the device will automatically dismiss the page info view.
- (void)testShowPageInfoAndDismissOnDeviceRotation {
......
......@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef IOS_CHROME_BROWSER_UI_PAGE_INFO_PAGE_INFO_MEDIATOR_H_
#define IOS_CHROME_BROWSER_UI_PAGE_INFO_PAGE_INFO_MEDIATOR_H_
#ifndef IOS_CHROME_BROWSER_UI_PAGE_INFO_LEGACY_PAGE_INFO_MEDIATOR_H_
#define IOS_CHROME_BROWSER_UI_PAGE_INFO_LEGACY_PAGE_INFO_MEDIATOR_H_
#import <Foundation/Foundation.h>
......@@ -16,7 +16,7 @@ class GURL;
// Mediator for the PageInfo, extracting the data to be displayed for the web
// informations.
@interface PageInfoMediator : NSObject
@interface LegacyPageInfoMediator : NSObject
// For now this object only have static method.
- (instancetype)init NS_UNAVAILABLE;
......@@ -29,4 +29,4 @@ class GURL;
@end
#endif // IOS_CHROME_BROWSER_UI_PAGE_INFO_PAGE_INFO_MEDIATOR_H_
#endif // IOS_CHROME_BROWSER_UI_PAGE_INFO_LEGACY_PAGE_INFO_MEDIATOR_H_
......@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import "ios/chrome/browser/ui/page_info/page_info_mediator.h"
#import "ios/chrome/browser/ui/page_info/legacy_page_info_mediator.h"
#include "base/strings/sys_string_conversions.h"
#include "base/strings/utf_string_conversions.h"
......@@ -61,7 +61,7 @@ NSString* BuildMessage(NSArray<NSString*>* messageComponents) {
} // namespace
@implementation PageInfoMediator
@implementation LegacyPageInfoMediator
+ (PageInfoConfig*)configurationForURL:(const GURL&)URL
SSLStatus:(web::SSLStatus&)status
......
......@@ -17,9 +17,9 @@
#import "ios/chrome/browser/ui/commands/command_dispatcher.h"
#import "ios/chrome/browser/ui/commands/open_new_tab_command.h"
#import "ios/chrome/browser/ui/fullscreen/chrome_coordinator+fullscreen_disabling.h"
#import "ios/chrome/browser/ui/page_info/legacy_page_info_mediator.h"
#import "ios/chrome/browser/ui/page_info/legacy_page_info_view_controller.h"
#import "ios/chrome/browser/ui/page_info/page_info_constants.h"
#import "ios/chrome/browser/ui/page_info/page_info_mediator.h"
#import "ios/chrome/browser/ui/page_info/requirements/page_info_presentation.h"
#import "ios/chrome/browser/url_loading/url_loading_params.h"
#import "ios/chrome/browser/url_loading/url_loading_service.h"
......@@ -84,9 +84,9 @@
OfflinePageTabHelper::FromWebState(webState)->presenting_offline_page();
PageInfoConfig* config =
[PageInfoMediator configurationForURL:navItem->GetURL()
SSLStatus:navItem->GetSSL()
offlinePage:presentingOfflinePage];
[LegacyPageInfoMediator configurationForURL:navItem->GetURL()
SSLStatus:navItem->GetSSL()
offlinePage:presentingOfflinePage];
CGPoint originPresentationCoordinates = [self.presentationProvider
convertToPresentationCoordinatesForOrigin:self.originPoint];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment