OLD | NEW |
---|---|
(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 class UberUI : public ChromeWebUI { | |
James Hawkins
2011/12/13 00:22:15
Document the class.
Evan Stade
2011/12/13 01:00:40
Done.
| |
16 public: | |
17 explicit UberUI(TabContents* contents); | |
18 virtual ~UberUI(); | |
19 | |
20 virtual void OnWebUISend(const GURL& source_url, | |
James Hawkins
2011/12/13 00:22:15
// ChromeWebUI implementation.
Evan Stade
2011/12/13 01:00:40
Done.
| |
21 const std::string& message, | |
22 const ListValue& args) OVERRIDE; | |
23 | |
24 // WebUI overrides. We forward these to |sub_uis_|. | |
25 virtual void RenderViewCreated(RenderViewHost* render_view_host) OVERRIDE; | |
26 virtual void RenderViewReused(RenderViewHost* render_view_host) OVERRIDE; | |
27 virtual void DidBecomeActiveForReusedRenderView() OVERRIDE; | |
28 | |
29 private: | |
30 // Collection of WebUIs for the subpages within uber. | |
31 ScopedVector<ChromeWebUI> sub_uis_; | |
32 }; | |
33 | |
34 #endif // CHROME_BROWSER_UI_WEBUI_UBER_UBER_UI_H_ | |
OLD | NEW |