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

Side by Side Diff: chrome/browser/ui/search_engines/template_url_table_model.h

Issue 9811022: Misc. small cleanups to minimize TemplateURL refactoring diffs: (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: 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_SEARCH_ENGINES_TEMPLATE_URL_TABLE_MODEL_H_ 5 #ifndef CHROME_BROWSER_UI_SEARCH_ENGINES_TEMPLATE_URL_TABLE_MODEL_H_
6 #define CHROME_BROWSER_UI_SEARCH_ENGINES_TEMPLATE_URL_TABLE_MODEL_H_ 6 #define CHROME_BROWSER_UI_SEARCH_ENGINES_TEMPLATE_URL_TABLE_MODEL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 virtual SkBitmap GetIcon(int row) OVERRIDE; 48 virtual SkBitmap GetIcon(int row) OVERRIDE;
49 virtual void SetObserver(ui::TableModelObserver* observer) OVERRIDE; 49 virtual void SetObserver(ui::TableModelObserver* observer) OVERRIDE;
50 virtual bool HasGroups() OVERRIDE; 50 virtual bool HasGroups() OVERRIDE;
51 virtual Groups GetGroups() OVERRIDE; 51 virtual Groups GetGroups() OVERRIDE;
52 virtual int GetGroupID(int row) OVERRIDE; 52 virtual int GetGroupID(int row) OVERRIDE;
53 53
54 // Removes the entry at the specified index. 54 // Removes the entry at the specified index.
55 void Remove(int index); 55 void Remove(int index);
56 56
57 // Adds a new entry at the specified index. 57 // Adds a new entry at the specified index.
58 void Add(int index, TemplateURL* turl); 58 void Add(int index,
59 const string16& short_name,
60 const string16& keyword,
61 const std::string& url);
59 62
60 // Update the entry at the specified index. 63 // Update the entry at the specified index.
61 void ModifyTemplateURL(int index, 64 void ModifyTemplateURL(int index,
62 const string16& title, 65 const string16& title,
63 const string16& keyword, 66 const string16& keyword,
64 const std::string& url); 67 const std::string& url);
65 68
66 // Reloads the icon at the specified index. 69 // Reloads the icon at the specified index.
67 void ReloadIcon(int index); 70 void ReloadIcon(int index);
68 71
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 114
112 // Index of the last search engine in entries_. This is used to determine the 115 // Index of the last search engine in entries_. This is used to determine the
113 // group boundaries. 116 // group boundaries.
114 int last_search_engine_index_; 117 int last_search_engine_index_;
115 118
116 DISALLOW_COPY_AND_ASSIGN(TemplateURLTableModel); 119 DISALLOW_COPY_AND_ASSIGN(TemplateURLTableModel);
117 }; 120 };
118 121
119 122
120 #endif // CHROME_BROWSER_UI_SEARCH_ENGINES_TEMPLATE_URL_TABLE_MODEL_H_ 123 #endif // CHROME_BROWSER_UI_SEARCH_ENGINES_TEMPLATE_URL_TABLE_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698