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

Side by Side Diff: chrome/browser/ui/webui/options/options_ui.h

Issue 8937011: Revert "Options2: Pull the trigger." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 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 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_OPTIONS_OPTIONS_UI_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_UI_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_UI_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 private: 66 private:
67 DISALLOW_COPY_AND_ASSIGN(OptionsPageUIHandler); 67 DISALLOW_COPY_AND_ASSIGN(OptionsPageUIHandler);
68 }; 68 };
69 69
70 // An interface for common operations that a host of OptionsPageUIHandlers 70 // An interface for common operations that a host of OptionsPageUIHandlers
71 // should provide. 71 // should provide.
72 class OptionsPageUIHandlerHost { 72 class OptionsPageUIHandlerHost {
73 public: 73 public:
74 virtual void InitializeHandlers() = 0; 74 virtual void InitializeHandlers() = 0;
75
76 protected:
77 virtual ~OptionsPageUIHandlerHost() {}
78 }; 75 };
79 76
80 // The WebUI for chrome:settings. 77 // The WebUI for chrome:settings.
81 class OptionsUI : public ChromeWebUI, 78 class OptionsUI : public ChromeWebUI,
82 public OptionsPageUIHandlerHost { 79 public OptionsPageUIHandlerHost {
83 public: 80 public:
84 explicit OptionsUI(TabContents* contents); 81 explicit OptionsUI(TabContents* contents);
85 virtual ~OptionsUI(); 82 virtual ~OptionsUI();
86 83
87 static RefCountedMemory* GetFaviconResourceBytes(); 84 static RefCountedMemory* GetFaviconResourceBytes();
(...skipping 14 matching lines...) Expand all
102 // Sets the WebUI CommandLineString property with arguments passed while 99 // Sets the WebUI CommandLineString property with arguments passed while
103 // launching chrome. 100 // launching chrome.
104 void SetCommandLineString(RenderViewHost* render_view_host); 101 void SetCommandLineString(RenderViewHost* render_view_host);
105 102
106 bool initialized_handlers_; 103 bool initialized_handlers_;
107 104
108 DISALLOW_COPY_AND_ASSIGN(OptionsUI); 105 DISALLOW_COPY_AND_ASSIGN(OptionsUI);
109 }; 106 };
110 107
111 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_UI_H_ 108 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_OPTIONS_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options/chromeos/bluetooth_options_handler.cc ('k') | chrome/browser/ui/webui/options2/OWNERS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698