From a87ecb3c7170caa40810def524fbae1aee4d3533 Mon Sep 17 00:00:00 2001 From: "sky@chromium.org" Date: Mon, 24 Aug 2009 15:46:45 +0000 Subject: Further refactoring of menus for GTK. I've now separated out everything and menus some what work on GTK. I need to get painting working and I'm sure there will be fine tuning, but I want to check in all this splitting of files before someone else needs change one of these files. Thankfully I wrote an interactive ui test that exercises much of this code, and it still passes:) BUG=none TEST=thoroughly test bookmark menus on windows to make sure I didn't break them. Review URL: http://codereview.chromium.org/174274 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24098 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/temp_scaffolding_stubs.cc | 80 --------------------------------- 1 file changed, 80 deletions(-) (limited to 'chrome/common/temp_scaffolding_stubs.cc') diff --git a/chrome/common/temp_scaffolding_stubs.cc b/chrome/common/temp_scaffolding_stubs.cc index c629020..46a7a46 100644 --- a/chrome/common/temp_scaffolding_stubs.cc +++ b/chrome/common/temp_scaffolding_stubs.cc @@ -308,86 +308,6 @@ void ShowFontsLanguagesWindow(gfx::NativeWindow window, //------------------------------------------------------------------------------ #if defined(OS_LINUX) && defined(TOOLKIT_VIEWS) -namespace views { - -MenuItemView::MenuItemView(MenuDelegate* delegate) { -} - -MenuItemView::~MenuItemView() { -} - -MenuItemView* MenuItemView::AppendMenuItemInternal(int item_id, - const std::wstring& label, - const SkBitmap& icon, - Type type) { - NOTIMPLEMENTED(); - return NULL; -} - -void MenuItemView::RunMenuAt(gfx::NativeView parent, - const gfx::Rect& bounds, - AnchorPosition anchor, - bool has_mnemonics) { - NOTIMPLEMENTED(); -} - -void MenuItemView::RunMenuForDropAt(gfx::NativeView parent, - const gfx::Rect& bounds, - AnchorPosition anchor) { - NOTIMPLEMENTED(); -} - -// Hides and cancels the menu. This does nothing if the menu is not open. -void MenuItemView::Cancel() { - NOTIMPLEMENTED(); -} - -SubmenuView* MenuItemView::CreateSubmenu() { - NOTIMPLEMENTED(); - return NULL; -} - -void MenuItemView::SetSelected(bool selected) { - NOTIMPLEMENTED(); -} - -void MenuItemView::SetIcon(const SkBitmap& icon, int item_id) { - NOTIMPLEMENTED(); -} - -void MenuItemView::SetIcon(const SkBitmap& icon) { - NOTIMPLEMENTED(); -} - -void MenuItemView::Paint(gfx::Canvas* canvas) { - NOTIMPLEMENTED(); -} - -gfx::Size MenuItemView::GetPreferredSize() { - NOTIMPLEMENTED(); - return gfx::Size(); -} - -MenuController* MenuItemView::GetMenuController() { - NOTIMPLEMENTED(); - return NULL; -} - -MenuDelegate* MenuItemView::GetDelegate() { - NOTIMPLEMENTED(); - return NULL; -} - -MenuItemView* MenuItemView::GetRootMenuItem() { - NOTIMPLEMENTED(); - return NULL; -} - -wchar_t MenuItemView::GetMnemonic() { - return 'a'; -} - -} // namespace views ConstrainedWindow* ConstrainedWindow::CreateConstrainedDialog( TabContents* owner, -- cgit v1.1