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

Unified Diff: chrome/browser/ui/views/ash/app_list/extension_app_item.h

Issue 10831173: views: Now remove the old files from ash/app_list. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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/browser/ui/views/ash/app_list/extension_app_item.h
diff --git a/chrome/browser/ui/views/ash/app_list/extension_app_item.h b/chrome/browser/ui/views/ash/app_list/extension_app_item.h
deleted file mode 100644
index 4a85035248461a554bdefd3f62659ac768fd7db6..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/views/ash/app_list/extension_app_item.h
+++ /dev/null
@@ -1,74 +0,0 @@
-// Copyright (c) 2012 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_BROWSER_UI_VIEWS_ASH_APP_LIST_EXTENSION_APP_ITEM_H_
-#define CHROME_BROWSER_UI_VIEWS_ASH_APP_LIST_EXTENSION_APP_ITEM_H_
-
-#include <string>
-
-#include "base/memory/scoped_ptr.h"
-#include "chrome/browser/extensions/image_loading_tracker.h"
-#include "chrome/browser/ui/views/ash/app_list/chrome_app_list_item.h"
-#include "ui/base/models/simple_menu_model.h"
-
-class ExtensionResource;
-class Profile;
-class SkBitmap;
-
-namespace extensions {
-class Extension;
-}
-
-// ExtensionAppItem represents an extension app in app list.
-class ExtensionAppItem : public ChromeAppListItem,
- public ImageLoadingTracker::Observer,
- public ui::SimpleMenuModel::Delegate {
- public:
- ExtensionAppItem(Profile* profile, const extensions::Extension* extension);
- virtual ~ExtensionAppItem();
-
- // Gets extension associated with this model. Returns NULL if extension
- // no longer exists.
- const extensions::Extension* GetExtension() const;
-
- const std::string& extension_id() const {
- return extension_id_;
- }
-
- private:
- // Loads extension icon.
- void LoadImage(const extensions::Extension* extension);
-
- void ShowExtensionOptions();
- void StartExtensionUninstall();
-
- // Overridden from ImageLoadingTracker::Observer:
- virtual void OnImageLoaded(const gfx::Image& image,
- const std::string& extension_id,
- int tracker_index) OVERRIDE;
-
- // Overridden from ui::SimpleMenuModel::Delegate:
- virtual bool IsItemForCommandIdDynamic(int command_id) const OVERRIDE;
- virtual string16 GetLabelForCommandId(int command_id) const OVERRIDE;
- virtual bool IsCommandIdChecked(int command_id) const OVERRIDE;
- virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE;
- virtual bool GetAcceleratorForCommandId(
- int command_id,
- ui::Accelerator* acclelrator) OVERRIDE;
- virtual void ExecuteCommand(int command_id) OVERRIDE;
-
- // Overridden from ChromeAppListItem:
- virtual void Activate(int event_flags) OVERRIDE;
- virtual ui::MenuModel* GetContextMenuModel() OVERRIDE;
-
- Profile* profile_;
- const std::string extension_id_;
-
- scoped_ptr<ImageLoadingTracker> tracker_;
- scoped_ptr<ui::SimpleMenuModel> context_menu_model_;
-
- DISALLOW_COPY_AND_ASSIGN(ExtensionAppItem);
-};
-
-#endif // CHROME_BROWSER_UI_VIEWS_ASH_APP_LIST_EXTENSION_APP_ITEM_H_

Powered by Google App Engine
This is Rietveld 408576698