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