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") { ...@@ -60,12 +60,12 @@ source_set("features") {
source_set("coordinator") { source_set("coordinator") {
configs += [ "//build/config/compiler:enable_arc" ] configs += [ "//build/config/compiler:enable_arc" ]
sources = [ sources = [
"legacy_page_info_mediator.h",
"legacy_page_info_mediator.mm",
"page_info_coordinator.h", "page_info_coordinator.h",
"page_info_coordinator.mm", "page_info_coordinator.mm",
"page_info_legacy_coordinator.h", "page_info_legacy_coordinator.h",
"page_info_legacy_coordinator.mm", "page_info_legacy_coordinator.mm",
"page_info_mediator.h",
"page_info_mediator.mm",
] ]
deps = [ deps = [
":page_info", ":page_info",
...@@ -101,7 +101,7 @@ source_set("eg_tests") { ...@@ -101,7 +101,7 @@ source_set("eg_tests") {
configs += [ "//build/config/compiler:enable_arc" ] configs += [ "//build/config/compiler:enable_arc" ]
defines = [ "CHROME_EARL_GREY_1" ] defines = [ "CHROME_EARL_GREY_1" ]
testonly = true testonly = true
sources = [ "page_info_egtest.mm" ] sources = [ "legacy_page_info_egtest.mm" ]
deps = [ deps = [
":page_info", ":page_info",
"//ios/chrome/browser/ui/popup_menu:constants", "//ios/chrome/browser/ui/popup_menu:constants",
...@@ -122,7 +122,7 @@ source_set("eg2_tests") { ...@@ -122,7 +122,7 @@ source_set("eg2_tests") {
"//build/config/ios:xctest_config", "//build/config/ios:xctest_config",
] ]
testonly = true testonly = true
sources = [ "page_info_egtest.mm" ] sources = [ "legacy_page_info_egtest.mm" ]
deps = [ deps = [
":constants", ":constants",
"//ios/chrome/browser/ui/popup_menu:constants", "//ios/chrome/browser/ui/popup_menu:constants",
......
...@@ -16,10 +16,10 @@ ...@@ -16,10 +16,10 @@
#error "This file requires ARC support." #error "This file requires ARC support."
#endif #endif
@interface PageInfoTestCase : ChromeTestCase @interface LegacyPageInfoTestCase : ChromeTestCase
@end @end
@implementation PageInfoTestCase @implementation LegacyPageInfoTestCase
// Tests that rotating the device will automatically dismiss the page info view. // Tests that rotating the device will automatically dismiss the page info view.
- (void)testShowPageInfoAndDismissOnDeviceRotation { - (void)testShowPageInfoAndDismissOnDeviceRotation {
......
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
#ifndef 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_PAGE_INFO_MEDIATOR_H_ #define IOS_CHROME_BROWSER_UI_PAGE_INFO_LEGACY_PAGE_INFO_MEDIATOR_H_
#import <Foundation/Foundation.h> #import <Foundation/Foundation.h>
...@@ -16,7 +16,7 @@ class GURL; ...@@ -16,7 +16,7 @@ class GURL;
// Mediator for the PageInfo, extracting the data to be displayed for the web // Mediator for the PageInfo, extracting the data to be displayed for the web
// informations. // informations.
@interface PageInfoMediator : NSObject @interface LegacyPageInfoMediator : NSObject
// For now this object only have static method. // For now this object only have static method.
- (instancetype)init NS_UNAVAILABLE; - (instancetype)init NS_UNAVAILABLE;
...@@ -29,4 +29,4 @@ class GURL; ...@@ -29,4 +29,4 @@ class GURL;
@end @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 @@ ...@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // 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/sys_string_conversions.h"
#include "base/strings/utf_string_conversions.h" #include "base/strings/utf_string_conversions.h"
...@@ -61,7 +61,7 @@ NSString* BuildMessage(NSArray<NSString*>* messageComponents) { ...@@ -61,7 +61,7 @@ NSString* BuildMessage(NSArray<NSString*>* messageComponents) {
} // namespace } // namespace
@implementation PageInfoMediator @implementation LegacyPageInfoMediator
+ (PageInfoConfig*)configurationForURL:(const GURL&)URL + (PageInfoConfig*)configurationForURL:(const GURL&)URL
SSLStatus:(web::SSLStatus&)status SSLStatus:(web::SSLStatus&)status
......
...@@ -17,9 +17,9 @@ ...@@ -17,9 +17,9 @@
#import "ios/chrome/browser/ui/commands/command_dispatcher.h" #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/commands/open_new_tab_command.h"
#import "ios/chrome/browser/ui/fullscreen/chrome_coordinator+fullscreen_disabling.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/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_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/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_params.h"
#import "ios/chrome/browser/url_loading/url_loading_service.h" #import "ios/chrome/browser/url_loading/url_loading_service.h"
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
OfflinePageTabHelper::FromWebState(webState)->presenting_offline_page(); OfflinePageTabHelper::FromWebState(webState)->presenting_offline_page();
PageInfoConfig* config = PageInfoConfig* config =
[PageInfoMediator configurationForURL:navItem->GetURL() [LegacyPageInfoMediator configurationForURL:navItem->GetURL()
SSLStatus:navItem->GetSSL() SSLStatus:navItem->GetSSL()
offlinePage:presentingOfflinePage]; offlinePage:presentingOfflinePage];
......
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