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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_WEBUI_UBER_UBER_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_UBER_UBER_UI_H_
7 #pragma once
8
9 #include <string>
10
11 #include "base/memory/scoped_vector.h"
12 #include "base/values.h"
13 #include "chrome/browser/ui/webui/chrome_web_ui.h"
14
15 // The ChromeWebUI class for the uber page (chrome://chrome). It manages the
16 // UI for the uber page (navigation bar and so forth) as well as ChromeWebUI
17 // objects for pages that appear in the uber page.
18 class UberUI : public ChromeWebUI {
19 public:
20 explicit UberUI(TabContents* contents);
21 virtual ~UberUI();
22
23 // ChromeWebUI implementation.
24 virtual void OnWebUISend(const GURL& source_url,
25 const std::string& message,
26 const ListValue& args) OVERRIDE;
27
28 // We forward these to |sub_uis_|.
29 virtual void RenderViewCreated(RenderViewHost* render_view_host) OVERRIDE;
30 virtual void RenderViewReused(RenderViewHost* render_view_host) OVERRIDE;
31 virtual void DidBecomeActiveForReusedRenderView() OVERRIDE;
32
33 private:
34 // Collection of WebUIs for the subpages within uber.
35 ScopedVector<ChromeWebUI> sub_uis_;
36 };
37
38 #endif // CHROME_BROWSER_UI_WEBUI_UBER_UBER_UI_H_
OLDNEW
« 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