diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-07 20:09:54 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-09-07 20:09:54 +0000 |
commit | 94fbaa41f59f3dcb859627b698338d133fec1eb1 (patch) | |
tree | f5ee660a40ee6fafc99eccd64a50645f57e44ea1 /views/controls/menu | |
parent | a8ca1a99ddee3b8c1c60bddb27c0c6b4893ec92a (diff) | |
download | chromium_src-94fbaa41f59f3dcb859627b698338d133fec1eb1.zip chromium_src-94fbaa41f59f3dcb859627b698338d133fec1eb1.tar.gz chromium_src-94fbaa41f59f3dcb859627b698338d133fec1eb1.tar.bz2 |
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
Diffstat (limited to 'views/controls/menu')
-rw-r--r-- | views/controls/menu/native_menu_aura.cc | 68 |
1 files changed, 68 insertions, 0 deletions
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 |