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

Unified Diff: chrome/browser/ui/cocoa/tab_contents/overlayable_contents_controller.h

Issue 22694002: InstantExtended: Nuke InstantOverlayController. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments. Created 7 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/tab_contents/overlayable_contents_controller.h
diff --git a/chrome/browser/ui/cocoa/tab_contents/overlayable_contents_controller.h b/chrome/browser/ui/cocoa/tab_contents/overlayable_contents_controller.h
index 6033cba607247eeca4bb1fb7ea9572032b5830be..ceb452a34bcf84d7990eed25a19e1c738a345d63 100644
--- a/chrome/browser/ui/cocoa/tab_contents/overlayable_contents_controller.h
+++ b/chrome/browser/ui/cocoa/tab_contents/overlayable_contents_controller.h
@@ -9,40 +9,23 @@
#include "base/mac/scoped_nsobject.h"
#include "base/memory/scoped_ptr.h"
-#include "chrome/common/instant_types.h"
class Browser;
-class InstantOverlayControllerMac;
namespace content {
class WebContents;
}
-// OverlayableContentsController manages the display of up to two tab contents
-// views. It is primarily for use with Instant results. This class supports the
-// notion of an "active" view vs. an "overlay" tab contents view.
+// OverlayableContentsController is an obsolete wrapper holding the view where a
+// tab's WebContents is displayed. In the old Chrome Instant implementation it
+// multiplexed between the tab's contents and an overlay's contents. Now there
+// is no overlay, but ripping this class out entirely is hard.
//
-// The "active" view is a container view that can be retrieved using
-// |-activeContainer|. Its contents are meant to be managed by an external
-// class.
-//
-// The "overlay" can be set using |-showOverlay:| and |-hideOverlay|. When an
-// overlay is set, the active view is hidden (but stays in the view hierarchy).
-// When the overlay is removed, the active view is reshown.
+// TODO(sail): Remove this class and replace it with something saner.
samarth 2013/08/12 20:34:20 FYI sail is back so you can get his view on this :
@interface OverlayableContentsController : NSViewController {
@private
// Container view for the "active" contents.
base::scoped_nsobject<NSView> activeContainer_;
-
- // The overlay WebContents. Will be NULL if no overlay is currently showing.
- content::WebContents* overlayContents_; // weak
-
- // C++ bridge to the Instant model change interface.
- scoped_ptr<InstantOverlayControllerMac> instantOverlayController_;
-
- // The desired height of the overlay and units.
- CGFloat overlayHeight_;
- InstantSizeUnits overlayHeightUnits_;
}
@property(readonly, nonatomic) NSView* activeContainer;
@@ -50,22 +33,6 @@ class WebContents;
// Initialization.
- (id)initWithBrowser:(Browser*)browser;
-// Sets the current overlay and installs its WebContentsView into the view
-// hierarchy. Hides the active view. If |overlay| is NULL then closes the
-// current overlay and shows the active view.
-- (void)setOverlay:(content::WebContents*)overlay
- height:(CGFloat)height
- heightUnits:(InstantSizeUnits)heightUnits
- drawDropShadow:(BOOL)drawDropShadow;
-
-// Called when a tab with |contents| is activated, so that we can check to see
-// if it's the overlay being activated (and adjust internal state accordingly).
-- (void)onActivateTabWithContents:(content::WebContents*)contents;
-
-- (InstantOverlayControllerMac*)instantOverlayController;
-
-- (BOOL)isShowingOverlay;
-
@end
#endif // CHROME_BROWSER_UI_COCOA_TAB_CONTENTS_OVERLAYABLE_CONTENTS_CONTROLLER_H_

Powered by Google App Engine
This is Rietveld 408576698