• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2006, 2007 Apple Inc.  All rights reserved.
3  * Copyright (C) 2010 Company 100, Inc.
4  *
5  * Redistribution and use in source and binary forms, with or without
6  * modification, are permitted provided that the following conditions
7  * are met:
8  * 1. Redistributions of source code must retain the above copyright
9  *    notice, this list of conditions and the following disclaimer.
10  * 2. Redistributions in binary form must reproduce the above copyright
11  *    notice, this list of conditions and the following disclaimer in the
12  *    documentation and/or other materials provided with the distribution.
13  *
14  * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
15  * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
16  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
17  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE COMPUTER, INC. OR
18  * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
19  * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
20  * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
21  * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
22  * OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
24  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25  */
26 
27 #include "config.h"
28 #include "ContextMenuItem.h"
29 
30 #include "ContextMenu.h"
31 #include "NotImplemented.h"
32 
33 #include <wtf/text/CString.h>
34 
35 namespace WebCore {
36 
ContextMenuItem(PlatformMenuDescription item)37 ContextMenuItem::ContextMenuItem(PlatformMenuDescription item)
38 {
39     ASSERT_NOT_REACHED();
40     notImplemented();
41 }
42 
ContextMenuItem(ContextMenu * subMenu)43 ContextMenuItem::ContextMenuItem(ContextMenu* subMenu)
44 {
45     ASSERT_NOT_REACHED();
46     notImplemented();
47 }
48 
ContextMenuItem(ContextMenuItemType type,ContextMenuAction action,const String & title,ContextMenu * subMenu)49 ContextMenuItem::ContextMenuItem(ContextMenuItemType type, ContextMenuAction action, const String& title, ContextMenu* subMenu)
50 {
51     ASSERT_NOT_REACHED();
52     notImplemented();
53 }
54 
~ContextMenuItem()55 ContextMenuItem::~ContextMenuItem()
56 {
57     ASSERT_NOT_REACHED();
58     notImplemented();
59 }
60 
releasePlatformDescription()61 PlatformMenuDescription ContextMenuItem::releasePlatformDescription()
62 {
63     ASSERT_NOT_REACHED();
64     notImplemented();
65     return 0;
66 }
67 
type() const68 ContextMenuItemType ContextMenuItem::type() const
69 {
70     ASSERT_NOT_REACHED();
71     notImplemented();
72     return ActionType;
73 }
74 
action() const75 ContextMenuAction ContextMenuItem::action() const
76 {
77     ASSERT_NOT_REACHED();
78     notImplemented();
79     return ContextMenuItemTagNoAction;
80 }
81 
title() const82 String ContextMenuItem::title() const
83 {
84     ASSERT_NOT_REACHED();
85     notImplemented();
86     return String();
87 }
88 
platformSubMenu() const89 PlatformMenuDescription ContextMenuItem::platformSubMenu() const
90 {
91     ASSERT_NOT_REACHED();
92     notImplemented();
93     return 0;
94 }
95 
setType(ContextMenuItemType type)96 void ContextMenuItem::setType(ContextMenuItemType type)
97 {
98     ASSERT_NOT_REACHED();
99     notImplemented();
100 }
101 
setAction(ContextMenuAction action)102 void ContextMenuItem::setAction(ContextMenuAction action)
103 {
104     ASSERT_NOT_REACHED();
105     notImplemented();
106 }
107 
setTitle(const String & title)108 void ContextMenuItem::setTitle(const String& title)
109 {
110     ASSERT_NOT_REACHED();
111     notImplemented();
112 }
113 
setSubMenu(ContextMenu * subMenu)114 void ContextMenuItem::setSubMenu(ContextMenu* subMenu)
115 {
116     ASSERT_NOT_REACHED();
117     notImplemented();
118 }
119 
setChecked(bool checked)120 void ContextMenuItem::setChecked(bool checked)
121 {
122     ASSERT_NOT_REACHED();
123     notImplemented();
124 }
125 
setEnabled(bool enabled)126 void ContextMenuItem::setEnabled(bool enabled)
127 {
128     ASSERT_NOT_REACHED();
129     notImplemented();
130 }
131 
enabled() const132 bool ContextMenuItem::enabled() const
133 {
134     ASSERT_NOT_REACHED();
135     notImplemented();
136     return false;
137 }
138 
139 }
140