root/ui/views/test/menu_runner_test_api.cc

/* [<][>][^][v][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. SetMenuRunnerHandler

// Copyright 2013 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 "ui/views/test/menu_runner_test_api.h"

#include "ui/views/controls/menu/menu_runner.h"
#include "ui/views/controls/menu/menu_runner_handler.h"

namespace views {
namespace test {

MenuRunnerTestAPI::MenuRunnerTestAPI(MenuRunner* menu_runner)
    : menu_runner_(menu_runner) {
}

MenuRunnerTestAPI::~MenuRunnerTestAPI() {
}

void MenuRunnerTestAPI::SetMenuRunnerHandler(
    scoped_ptr<MenuRunnerHandler> menu_runner_handler) {
  menu_runner_->SetRunnerHandler(menu_runner_handler.Pass());
}

}  // test
}  // views

/* [<][>][^][v][top][bottom][index][help] */