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

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

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. Created 5 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
« no previous file with comments | « ui/views/controls/menu/menu_runner_impl.cc ('k') | ui/views/controls/menu/menu_runner_impl_adapter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/menu/menu_runner_impl_adapter.h
diff --git a/ui/views/controls/menu/menu_runner_impl_adapter.h b/ui/views/controls/menu/menu_runner_impl_adapter.h
deleted file mode 100644
index eba68c442de2dee1e10901f217b1011002940ce3..0000000000000000000000000000000000000000
--- a/ui/views/controls/menu/menu_runner_impl_adapter.h
+++ /dev/null
@@ -1,43 +0,0 @@
-// Copyright 2014 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_MENU_RUNNER_IMPL_ADAPTER_H_
-#define UI_VIEWS_CONTROLS_MENU_MENU_RUNNER_IMPL_ADAPTER_H_
-
-#include "ui/views/controls/menu/menu_runner_impl_interface.h"
-
-namespace views {
-namespace internal {
-
-class MenuRunnerImpl;
-
-// Given a MenuModel, adapts MenuRunnerImpl which expects a MenuItemView.
-class MenuRunnerImplAdapter : public MenuRunnerImplInterface {
- public:
- explicit MenuRunnerImplAdapter(ui::MenuModel* menu_model);
-
- // MenuRunnerImplInterface:
- virtual bool IsRunning() const override;
- virtual void Release() override;
- virtual MenuRunner::RunResult RunMenuAt(Widget* parent,
- MenuButton* button,
- const gfx::Rect& bounds,
- MenuAnchorPosition anchor,
- int32 types) override;
- virtual void Cancel() override;
- virtual base::TimeDelta GetClosingEventTime() const override;
-
- private:
- virtual ~MenuRunnerImplAdapter();
-
- scoped_ptr<MenuModelAdapter> menu_model_adapter_;
- MenuRunnerImpl* impl_;
-
- DISALLOW_COPY_AND_ASSIGN(MenuRunnerImplAdapter);
-};
-
-} // namespace internal
-} // namespace views
-
-#endif // UI_VIEWS_CONTROLS_MENU_MENU_RUNNER_IMPL_ADAPTER_H_
« no previous file with comments | « ui/views/controls/menu/menu_runner_impl.cc ('k') | ui/views/controls/menu/menu_runner_impl_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698