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

Side by Side Diff: chrome/common/extensions/extension.cc

Issue 286001: Allow slightly larger browser and page action icons. (Closed)
Patch Set: erikkay comments Created 11 years, 2 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
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #include "chrome/common/extensions/extension.h" 5 #include "chrome/common/extensions/extension.h"
6 6
7 #include "app/resource_bundle.h" 7 #include "app/resource_bundle.h"
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 89
90 const char Extension::kMimeType[] = "application/x-chrome-extension"; 90 const char Extension::kMimeType[] = "application/x-chrome-extension";
91 91
92 const int Extension::kIconSizes[] = { 92 const int Extension::kIconSizes[] = {
93 EXTENSION_ICON_LARGE, 93 EXTENSION_ICON_LARGE,
94 EXTENSION_ICON_MEDIUM, 94 EXTENSION_ICON_MEDIUM,
95 EXTENSION_ICON_SMALL, 95 EXTENSION_ICON_SMALL,
96 EXTENSION_ICON_BITTY 96 EXTENSION_ICON_BITTY
97 }; 97 };
98 98
99 const int Extension::kPageActionIconMaxSize = 19;
100 const int Extension::kBrowserActionIconMaxSize = 19;
101
99 const char* Extension::kPermissionNames[] = { 102 const char* Extension::kPermissionNames[] = {
100 "tabs", 103 "tabs",
101 "bookmarks", 104 "bookmarks",
102 }; 105 };
103 const size_t Extension::kNumPermissions = 106 const size_t Extension::kNumPermissions =
104 arraysize(Extension::kPermissionNames); 107 arraysize(Extension::kPermissionNames);
105 108
106 Extension::~Extension() { 109 Extension::~Extension() {
107 } 110 }
108 111
(...skipping 1049 matching lines...) Expand 10 before | Expand all | Expand 10 after
1158 UserScript::PatternList::const_iterator pattern = 1161 UserScript::PatternList::const_iterator pattern =
1159 content_script->url_patterns().begin(); 1162 content_script->url_patterns().begin();
1160 for (; pattern != content_script->url_patterns().end(); ++pattern) { 1163 for (; pattern != content_script->url_patterns().end(); ++pattern) {
1161 if (pattern->match_subdomains() && pattern->host().empty()) 1164 if (pattern->match_subdomains() && pattern->host().empty())
1162 return true; 1165 return true;
1163 } 1166 }
1164 } 1167 }
1165 1168
1166 return false; 1169 return false;
1167 } 1170 }
OLDNEW
« no previous file with comments | « chrome/common/extensions/extension.h ('k') | chrome/renderer/resources/extension_process_bindings.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698