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

Unified Diff: chrome/browser/ui/webui/uber/uber_ui.h

Issue 8889041: first cut at uber page (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: mac compile Created 9 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 | « chrome/browser/ui/webui/chrome_web_ui_factory.cc ('k') | chrome/browser/ui/webui/uber/uber_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/uber/uber_ui.h
diff --git a/chrome/browser/ui/webui/uber/uber_ui.h b/chrome/browser/ui/webui/uber/uber_ui.h
new file mode 100644
index 0000000000000000000000000000000000000000..546c6086ed067961bcc03b8d5010dde512d27e91
--- /dev/null
+++ b/chrome/browser/ui/webui/uber/uber_ui.h
@@ -0,0 +1,38 @@
+// Copyright (c) 2011 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_WEBUI_UBER_UBER_UI_H_
+#define CHROME_BROWSER_UI_WEBUI_UBER_UBER_UI_H_
+#pragma once
+
+#include <string>
+
+#include "base/memory/scoped_vector.h"
+#include "base/values.h"
+#include "chrome/browser/ui/webui/chrome_web_ui.h"
+
+// The ChromeWebUI class for the uber page (chrome://chrome). It manages the
+// UI for the uber page (navigation bar and so forth) as well as ChromeWebUI
+// objects for pages that appear in the uber page.
+class UberUI : public ChromeWebUI {
+ public:
+ explicit UberUI(TabContents* contents);
+ virtual ~UberUI();
+
+ // ChromeWebUI implementation.
+ virtual void OnWebUISend(const GURL& source_url,
+ const std::string& message,
+ const ListValue& args) OVERRIDE;
+
+ // We forward these to |sub_uis_|.
+ virtual void RenderViewCreated(RenderViewHost* render_view_host) OVERRIDE;
+ virtual void RenderViewReused(RenderViewHost* render_view_host) OVERRIDE;
+ virtual void DidBecomeActiveForReusedRenderView() OVERRIDE;
+
+ private:
+ // Collection of WebUIs for the subpages within uber.
+ ScopedVector<ChromeWebUI> sub_uis_;
+};
+
+#endif // CHROME_BROWSER_UI_WEBUI_UBER_UBER_UI_H_
« no previous file with comments | « chrome/browser/ui/webui/chrome_web_ui_factory.cc ('k') | chrome/browser/ui/webui/uber/uber_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698