From 94fbaa41f59f3dcb859627b698338d133fec1eb1 Mon Sep 17 00:00:00 2001 From: "ben@chromium.org" Date: Wed, 7 Sep 2011 20:09:54 +0000 Subject: Get chrome to link with USE_AURA http://crbug.com/93947 TEST=none R=sadrul TBR=jabdelmalek for the content/webkit stubs Review URL: http://codereview.chromium.org/7841012 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@99993 0039d316-1c4b-4281-b951-d872f2087c98 --- views/controls/menu/native_menu_aura.cc | 68 +++++++++++++++++++++++++++++++++ 1 file changed, 68 insertions(+) create mode 100644 views/controls/menu/native_menu_aura.cc (limited to 'views/controls/menu') diff --git a/views/controls/menu/native_menu_aura.cc b/views/controls/menu/native_menu_aura.cc new file mode 100644 index 0000000..d441712 --- /dev/null +++ b/views/controls/menu/native_menu_aura.cc @@ -0,0 +1,68 @@ +// 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. + +#include "views/controls/menu/native_menu_linux.h" + +#include "base/logging.h" +#include "views/controls/menu/menu_2.h" +#include "views/controls/menu/menu_wrapper.h" + +namespace views { + +class NativeMenuAura : public MenuWrapper { +public: + explicit NativeMenuAura(Menu2* menu) {} + virtual ~NativeMenuAura() {} + + // Overridden from MenuWrapper: + virtual void RunMenuAt(const gfx::Point& point, int alignment) OVERRIDE { + NOTIMPLEMENTED(); + } + + virtual void CancelMenu() OVERRIDE { + NOTIMPLEMENTED(); + } + + virtual void Rebuild() OVERRIDE { + NOTIMPLEMENTED(); + } + + virtual void UpdateStates() OVERRIDE { + NOTIMPLEMENTED(); + } + + virtual gfx::NativeMenu GetNativeMenu() const OVERRIDE { + NOTIMPLEMENTED(); + return NULL; + } + + virtual MenuWrapper::MenuAction GetMenuAction() const OVERRIDE { + NOTIMPLEMENTED(); + return MENU_ACTION_NONE; + } + + virtual void AddMenuListener(MenuListener* listener) OVERRIDE { + NOTIMPLEMENTED(); + } + + virtual void RemoveMenuListener(MenuListener* listener) OVERRIDE { + NOTIMPLEMENTED(); + } + + virtual void SetMinimumWidth(int width) OVERRIDE { + NOTIMPLEMENTED(); + } + + private: + DISALLOW_COPY_AND_ASSIGN(NativeMenuAura); +}; + +// MenuWrapper, public: + +// static +MenuWrapper* MenuWrapper::CreateWrapper(Menu2* menu) { + return new NativeMenuAura(menu); +} + +} // namespace views -- cgit v1.1