Changeset 79843 in webkit


Ignore:
Timestamp:
Feb 27, 2011 11:28:49 PM (13 years ago)
Author:
pfeldman@chromium.org
Message:

2011-02-27 Pavel Feldman <pfeldman@chromium.org>

Reviewed by Darin Fisher.

Pass frame history state in the context menu parameters.
https://bugs.webkit.org/show_bug.cgi?id=55232

  • public/WebContextMenuData.h:
  • src/ContextMenuClientImpl.cpp: (WebKit::ContextMenuClientImpl::getCustomMenuFromDefaultItems):
Location:
trunk/Source/WebKit/chromium
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/chromium/ChangeLog

    r79793 r79843  
     12011-02-27  Pavel Feldman  <pfeldman@chromium.org>
     2
     3        Reviewed by Darin Fisher.
     4
     5        Pass frame history state in the context menu parameters.
     6        https://bugs.webkit.org/show_bug.cgi?id=55232
     7
     8        * public/WebContextMenuData.h:
     9        * src/ContextMenuClientImpl.cpp:
     10        (WebKit::ContextMenuClientImpl::getCustomMenuFromDefaultItems):
     11
    1122011-02-26  Vsevolod Vlasov  <vsevik@chromium.org>
    213
  • trunk/Source/WebKit/chromium/public/WebContextMenuData.h

    r75730 r79843  
    3232#define WebContextMenuData_h
    3333
     34#include "WebHistoryItem.h"
    3435#include "WebMenuItemInfo.h"
    3536#include "WebNode.h"
     
    7879    // The encoding for the frame in context.
    7980    WebString frameEncoding;
     81
     82    // History state of the subframe in context.
     83    WebHistoryItem frameHistoryItem;
    8084
    8185    enum MediaFlags {
  • trunk/Source/WebKit/chromium/src/ContextMenuClientImpl.cpp

    r78342 r79843  
    4242#include "FrameLoader.h"
    4343#include "FrameView.h"
     44#include "HistoryItem.h"
    4445#include "HitTestResult.h"
    4546#include "HTMLMediaElement.h"
     
    241242    // Send the frame and page URLs in any case.
    242243    data.pageURL = urlFromFrame(m_webView->mainFrameImpl()->frame());
    243     if (selectedFrame != m_webView->mainFrameImpl()->frame())
     244    if (selectedFrame != m_webView->mainFrameImpl()->frame()) {
    244245        data.frameURL = urlFromFrame(selectedFrame);
     246        RefPtr<HistoryItem> historyItem = selectedFrame->loader()->history()->currentItem();
     247        if (historyItem)
     248            data.frameHistoryItem = WebHistoryItem(historyItem);
     249    }
    245250
    246251    if (r.isSelected())
Note: See TracChangeset for help on using the changeset viewer.