summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/examples/example_base.cc17
1 files changed, 17 insertions, 0 deletions
diff --git a/views/examples/example_base.cc b/views/examples/example_base.cc
index 149ea52..d61d88f 100644
--- a/views/examples/example_base.cc
+++ b/views/examples/example_base.cc
@@ -12,6 +12,10 @@
#include "views/controls/tabbed_pane/tabbed_pane.h"
#include "views/examples/examples_main.h"
+#if defined(OS_CHROMEOS)
+#include "views/controls/menu/native_menu_gtk.h"
+#endif
+
namespace {
using views::View;
@@ -49,6 +53,19 @@ class ContainerView : public View {
} // namespace
+namespace views {
+
+// OS_CHROMEOS requires a MenuWrapper::CreateWrapper implementation.
+// TODO(oshima): Fix chromium-os:7409 so that this isn't required.
+#if defined(OS_CHROMEOS)
+// static
+MenuWrapper* MenuWrapper::CreateWrapper(Menu2* menu) {
+ return new NativeMenuGtk(menu);
+}
+#endif // OS_CHROMEOS
+
+} // namespace views
+
namespace examples {
ExampleBase::ExampleBase(ExamplesMain* main)