1// Copyright (c) 2011 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 "chrome/browser/ui/views/profile_menu_model.h"
6
7#include "grit/generated_resources.h"
8#include "ui/base/l10n/l10n_util.h"
9#include "ui/base/models/accelerator.h"
10#include "ui/base/models/simple_menu_model.h"
11#include "views/controls/menu/menu_2.h"
12
13namespace views {
14
15ProfileMenuModel::ProfileMenuModel()
16    : ALLOW_THIS_IN_INITIALIZER_LIST(ui::SimpleMenuModel(this)) {
17  AddItem(0, l10n_util::GetStringUTF16(
18      IDS_PROFILES_CREATE_NEW_PROFILE_OPTION));
19  menu_.reset(new views::Menu2(this));
20}
21
22ProfileMenuModel::~ProfileMenuModel() {
23}
24
25void ProfileMenuModel::RunMenuAt(const gfx::Point& point) {
26  menu_->RunMenuAt(point, views::Menu2::ALIGN_TOPRIGHT);
27}
28
29bool ProfileMenuModel::IsCommandIdChecked(int command_id) const {
30  return false;
31}
32
33bool ProfileMenuModel::IsCommandIdEnabled(int command_id) const {
34  return false;
35}
36
37bool ProfileMenuModel::GetAcceleratorForCommandId(int command_id,
38    ui::Accelerator* accelerator) {
39  return false;
40}
41
42void ProfileMenuModel::ExecuteCommand(int command_id) {
43  NOTIMPLEMENTED();
44}
45
46}  // namespace views
47