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

Unified Diff: chrome/browser/ui/views/frame/instant_overlay_controller_views.h

Issue 12387089: Instant: Rename 'preview' to 'overlay' (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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/views/frame/instant_overlay_controller_views.h
diff --git a/chrome/browser/ui/views/frame/instant_overlay_controller_views.h b/chrome/browser/ui/views/frame/instant_overlay_controller_views.h
new file mode 100644
index 0000000000000000000000000000000000000000..f0c79f744e9bf06928afe958481c55fe3ec5c356
--- /dev/null
+++ b/chrome/browser/ui/views/frame/instant_overlay_controller_views.h
@@ -0,0 +1,46 @@
+// 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 CHROME_BROWSER_UI_VIEWS_FRAME_INSTANT_OVERLAY_CONTROLLER_VIEWS_H_
+#define CHROME_BROWSER_UI_VIEWS_FRAME_INSTANT_OVERLAY_CONTROLLER_VIEWS_H_
+
+#include "base/basictypes.h"
+#include "base/compiler_specific.h"
+#include "base/memory/scoped_ptr.h"
+#include "chrome/browser/instant/instant_overlay_controller.h"
+
+class Browser;
+class ContentsContainer;
+
+namespace views {
+class WebView;
+}
+
+// A controller that manages the Views-specific Instant overlay. Its primary
+// role is to respond to display-state changes from the Instant model and
+// reflect this in the visibility and layout of the overlay.
+class InstantOverlayControllerViews : public InstantOverlayController {
+ public:
+ InstantOverlayControllerViews(Browser* browser, ContentsContainer* contents);
+ virtual ~InstantOverlayControllerViews();
+
+ views::WebView* overlay() { return overlay_.get(); }
+
+ views::WebView* release_overlay() WARN_UNUSED_RESULT {
+ return overlay_.release();
+ }
+
+ private:
+ // Overridden from InstantOverlayController:
+ virtual void OverlayStateChanged(const InstantOverlayModel& model) OVERRIDE;
+
+ ContentsContainer* const contents_;
+
+ // The view that contains the Instant overlay web contents.
+ scoped_ptr<views::WebView> overlay_;
+
+ DISALLOW_COPY_AND_ASSIGN(InstantOverlayControllerViews);
+};
+
+#endif // CHROME_BROWSER_UI_VIEWS_FRAME_INSTANT_OVERLAY_CONTROLLER_VIEWS_H_
« no previous file with comments | « chrome/browser/ui/views/frame/contents_container.cc ('k') | chrome/browser/ui/views/frame/instant_overlay_controller_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698