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

Unified Diff: ios/chrome/browser/ui/open_in_controller.h

Issue 2589803002: Upstream Chrome on iOS source code [6/11]. (Closed)
Patch Set: Created 4 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/chrome/browser/ui/omnibox_perftest.mm ('k') | ios/chrome/browser/ui/open_in_controller.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/open_in_controller.h
diff --git a/ios/chrome/browser/ui/open_in_controller.h b/ios/chrome/browser/ui/open_in_controller.h
new file mode 100644
index 0000000000000000000000000000000000000000..8adeaf5802085d4ddc9c9714b3243e1503489152
--- /dev/null
+++ b/ios/chrome/browser/ui/open_in_controller.h
@@ -0,0 +1,44 @@
+// Copyright 2012 The Chromium Authors. All rights reserved.
+// 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_OPEN_IN_CONTROLLER_H_
+#define IOS_CHROME_BROWSER_UI_OPEN_IN_CONTROLLER_H_
+
+#import <UIKit/UIKit.h>
+
+#include <memory>
+
+#include "base/mac/scoped_nsobject.h"
+#include "base/memory/ref_counted.h"
+#import "ios/chrome/browser/ui/open_in_toolbar.h"
+#include "url/gurl.h"
+
+namespace net {
+class URLRequestContextGetter;
+}
+
+@class CRWWebController;
+
+// Class used to handle opening files in other applications.
+@interface OpenInController : NSObject<UIGestureRecognizerDelegate,
+ UIDocumentInteractionControllerDelegate>
+// Designated initializer.
+- (id)initWithRequestContext:(net::URLRequestContextGetter*)requestContext
+ webController:(CRWWebController*)webController;
+
+// Removes the |openInToolbar_| from the |webController_|'s view and resets the
+// variables specific to the loaded document.
+- (void)disable;
+
+// Disconnects the controller from its CRWWebController. Should be called when
+// the CRWWebController is being torn down.
+- (void)detachFromWebController;
+
+// Adds the |openInToolbar_| to the |webController_|'s view and sets the url and
+// the filename for the currently loaded document.
+- (void)enableWithDocumentURL:(const GURL&)documentURL
+ suggestedFilename:(NSString*)suggestedFilename;
+@end
+
+#endif // IOS_CHROME_BROWSER_UI_OPEN_IN_CONTROLLER_H_
« no previous file with comments | « ios/chrome/browser/ui/omnibox_perftest.mm ('k') | ios/chrome/browser/ui/open_in_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698