Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(527)

Unified Diff: webkit/api/src/ContextMenuClientImpl.cpp

Issue 341030: Moves webview_impl.cc, webframe_impl.cc and webframeloaderclient_impl.cc into... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/api/src/ContextMenuClientImpl.h ('k') | webkit/api/src/DragClientImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/api/src/ContextMenuClientImpl.cpp
===================================================================
--- webkit/api/src/ContextMenuClientImpl.cpp (revision 30557)
+++ webkit/api/src/ContextMenuClientImpl.cpp (working copy)
@@ -48,18 +48,15 @@
#include "Widget.h"
#include "WebContextMenuData.h"
-#include "WebFrame.h"
+#include "WebDataSourceImpl.h"
+#include "WebFrameImpl.h"
#include "WebPoint.h"
#include "WebString.h"
#include "WebURL.h"
#include "WebURLResponse.h"
#include "WebViewClient.h"
-#include "WebDataSourceImpl.h"
-#undef LOG
+#include "WebViewImpl.h"
-// FIXME: Temporary hack until WebViewImpl is in api/src.
-#include "webkit/glue/webview_impl.h"
-
using namespace WebCore;
namespace WebKit {
@@ -143,7 +140,7 @@
// response to user input (Mouse event WM_RBUTTONDOWN,
// Keyboard events KeyVK_APPS, Shift+F10). Check if this is being invoked
// in response to the above input events before popping up the context menu.
- if (!m_webView->context_menu_allowed())
+ if (!m_webView->contextMenuAllowed())
return 0;
HitTestResult r = defaultMenu->hitTestResult();
@@ -192,8 +189,8 @@
data.frameEncoding = selectedFrame->loader()->encoding();
// Send the frame and page URLs in any case.
- data.pageURL = urlFromFrame(m_webView->main_frame()->frame());
- if (selectedFrame != m_webView->main_frame()->frame())
+ data.pageURL = urlFromFrame(m_webView->mainFrameImpl()->frame());
+ if (selectedFrame != m_webView->mainFrameImpl()->frame())
data.frameURL = urlFromFrame(selectedFrame);
if (r.isSelected())
@@ -202,7 +199,7 @@
data.isEditable = false;
if (r.isContentEditable()) {
data.isEditable = true;
- if (m_webView->GetFocusedWebCoreFrame()->editor()->isContinuousSpellCheckingEnabled()) {
+ if (m_webView->focusedWebCoreFrame()->editor()->isContinuousSpellCheckingEnabled()) {
data.isSpellCheckingEnabled = true;
data.misspelledWord = selectMisspelledWord(defaultMenu, selectedFrame);
}
@@ -216,22 +213,22 @@
// Compute edit flags.
data.editFlags = WebContextMenuData::CanDoNone;
- if (m_webView->GetFocusedWebCoreFrame()->editor()->canUndo())
+ if (m_webView->focusedWebCoreFrame()->editor()->canUndo())
data.editFlags |= WebContextMenuData::CanUndo;
- if (m_webView->GetFocusedWebCoreFrame()->editor()->canRedo())
+ if (m_webView->focusedWebCoreFrame()->editor()->canRedo())
data.editFlags |= WebContextMenuData::CanRedo;
- if (m_webView->GetFocusedWebCoreFrame()->editor()->canCut())
+ if (m_webView->focusedWebCoreFrame()->editor()->canCut())
data.editFlags |= WebContextMenuData::CanCut;
- if (m_webView->GetFocusedWebCoreFrame()->editor()->canCopy())
+ if (m_webView->focusedWebCoreFrame()->editor()->canCopy())
data.editFlags |= WebContextMenuData::CanCopy;
- if (m_webView->GetFocusedWebCoreFrame()->editor()->canPaste())
+ if (m_webView->focusedWebCoreFrame()->editor()->canPaste())
data.editFlags |= WebContextMenuData::CanPaste;
- if (m_webView->GetFocusedWebCoreFrame()->editor()->canDelete())
+ if (m_webView->focusedWebCoreFrame()->editor()->canDelete())
data.editFlags |= WebContextMenuData::CanDelete;
// We can always select all...
data.editFlags |= WebContextMenuData::CanSelectAll;
- WebFrame* selected_web_frame = WebFrameImpl::FromFrame(selectedFrame);
+ WebFrame* selected_web_frame = WebFrameImpl::fromFrame(selectedFrame);
if (m_webView->client())
m_webView->client()->showContextMenu(selected_web_frame, data);
« no previous file with comments | « webkit/api/src/ContextMenuClientImpl.h ('k') | webkit/api/src/DragClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698