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

Side by Side Diff: chrome/browser/ui/webui/options2/options_ui2.h

Issue 9600036: Move Render(View|Widget)Host and associated classes to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments. Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_OPTIONS_UI2_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS2_OPTIONS_UI2_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_OPTIONS_UI2_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS2_OPTIONS_UI2_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 12 matching lines...) Expand all
23 // The WebUI for chrome:settings-frame. 23 // The WebUI for chrome:settings-frame.
24 class OptionsUI : public content::WebUIController, 24 class OptionsUI : public content::WebUIController,
25 public OptionsPageUIHandlerHost { 25 public OptionsPageUIHandlerHost {
26 public: 26 public:
27 explicit OptionsUI(content::WebUI* web_ui); 27 explicit OptionsUI(content::WebUI* web_ui);
28 virtual ~OptionsUI(); 28 virtual ~OptionsUI();
29 29
30 static RefCountedMemory* GetFaviconResourceBytes(); 30 static RefCountedMemory* GetFaviconResourceBytes();
31 31
32 // WebUIController implementation. 32 // WebUIController implementation.
33 virtual void RenderViewCreated(RenderViewHost* render_view_host) OVERRIDE; 33 virtual void RenderViewCreated(
34 virtual void RenderViewReused(RenderViewHost* render_view_host) OVERRIDE; 34 content::RenderViewHost* render_view_host) OVERRIDE;
35 virtual void RenderViewReused(
36 content::RenderViewHost* render_view_host) OVERRIDE;
35 virtual void DidBecomeActiveForReusedRenderView() OVERRIDE; 37 virtual void DidBecomeActiveForReusedRenderView() OVERRIDE;
36 38
37 // Overridden from OptionsPageUIHandlerHost: 39 // Overridden from OptionsPageUIHandlerHost:
38 virtual void InitializeHandlers() OVERRIDE; 40 virtual void InitializeHandlers() OVERRIDE;
39 41
40 private: 42 private:
41 // Adds OptionsPageUiHandler to the handlers list if handler is enabled. 43 // Adds OptionsPageUiHandler to the handlers list if handler is enabled.
42 void AddOptionsPageUIHandler(base::DictionaryValue* localized_strings, 44 void AddOptionsPageUIHandler(base::DictionaryValue* localized_strings,
43 OptionsPageUIHandler* handler); 45 OptionsPageUIHandler* handler);
44 46
45 // Sets the WebUI CommandLineString property with arguments passed while 47 // Sets the WebUI CommandLineString property with arguments passed while
46 // launching chrome. 48 // launching chrome.
47 void SetCommandLineString(RenderViewHost* render_view_host); 49 void SetCommandLineString(content::RenderViewHost* render_view_host);
48 50
49 bool initialized_handlers_; 51 bool initialized_handlers_;
50 52
51 std::vector<OptionsPageUIHandler*> handlers_; 53 std::vector<OptionsPageUIHandler*> handlers_;
52 54
53 DISALLOW_COPY_AND_ASSIGN(OptionsUI); 55 DISALLOW_COPY_AND_ASSIGN(OptionsUI);
54 }; 56 };
55 57
56 } // namespace options2 58 } // namespace options2
57 59
58 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_OPTIONS_UI2_H_ 60 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS2_OPTIONS_UI2_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options/options_ui.cc ('k') | chrome/browser/ui/webui/options2/options_ui2.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698