Index: ios/chrome/browser/tabs/tab_snapshotting_delegate.h |
diff --git a/ios/chrome/browser/tabs/tab_snapshotting_delegate.h b/ios/chrome/browser/tabs/tab_snapshotting_delegate.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..aaf8b48d4996020a2fecc63d495b8cee5e34b01d |
--- /dev/null |
+++ b/ios/chrome/browser/tabs/tab_snapshotting_delegate.h |
@@ -0,0 +1,21 @@ |
+// Copyright 2014 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_TABS_TAB_SNAPSHOTTING_DELEGATE_H_ |
+#define IOS_CHROME_BROWSER_TABS_TAB_SNAPSHOTTING_DELEGATE_H_ |
+ |
+#import <UIKit/UIKit.h> |
+ |
+@class Tab; |
+ |
+// A protocol implemented by a snapshotting delegate of Tab. |
+@protocol TabSnapshottingDelegate |
+ |
+// Returns the rect (in the |tab.webController.view|'s coordinate space) that is |
+// used to render the page's content. |
+- (CGRect)snapshotContentAreaForTab:(Tab*)tab; |
+ |
+@end |
+ |
+#endif // IOS_CHROME_BROWSER_TABS_TAB_SNAPSHOTTING_DELEGATE_H_ |