1 // Copyright 2013 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #include "ui/views/test/menu_runner_test_api.h" 6 7 #include "ui/views/controls/menu/menu_runner.h" 8 #include "ui/views/controls/menu/menu_runner_handler.h" 9 10 namespace views { 11 namespace test { 12 13 MenuRunnerTestAPI::MenuRunnerTestAPI(MenuRunner* menu_runner) 14 : menu_runner_(menu_runner) { 15 } 16 17 MenuRunnerTestAPI::~MenuRunnerTestAPI() { 18 } 19 20 void MenuRunnerTestAPI::SetMenuRunnerHandler( 21 scoped_ptr<MenuRunnerHandler> menu_runner_handler) { 22 menu_runner_->SetRunnerHandler(menu_runner_handler.Pass()); 23 } 24 25 } // test 26 } // views 27