1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
|
// Copyright (c) 2008 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/menu_gtk.h"
#include "base/logging.h"
namespace views {
// static
Menu* Menu::Create(Delegate* delegate,
AnchorPoint anchor,
gfx::NativeView parent) {
return new MenuGtk(delegate, anchor, parent);
}
// static
Menu* Menu::GetSystemMenu(gfx::NativeWindow parent) {
NOTIMPLEMENTED();
return NULL;
}
MenuGtk::MenuGtk(Delegate* d, AnchorPoint anchor, gfx::NativeView owner)
: Menu(d, anchor) {
DCHECK(delegate());
}
MenuGtk::~MenuGtk() {
}
Menu* MenuGtk::AddSubMenuWithIcon(int index,
int item_id,
const std::wstring& label,
const SkBitmap& icon) {
NOTIMPLEMENTED();
return NULL;
}
void MenuGtk::AddSeparator(int index) {
NOTIMPLEMENTED();
}
void MenuGtk::EnableMenuItemByID(int item_id, bool enabled) {
NOTIMPLEMENTED();
}
void MenuGtk::EnableMenuItemAt(int index, bool enabled) {
NOTIMPLEMENTED();
}
void MenuGtk::SetMenuLabel(int item_id, const std::wstring& label) {
NOTIMPLEMENTED();
}
bool MenuGtk::SetIcon(const SkBitmap& icon, int item_id) {
NOTIMPLEMENTED();
return false;
}
void MenuGtk::RunMenuAt(int x, int y) {
NOTIMPLEMENTED();
}
void MenuGtk::Cancel() {
NOTIMPLEMENTED();
}
int MenuGtk::ItemCount() {
NOTIMPLEMENTED();
return 0;
}
void MenuGtk::AddMenuItemInternal(int index,
int item_id,
const std::wstring& label,
const SkBitmap& icon,
MenuItemType type) {
NOTIMPLEMENTED();
}
} // namespace views
|