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

Unified Diff: chrome/browser/ui/panels/panel_settings_menu_model.h

Issue 9956145: Remove wrench button from panel. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Sync Created 8 years, 8 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/panels/panel_settings_menu_model.h
diff --git a/chrome/browser/ui/panels/panel_settings_menu_model.h b/chrome/browser/ui/panels/panel_settings_menu_model.h
deleted file mode 100644
index 1f3d4c68b354b88f919e31bcd2b5a0b3980728a7..0000000000000000000000000000000000000000
--- a/chrome/browser/ui/panels/panel_settings_menu_model.h
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright (c) 2011 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_PANELS_PANEL_SETTINGS_MENU_MODEL_H_
-#define CHROME_BROWSER_UI_PANELS_PANEL_SETTINGS_MENU_MODEL_H_
-#pragma once
-
-#include "chrome/browser/extensions/extension_uninstall_dialog.h"
-#include "ui/base/models/simple_menu_model.h"
-
-class Extension;
-class Panel;
-
-class PanelSettingsMenuModel : public ui::SimpleMenuModel,
- public ui::SimpleMenuModel::Delegate,
- public ExtensionUninstallDialog::Delegate {
- public:
- explicit PanelSettingsMenuModel(Panel* panel);
- virtual ~PanelSettingsMenuModel();
-
- private:
- // Overridden from ui::SimpleMenuModel::Delegate:
- virtual bool IsCommandIdChecked(int command_id) const OVERRIDE;
- virtual bool IsCommandIdEnabled(int command_id) const OVERRIDE;
- virtual bool GetAcceleratorForCommandId(
- int command_id, ui::Accelerator* accelerator) OVERRIDE;
- virtual void ExecuteCommand(int command_id) OVERRIDE;
-
- // ExtensionUninstallDialog::Delegate:
- virtual void ExtensionUninstallAccepted() OVERRIDE;
- virtual void ExtensionUninstallCanceled() OVERRIDE;
-
- private:
- friend class PanelBrowserTest;
-
- enum {
- COMMAND_NAME = 0,
- COMMAND_CONFIGURE,
- COMMAND_DISABLE,
- COMMAND_UNINSTALL,
- COMMAND_MANAGE
- };
-
- Panel* panel_;
- scoped_ptr<ExtensionUninstallDialog> extension_uninstall_dialog_;
-
- DISALLOW_COPY_AND_ASSIGN(PanelSettingsMenuModel);
-};
-
-#endif // CHROME_BROWSER_UI_PANELS_PANEL_SETTINGS_MENU_MODEL_H_

Powered by Google App Engine
This is Rietveld 408576698