Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(229)

Side by Side Diff: ios/clean/chrome/app/steps/launch_to_foreground.mm

Issue 2592983003: [Clean Skeleton] Migrate code to clean/ (Closed)
Patch Set: Rebased Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // ====== New Architecture ===== 5 // ====== New Architecture =====
6 // = This code is only used in the new iOS Chrome architecture. = 6 // = This code is only used in the new iOS Chrome architecture. =
7 // ============================================================================ 7 // ============================================================================
8 8
9 #import "ios/chrome/app/steps/launch_to_foreground.h" 9 #import "ios/clean/chrome/app/steps/launch_to_foreground.h"
10 10
11 #include "components/content_settings/core/browser/host_content_settings_map.h" 11 #include "components/content_settings/core/browser/host_content_settings_map.h"
12 #include "ios/chrome/app/application_state.h"
13 #include "ios/chrome/browser/application_context.h" 12 #include "ios/chrome/browser/application_context.h"
14 #include "ios/chrome/browser/browser_state/chrome_browser_state.h" 13 #include "ios/chrome/browser/browser_state/chrome_browser_state.h"
15 #include "ios/chrome/browser/content_settings/host_content_settings_map_factory. h" 14 #include "ios/chrome/browser/content_settings/host_content_settings_map_factory. h"
15 #include "ios/clean/chrome/app/application_state.h"
16 #include "ios/web/public/web_capabilities.h" 16 #include "ios/web/public/web_capabilities.h"
17 #include "ios/web/public/web_thread.h" 17 #include "ios/web/public/web_thread.h"
18 18
19 #if !defined(__has_feature) || !__has_feature(objc_arc) 19 #if !defined(__has_feature) || !__has_feature(objc_arc)
20 #error "This file requires ARC support." 20 #error "This file requires ARC support."
21 #endif 21 #endif
22 22
23 // Temporary class to trigger URL-opening events from a shake gesture. 23 // Temporary class to trigger URL-opening events from a shake gesture.
24 @interface ShakeCatchingWindow : UIWindow 24 @interface ShakeCatchingWindow : UIWindow
25 @end 25 @end
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
69 if (motion == UIEventSubtypeMotionShake) { 69 if (motion == UIEventSubtypeMotionShake) {
70 UIApplication* app = [UIApplication sharedApplication]; 70 UIApplication* app = [UIApplication sharedApplication];
71 [app.delegate application:app 71 [app.delegate application:app
72 openURL:[NSURL URLWithString:@"https://www.google.com"] 72 openURL:[NSURL URLWithString:@"https://www.google.com"]
73 options:@{}]; 73 options:@{}];
74 } 74 }
75 [super motionEnded:motion withEvent:event]; 75 [super motionEnded:motion withEvent:event];
76 } 76 }
77 77
78 @end 78 @end
OLDNEW
« no previous file with comments | « ios/clean/chrome/app/steps/launch_to_foreground.h ('k') | ios/clean/chrome/app/steps/tab_grid_coordinator+application_step.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698