OLD | NEW |
(Empty) | |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef IOS_CHROME_BROWSER_UI_SETTINGS_SETTINGS_UTILS_H_ |
| 6 #define IOS_CHROME_BROWSER_UI_SETTINGS_SETTINGS_UTILS_H_ |
| 7 |
| 8 #import <UIKit/UIKit.h> |
| 9 |
| 10 #include "ios/chrome/browser/procedural_block_types.h" |
| 11 |
| 12 namespace ios_internal_settings { |
| 13 |
| 14 // Returns a ProceduralBlockWithURL that sends a chrome command up the |
| 15 // |responder|'s responder chain that dismisses settings and opens url |
| 16 // (parameter to the block) in a new tab. |
| 17 ProceduralBlockWithURL BlockToOpenURL(UIResponder* responder); |
| 18 |
| 19 } // namespace ios_internal_settings |
| 20 |
| 21 #endif // IOS_CHROME_BROWSER_UI_SETTINGS_SETTINGS_UTILS_H_ |
OLD | NEW |