OLD | NEW |
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_WEB_INTENTS_SETTINGS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_WEB_INTENTS_SETTINGS_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_WEB_INTENTS_SETTINGS_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_WEB_INTENTS_SETTINGS_HANDLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
11 #include "chrome/browser/ui/intents/web_intents_model.h" | 11 #include "chrome/browser/ui/intents/web_intents_model.h" |
12 #include "chrome/browser/ui/webui/options/options_ui.h" | 12 #include "chrome/browser/ui/webui/options/options_ui.h" |
13 | 13 |
14 class WebIntentsRegistry; | 14 class WebIntentsRegistry; |
15 | 15 |
16 // Manage setting up the backing data for the web intents options page. | 16 // Manage setting up the backing data for the web intents options page. |
17 class WebIntentsSettingsHandler : public OptionsPageUIHandler, | 17 class WebIntentsSettingsHandler : public OptionsPageUIHandler, |
18 public WebIntentsModel::Observer { | 18 public WebIntentsModel::Observer { |
19 public: | 19 public: |
20 WebIntentsSettingsHandler(); | 20 WebIntentsSettingsHandler(); |
21 virtual ~WebIntentsSettingsHandler(); | 21 virtual ~WebIntentsSettingsHandler(); |
22 | 22 |
23 // OptionsPageUIHandler implementation. | 23 // OptionsPageUIHandler implementation. |
24 virtual void GetLocalizedValues(base::DictionaryValue* localized_strings); | 24 virtual void GetLocalizedValues( |
25 virtual void RegisterMessages(); | 25 base::DictionaryValue* localized_strings) OVERRIDE; |
| 26 virtual void RegisterMessages() OVERRIDE; |
26 | 27 |
27 // WebIntentsModel::Observer implementation. | 28 // WebIntentsModel::Observer implementation. |
28 virtual void TreeNodesAdded(ui::TreeModel* model, | 29 virtual void TreeNodesAdded(ui::TreeModel* model, |
29 ui::TreeModelNode* parent, | 30 ui::TreeModelNode* parent, |
30 int start, | 31 int start, |
31 int count) OVERRIDE; | 32 int count) OVERRIDE; |
32 virtual void TreeNodesRemoved(ui::TreeModel* model, | 33 virtual void TreeNodesRemoved(ui::TreeModel* model, |
33 ui::TreeModelNode* parent, | 34 ui::TreeModelNode* parent, |
34 int start, | 35 int start, |
35 int count) OVERRIDE; | 36 int count) OVERRIDE; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 // Backing data model for the intents list. | 68 // Backing data model for the intents list. |
68 scoped_ptr<WebIntentsModel> intents_tree_model_; | 69 scoped_ptr<WebIntentsModel> intents_tree_model_; |
69 | 70 |
70 // Flag to indicate whether there is a batch update in progress. | 71 // Flag to indicate whether there is a batch update in progress. |
71 bool batch_update_; | 72 bool batch_update_; |
72 | 73 |
73 DISALLOW_COPY_AND_ASSIGN(WebIntentsSettingsHandler); | 74 DISALLOW_COPY_AND_ASSIGN(WebIntentsSettingsHandler); |
74 }; | 75 }; |
75 | 76 |
76 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_WEB_INTENTS_SETTINGS_HANDLER_H_ | 77 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_WEB_INTENTS_SETTINGS_HANDLER_H_ |
OLD | NEW |