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

Unified Diff: chrome/common/extensions/extension_sidebar_defaults.h

Issue 9006027: Rip Out the Sidebar API (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 8 years, 11 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
Index: chrome/common/extensions/extension_sidebar_defaults.h
===================================================================
--- chrome/common/extensions/extension_sidebar_defaults.h (revision 116830)
+++ chrome/common/extensions/extension_sidebar_defaults.h (working copy)
@@ -1,47 +0,0 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef CHROME_COMMON_EXTENSIONS_EXTENSION_SIDEBAR_DEFAULTS_H_
-#define CHROME_COMMON_EXTENSIONS_EXTENSION_SIDEBAR_DEFAULTS_H_
-#pragma once
-
-#include <string>
-
-#include "base/string16.h"
-#include "googleurl/src/gurl.h"
-
-// ExtensionSidebarDefaults encapsulates the default parameters of a sidebar,
-// as defined in the extension manifest.
-class ExtensionSidebarDefaults {
- public:
- // Default title, stores manifest default_title key value.
- void set_default_title(const string16& title) {
- default_title_ = title;
- }
- const string16& default_title() const { return default_title_; }
-
- // Default icon path, stores manifest default_icon key value.
- void set_default_icon_path(const std::string& path) {
- default_icon_path_ = path;
- }
- const std::string& default_icon_path() const {
- return default_icon_path_;
- }
-
- // A resolved |url| to extension resource (manifest default_page key value)
- // to navigate sidebar to by default.
- void set_default_page(const GURL& url) {
- default_page_ = url;
- }
- const GURL& default_page() const {
- return default_page_;
- }
-
- private:
- string16 default_title_;
- std::string default_icon_path_;
- GURL default_page_;
-};
-
-#endif // CHROME_COMMON_EXTENSIONS_EXTENSION_SIDEBAR_DEFAULTS_H_
« no previous file with comments | « chrome/common/extensions/extension_manifests_unittest.cc ('k') | chrome/common/extensions/extension_sidebar_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698