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

Side by Side Diff: chrome/browser/chromeos/dom_ui/menu_ui.h

Issue 6250123: WebUI: Change DOMUI to WebUI in two chromeos classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: avi review Created 9 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/dom_ui/menu_ui.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 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_CHROMEOS_DOM_UI_MENU_UI_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_DOM_UI_MENU_UI_H_
6 #define CHROME_BROWSER_CHROMEOS_DOM_UI_MENU_UI_H_ 6 #define CHROME_BROWSER_CHROMEOS_DOM_UI_MENU_UI_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
11 #include "chrome/browser/dom_ui/chrome_url_data_manager.h" 11 #include "chrome/browser/dom_ui/chrome_url_data_manager.h"
12 #include "chrome/browser/dom_ui/dom_ui.h" 12 #include "chrome/browser/dom_ui/dom_ui.h"
13 13
14 class DictionaryValue; 14 class DictionaryValue;
15 15
16 namespace ui{ 16 namespace ui{
17 class MenuModel; 17 class MenuModel;
18 } // namespace ui 18 } // namespace ui
19 19
20 namespace chromeos { 20 namespace chromeos {
21 21
22 class DOMUIMenuControl; 22 class WebUIMenuControl;
23 23
24 // MenuSourceDelegate class allows subclass to injects specific values 24 // MenuSourceDelegate class allows subclass to injects specific values
25 // to menu javascript code. 25 // to menu javascript code.
26 class MenuSourceDelegate { 26 class MenuSourceDelegate {
27 public: 27 public:
28 virtual ~MenuSourceDelegate() {} 28 virtual ~MenuSourceDelegate() {}
29 // Subclass can add extra parameters or replaces default configuration. 29 // Subclass can add extra parameters or replaces default configuration.
30 virtual void AddCustomConfigValues(DictionaryValue* config) const {}; 30 virtual void AddCustomConfigValues(DictionaryValue* config) const {}
31 31
32 // Subclass can add their values to |localized_strings| and those values 32 // Subclass can add their values to |localized_strings| and those values
33 // are used by JS template builder and could be accessed via JS class 33 // are used by JS template builder and could be accessed via JS class
34 // LocalStrings. 34 // LocalStrings.
35 virtual void AddLocalizedStrings(DictionaryValue* localized_strings) const {} 35 virtual void AddLocalizedStrings(DictionaryValue* localized_strings) const {}
36 }; 36 };
37 37
38 class MenuUI : public DOMUI { 38 class MenuUI : public DOMUI {
39 public: 39 public:
40 explicit MenuUI(TabContents* contents); 40 explicit MenuUI(TabContents* contents);
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 DISALLOW_COPY_AND_ASSIGN(MenuUI); 75 DISALLOW_COPY_AND_ASSIGN(MenuUI);
76 }; 76 };
77 77
78 // Base class for MenuUI's DOMMessageHandler. 78 // Base class for MenuUI's DOMMessageHandler.
79 class MenuHandlerBase : public DOMMessageHandler { 79 class MenuHandlerBase : public DOMMessageHandler {
80 public: 80 public:
81 MenuHandlerBase() : DOMMessageHandler() {} 81 MenuHandlerBase() : DOMMessageHandler() {}
82 82
83 // Returns the menu control that is associated with the 83 // Returns the menu control that is associated with the
84 // MenuUI. This may return null when menu is being deleted. 84 // MenuUI. This may return null when menu is being deleted.
85 DOMUIMenuControl* GetMenuControl(); 85 WebUIMenuControl* GetMenuControl();
86 86
87 // Returns the menu model for this menu ui. 87 // Returns the menu model for this menu ui.
88 // This may return null when menu is being deleted. 88 // This may return null when menu is being deleted.
89 ui::MenuModel* GetMenuModel(); 89 ui::MenuModel* GetMenuModel();
90 90
91 private: 91 private:
92 DISALLOW_COPY_AND_ASSIGN(MenuHandlerBase); 92 DISALLOW_COPY_AND_ASSIGN(MenuHandlerBase);
93 }; 93 };
94 94
95 } // namespace chromeos 95 } // namespace chromeos
96 96
97 #endif // CHROME_BROWSER_CHROMEOS_DOM_UI_MENU_UI_H_ 97 #endif // CHROME_BROWSER_CHROMEOS_DOM_UI_MENU_UI_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/dom_ui/menu_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698