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

Unified Diff: chrome/browser/ui/intents/web_intents_model.h

Issue 7796020: Rename intents_settings_handler files to web_intents_settings_handler. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Merge to head Created 9 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/intents/intents_model_unittest.cc ('k') | chrome/browser/ui/intents/web_intents_model.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/intents/web_intents_model.h
diff --git a/chrome/browser/ui/intents/intents_model.h b/chrome/browser/ui/intents/web_intents_model.h
similarity index 70%
rename from chrome/browser/ui/intents/intents_model.h
rename to chrome/browser/ui/intents/web_intents_model.h
index 14e8bbf342bab598cb32e0899c88e855995305ae..2d95cc7d299736ac7b5b376ed54c31f3340855e2 100644
--- a/chrome/browser/ui/intents/intents_model.h
+++ b/chrome/browser/ui/intents/web_intents_model.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_INTENTS_INTENTS_MODEL_H_
-#define CHROME_BROWSER_UI_INTENTS_INTENTS_MODEL_H_
+#ifndef CHROME_BROWSER_UI_INTENTS_WEB_INTENTS_MODEL_H_
+#define CHROME_BROWSER_UI_INTENTS_WEB_INTENTS_MODEL_H_
#pragma once
#include "base/values.h"
@@ -17,12 +17,12 @@ class WebIntentsRegistry;
// children are TYPE_SERVICE nodes with title=origin, and
// will be of type ServiceTreeNode with data on individual
// services.
-class IntentsTreeNode : public ui::TreeNode<IntentsTreeNode> {
+class WebIntentsTreeNode : public ui::TreeNode<WebIntentsTreeNode> {
public:
- IntentsTreeNode();
- explicit IntentsTreeNode(const string16& title);
+ WebIntentsTreeNode();
+ explicit WebIntentsTreeNode(const string16& title);
- virtual ~IntentsTreeNode();
+ virtual ~WebIntentsTreeNode();
enum NodeType {
TYPE_ROOT,
@@ -33,8 +33,8 @@ class IntentsTreeNode : public ui::TreeNode<IntentsTreeNode> {
NodeType Type() const { return type_; }
protected:
- IntentsTreeNode(const string16& title, NodeType type)
- : ui::TreeNode<IntentsTreeNode>(title),
+ WebIntentsTreeNode(const string16& title, NodeType type)
+ : ui::TreeNode<WebIntentsTreeNode>(title),
type_(type) {}
private:
@@ -42,7 +42,7 @@ class IntentsTreeNode : public ui::TreeNode<IntentsTreeNode> {
};
// Tree node representing particular services presented by an origin.
-class ServiceTreeNode : public IntentsTreeNode {
+class ServiceTreeNode : public WebIntentsTreeNode {
public:
explicit ServiceTreeNode(const string16& title);
virtual ~ServiceTreeNode();
@@ -76,30 +76,30 @@ class ServiceTreeNode : public IntentsTreeNode {
};
// UI-backing tree model of the data in the WebIntentsRegistry.
-class IntentsModel : public ui::TreeNodeModel<IntentsTreeNode>,
- public WebIntentsRegistry::Consumer {
+class WebIntentsModel : public ui::TreeNodeModel<WebIntentsTreeNode>,
+ public WebIntentsRegistry::Consumer {
public:
// Because nodes are fetched in a background thread, they are not
// present at the time the Model is created. The Model then notifies its
// observers for every item added.
class Observer : public ui::TreeModelObserver {
public:
- virtual void TreeModelBeginBatch(IntentsModel* model) {}
- virtual void TreeModelEndBatch(IntentsModel* model) {}
+ virtual void TreeModelBeginBatch(WebIntentsModel* model) {}
+ virtual void TreeModelEndBatch(WebIntentsModel* model) {}
};
- explicit IntentsModel(WebIntentsRegistry* intents_registry);
- virtual ~IntentsModel();
+ explicit WebIntentsModel(WebIntentsRegistry* intents_registry);
+ virtual ~WebIntentsModel();
- void AddIntentsTreeObserver(Observer* observer);
- void RemoveIntentsTreeObserver(Observer* observer);
+ void AddWebIntentsTreeObserver(Observer* observer);
+ void RemoveWebIntentsTreeObserver(Observer* observer);
- string16 GetTreeNodeId(IntentsTreeNode* node);
- IntentsTreeNode* GetTreeNode(std::string path_id);
- void GetChildNodeList(IntentsTreeNode* parent, int start, int count,
+ string16 GetTreeNodeId(WebIntentsTreeNode* node);
+ WebIntentsTreeNode* GetTreeNode(std::string path_id);
+ void GetChildNodeList(WebIntentsTreeNode* parent, int start, int count,
base::ListValue* nodes);
- void GetIntentsTreeNodeDictionary(const IntentsTreeNode& node,
- base::DictionaryValue* dict);
+ void GetWebIntentsTreeNodeDictionary(const WebIntentsTreeNode& node,
+ base::DictionaryValue* dict);
virtual void OnIntentsQueryDone(
WebIntentsRegistry::QueryID query_id,
@@ -125,4 +125,4 @@ class IntentsModel : public ui::TreeNodeModel<IntentsTreeNode>,
int batch_update_;
};
-#endif // CHROME_BROWSER_UI_INTENTS_INTENTS_MODEL_H_
+#endif // CHROME_BROWSER_UI_INTENTS_WEB_INTENTS_MODEL_H_
« no previous file with comments | « chrome/browser/ui/intents/intents_model_unittest.cc ('k') | chrome/browser/ui/intents/web_intents_model.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698