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

Unified Diff: ui/views/controls/menu/native_menu_views.h

Issue 8909007: Removing deprecated touchui code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge Created 9 years 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
« no previous file with comments | « no previous file | ui/views/controls/menu/native_menu_views.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/menu/native_menu_views.h
diff --git a/ui/views/controls/menu/native_menu_views.h b/ui/views/controls/menu/native_menu_views.h
deleted file mode 100644
index 9f5d92dcab2bc6a95d91dd81e3e5af13228f34f7..0000000000000000000000000000000000000000
--- a/ui/views/controls/menu/native_menu_views.h
+++ /dev/null
@@ -1,62 +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 UI_VIEWS_CONTROLS_MENU_NATIVE_MENU_VIEWS_H_
-#define UI_VIEWS_CONTROLS_MENU_NATIVE_MENU_VIEWS_H_
-#pragma once
-
-#include "base/basictypes.h"
-#include "base/compiler_specific.h"
-#include "base/memory/scoped_ptr.h"
-#include "ui/views/controls/menu/menu_delegate.h"
-#include "ui/views/controls/menu/menu_wrapper.h"
-
-namespace ui {
-class MenuModel;
-}
-
-namespace views {
-
-class MenuItemView;
-class MenuRunner;
-
-// A views implementation of MenuWrapper, used currently for touchui.
-class NativeMenuViews : public MenuWrapper,
- public MenuDelegate {
- public:
- explicit NativeMenuViews(Menu2* menu);
- virtual ~NativeMenuViews();
-
- // Overridden from MenuWrapper:
- virtual void RunMenuAt(const gfx::Point& point, int alignment) OVERRIDE;
- virtual void CancelMenu() OVERRIDE;
- virtual void Rebuild() OVERRIDE;
- virtual void UpdateStates() OVERRIDE;
- virtual gfx::NativeMenu GetNativeMenu() const OVERRIDE;
- virtual MenuAction GetMenuAction() const OVERRIDE;
- virtual void AddMenuListener(MenuListener* listener) OVERRIDE;
- virtual void RemoveMenuListener(MenuListener* listener) OVERRIDE;
- virtual void SetMinimumWidth(int width) OVERRIDE;
-
- // Overridden from MenuDelegate:
- virtual bool IsItemChecked(int id) const OVERRIDE;
- virtual bool IsCommandEnabled(int id) const OVERRIDE;
- virtual void ExecuteCommand(int id) OVERRIDE;
- virtual bool GetAccelerator(int id, ui::Accelerator* accelerator) OVERRIDE;
-
- private:
- void AddMenuItemsFromModel(MenuItemView* parent, ui::MenuModel* model);
- void UpdateMenuFromModel(SubmenuView* menu, ui::MenuModel* model);
-
- // The attached model and delegate. Does not assume ownership.
- ui::MenuModel* model_;
- MenuItemView* root_;
- scoped_ptr<MenuRunner> menu_runner_;
-
- DISALLOW_COPY_AND_ASSIGN(NativeMenuViews);
-};
-
-} // namespace views
-
-#endif // UI_VIEWS_CONTROLS_MENU_NATIVE_MENU_VIEWS_H_
« no previous file with comments | « no previous file | ui/views/controls/menu/native_menu_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698