Changeset 150240 in webkit


Ignore:
Timestamp:
May 16, 2013 8:28:52 PM (11 years ago)
Author:
commit-queue@webkit.org
Message:

Add stubs for ContextMenu and ContextMenuItem
https://bugs.webkit.org/show_bug.cgi?id=116235

Patch by Jesus Sanchez-Palencia <jesus.palencia@openbossa.org> on 2013-05-16
Reviewed by Antonio Gomes.

No new tests needed, only a refactor.

Add ContextMenuNone.cpp and ContextMenuItemNone.cpp
so ports using ENABLE(CROSS_PLATFORM_CONTEXT_MENU) don't
need to replicate these stubs.

  • PlatformEfl.cmake:
  • Target.pri:
  • platform/ContextMenuNone.cpp: Added.

(WebCore):
(WebCore::ContextMenu::ContextMenu):
(WebCore::ContextMenu::getContextMenuItems):
(WebCore::ContextMenu::createPlatformContextMenuFromItems):
(WebCore::ContextMenu::platformContextMenu):

  • platform/ContextMenuItemNone.cpp: Added.

(WebCore):
(WebCore::ContextMenuItem::platformContextMenuItem):

  • platform/efl/ContextMenuEfl.cpp: Removed.
  • platform/efl/ContextMenuItemEfl.cpp: Removed.
  • platform/qt/ContextMenuQt.cpp: Removed.
  • platform/qt/ContextMenuItemQt.cpp: Removed.
Location:
trunk/Source/WebCore
Files:
2 deleted
3 edited
2 moved

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r150239 r150240  
     12013-05-16  Jesus Sanchez-Palencia  <jesus.palencia@openbossa.org>
     2
     3        Add stubs for ContextMenu and ContextMenuItem
     4        https://bugs.webkit.org/show_bug.cgi?id=116235
     5
     6        Reviewed by Antonio Gomes.
     7
     8        No new tests needed, only a refactor.
     9
     10        Add ContextMenuNone.cpp and ContextMenuItemNone.cpp
     11        so ports using ENABLE(CROSS_PLATFORM_CONTEXT_MENU) don't
     12        need to replicate these stubs.
     13
     14        * PlatformEfl.cmake:
     15        * Target.pri:
     16        * platform/ContextMenuNone.cpp: Added.
     17        (WebCore):
     18        (WebCore::ContextMenu::ContextMenu):
     19        (WebCore::ContextMenu::getContextMenuItems):
     20        (WebCore::ContextMenu::createPlatformContextMenuFromItems):
     21        (WebCore::ContextMenu::platformContextMenu):
     22        * platform/ContextMenuItemNone.cpp: Added.
     23        (WebCore):
     24        (WebCore::ContextMenuItem::platformContextMenuItem):
     25        * platform/efl/ContextMenuEfl.cpp: Removed.
     26        * platform/efl/ContextMenuItemEfl.cpp: Removed.
     27        * platform/qt/ContextMenuQt.cpp: Removed.
     28        * platform/qt/ContextMenuItemQt.cpp: Removed.
     29
    1302013-05-16  Alexis Menard  <alexis@webkit.org>
    231
  • trunk/Source/WebCore/PlatformEfl.cmake

    r150216 r150240  
    5454    platform/efl/BatteryProviderEfl.cpp
    5555    platform/efl/ClipboardEfl.cpp
    56     platform/efl/ContextMenuEfl.cpp
    57     platform/efl/ContextMenuItemEfl.cpp
     56    platform/ContextMenuNone.cpp
     57    platform/ContextMenuItemNone.cpp
    5858    platform/efl/CursorEfl.cpp
    5959    platform/efl/DragDataEfl.cpp
  • trunk/Source/WebCore/Target.pri

    r150216 r150240  
    29202920    platform/ContextMenuItem.cpp \
    29212921    platform/qt/ClipboardQt.cpp \
    2922     platform/qt/ContextMenuItemQt.cpp \
    2923     platform/qt/ContextMenuQt.cpp \
     2922    platform/ContextMenuItemNone.cpp \
     2923    platform/ContextMenuNone.cpp \
    29242924    platform/qt/CursorQt.cpp \
    29252925    platform/qt/DragDataQt.cpp \
  • trunk/Source/WebCore/platform/ContextMenuItemNone.cpp

    r150239 r150240  
    11/*
    2  * Copyright (C) 2006 Zack Rusin <zack@kde.org>
    3  * Copyright (C) 2007 Staikos Computing Services Inc. <info@staikos.net>
     2 * Copyright (C) 2013 Nokia Corporation and/or its subsidiary(-ies).
    43 *
    54 * Redistribution and use in source and binary forms, with or without
     
    1211 *    documentation and/or other materials provided with the distribution.
    1312 *
    14  * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
     13 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY
    1514 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    1615 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
    17  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE COMPUTER, INC. OR
     16 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR
    1817 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
    1918 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
     
    2625
    2726#include "config.h"
     27
     28#if ENABLE(CONTEXT_MENUS) && USE(CROSS_PLATFORM_CONTEXT_MENUS)
     29
    2830#include "ContextMenuItem.h"
    2931
     
    3234namespace WebCore {
    3335
    34 void* ContextMenuItem::platformContextMenuItem() const
     36PlatformContextMenuItem ContextMenuItem::platformContextMenuItem() const
    3537{
    3638    notImplemented();
     
    3941
    4042}
    41 // vim: ts=4 sw=4 et
     43#endif // ENABLE(CONTEXT_MENUS) && USE(CROSS_PLATFORM_CONTEXT_MENUS)
  • trunk/Source/WebCore/platform/ContextMenuNone.cpp

    r150239 r150240  
    11/*
    2  * Copyright (C) 2006 Zack Rusin <zack@kde.org>
    3  * Copyright (C) 2007 Staikos Computing Services Inc. <info@staikos.net>
     2 * Copyright (C) 2013 Nokia Corporation and/or its subsidiary(-ies).
    43 *
    54 * Redistribution and use in source and binary forms, with or without
     
    1211 *    documentation and/or other materials provided with the distribution.
    1312 *
    14  * THIS SOFTWARE IS PROVIDED BY APPLE COMPUTER, INC. ``AS IS'' AND ANY
     13 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY
    1514 * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    1615 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
    17  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL APPLE COMPUTER, INC. OR
     16 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT HOLDERS OR
    1817 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
    1918 * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
     
    2625
    2726#include "config.h"
     27
     28#if ENABLE(CONTEXT_MENUS) && USE(CROSS_PLATFORM_CONTEXT_MENUS)
     29
    2830#include "ContextMenu.h"
    2931
     
    5456
    5557}
    56 // vim: ts=4 sw=4 et
     58#endif // ENABLE(CONTEXT_MENUS) && USE(CROSS_PLATFORM_CONTEXT_MENUS)
Note: See TracChangeset for help on using the changeset viewer.