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

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

Issue 3250002: Add an accordian effect to NTP. (Closed)
Patch Set: Fix menu positioning when there is a scrollbar. Created 10 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_COMMON_EXTENSIONS_EXTENSION_H_ 5 #ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_H_
6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_H_ 6 #define CHROME_COMMON_EXTENSIONS_EXTENSION_H_
7 #pragma once 7 #pragma once
8 8
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 // an empty FilePath if the extension does not have that icon. 325 // an empty FilePath if the extension does not have that icon.
326 ExtensionResource GetIconResource(Icons icon); 326 ExtensionResource GetIconResource(Icons icon);
327 327
328 // Looks for an extension icon of dimension |icon|. If not found, checks if 328 // Looks for an extension icon of dimension |icon|. If not found, checks if
329 // the next larger size exists (until one is found or the end is reached). If 329 // the next larger size exists (until one is found or the end is reached). If
330 // an icon is found, the path is returned in |resource| and the dimension 330 // an icon is found, the path is returned in |resource| and the dimension
331 // found is returned to the caller (as function return value). 331 // found is returned to the caller (as function return value).
332 // NOTE: |resource| is not guaranteed to be non-empty. 332 // NOTE: |resource| is not guaranteed to be non-empty.
333 Icons GetIconResourceAllowLargerSize(ExtensionResource* resource, Icons icon); 333 Icons GetIconResourceAllowLargerSize(ExtensionResource* resource, Icons icon);
334 334
335 // See GetIconPathAllowLargerSize. Returns a chrome-extension:// URL 335 GURL GetIconURL(Icons icon);
336 // instead of an ExtensionResource. 336 GURL GetIconURLAllowLargerSize(Icons icon);
337 GURL GetIconUrlAllowLargerSize(Icons icon);
338 337
339 const DictionaryValue* manifest_value() const { 338 const DictionaryValue* manifest_value() const {
340 return manifest_value_.get(); 339 return manifest_value_.get();
341 } 340 }
342 341
343 const std::string default_locale() const { return default_locale_; } 342 const std::string default_locale() const { return default_locale_; }
344 343
345 // Chrome URL overrides (see ExtensionOverrideUI). 344 // Chrome URL overrides (see ExtensionOverrideUI).
346 const URLOverrideMap& GetChromeURLOverrides() const { 345 const URLOverrideMap& GetChromeURLOverrides() const {
347 return chrome_url_overrides_; 346 return chrome_url_overrides_;
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
614 scoped_ptr<DictionaryValue> extension_manifest; 613 scoped_ptr<DictionaryValue> extension_manifest;
615 std::string extension_id; 614 std::string extension_id;
616 FilePath extension_path; 615 FilePath extension_path;
617 Extension::Location extension_location; 616 Extension::Location extension_location;
618 617
619 private: 618 private:
620 DISALLOW_COPY_AND_ASSIGN(ExtensionInfo); 619 DISALLOW_COPY_AND_ASSIGN(ExtensionInfo);
621 }; 620 };
622 621
623 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_ 622 #endif // CHROME_COMMON_EXTENSIONS_EXTENSION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698