<Tool\r
Name="VCCLCompilerTool"\r
Optimization="0"\r
- AdditionalIncludeDirectories=""$(SolutionDir)\..\..\WebCore";"$(SolutionDir)\..\..\WebCore\loader";"$(SolutionDir)\..\..\WebCore\khtml\dom";"$(SolutionDir)\..\..\WebCore\khtml\ecma";"$(SolutionDir)\..\..\WebCore\khtml\html";"$(SolutionDir)\..\..\WebCore\khtml";"$(SolutionDir)\..\..\WebCore\css";"$(SolutionDir)\..\..\WebCore\khtml\misc";"$(SolutionDir)\..\..\WebCore\platform";"$(SolutionDir)\..\..\WebCore\bridge\win";"$(SolutionDir)\..\..\WebCore\page";"$(SolutionDir)\..\..\WebCore\bridge";"$(SolutionDir)\..\..\WebCore\platform\cairo\cairo\src";"$(SolutionDir)\..\..\WebCore\platform\win";"$(SolutionDir)\..\..\WebCore\rendering";"$(SolutionDir)\..\..\WebCore\editing";"$(SolutionDir)\..\..\WebCore\dom";"$(SolutionDir)\..\..\WebCore\xml";"$(SolutionDir)\..\..\WebCore\kwq";"$(SolutionDir)\..\..\iconv";"$(SolutionDir)\..\..\libxml2";"$(SolutionDir)\..\..\icu\include";"$(SolutionDir)\..\..\JavaScriptCore";"$(SolutionDir)\..\..\JavaScriptCore\os-win32";"$(SolutionDir)\..\..\JavaScriptCore\kxmlcore";"$(SolutionDir)\..\..\WebCore\ForwardingHeaders""\r
+ AdditionalIncludeDirectories=""$(SolutionDir)\..\..\WebCore";"$(SolutionDir)\..\..\WebCore\loader";"$(SolutionDir)\..\..\WebCore\khtml\dom";"$(SolutionDir)\..\..\WebCore\khtml\ecma";"$(SolutionDir)\..\..\WebCore\html";"$(SolutionDir)\..\..\WebCore\khtml";"$(SolutionDir)\..\..\WebCore\css";"$(SolutionDir)\..\..\WebCore\khtml\misc";"$(SolutionDir)\..\..\WebCore\platform";"$(SolutionDir)\..\..\WebCore\bridge\win";"$(SolutionDir)\..\..\WebCore\page";"$(SolutionDir)\..\..\WebCore\bridge";"$(SolutionDir)\..\..\WebCore\platform\cairo\cairo\src";"$(SolutionDir)\..\..\WebCore\platform\win";"$(SolutionDir)\..\..\WebCore\rendering";"$(SolutionDir)\..\..\WebCore\editing";"$(SolutionDir)\..\..\WebCore\dom";"$(SolutionDir)\..\..\WebCore\xml";"$(SolutionDir)\..\..\WebCore\kwq";"$(SolutionDir)\..\..\iconv";"$(SolutionDir)\..\..\libxml2";"$(SolutionDir)\..\..\icu\include";"$(SolutionDir)\..\..\JavaScriptCore";"$(SolutionDir)\..\..\JavaScriptCore\os-win32";"$(SolutionDir)\..\..\JavaScriptCore\kxmlcore";"$(SolutionDir)\..\..\WebCore\ForwardingHeaders""\r
PreprocessorDefinitions="WIN32;_DEBUG;_WINDOWS"\r
MinimalRebuild="true"\r
BasicRuntimeChecks="3"\r
/>\r
<Tool\r
Name="VCCLCompilerTool"\r
- AdditionalIncludeDirectories=""$(SolutionDir)\..\..\WebCore";"$(SolutionDir)\..\..\WebCore\loader";"$(SolutionDir)\..\..\WebCore\khtml\dom";"$(SolutionDir)\..\..\WebCore\khtml\ecma";"$(SolutionDir)\..\..\WebCore\khtml\html";"$(SolutionDir)\..\..\WebCore\khtml";"$(SolutionDir)\..\..\WebCore\css";"$(SolutionDir)\..\..\WebCore\khtml\misc";"$(SolutionDir)\..\..\WebCore\platform";"$(SolutionDir)\..\..\WebCore\bridge\win";"$(SolutionDir)\..\..\WebCore\page";"$(SolutionDir)\..\..\WebCore\bridge";"$(SolutionDir)\..\..\WebCore\platform\cairo\cairo\src";"$(SolutionDir)\..\..\WebCore\platform\win";"$(SolutionDir)\..\..\WebCore\rendering";"$(SolutionDir)\..\..\WebCore\editing";"$(SolutionDir)\..\..\WebCore\dom";"$(SolutionDir)\..\..\WebCore\xml";"$(SolutionDir)\..\..\WebCore\kwq";"$(SolutionDir)\..\..\iconv";"$(SolutionDir)\..\..\libxml2";"$(SolutionDir)\..\..\icu\include";"$(SolutionDir)\..\..\JavaScriptCore";"$(SolutionDir)\..\..\JavaScriptCore\os-win32";"$(SolutionDir)\..\..\JavaScriptCore\kxmlcore";"$(SolutionDir)\..\..\WebCore\ForwardingHeaders""\r
+ AdditionalIncludeDirectories=""$(SolutionDir)\..\..\WebCore";"$(SolutionDir)\..\..\WebCore\loader";"$(SolutionDir)\..\..\WebCore\khtml\dom";"$(SolutionDir)\..\..\WebCore\khtml\ecma";"$(SolutionDir)\..\..\WebCore\html";"$(SolutionDir)\..\..\WebCore\khtml";"$(SolutionDir)\..\..\WebCore\css";"$(SolutionDir)\..\..\WebCore\khtml\misc";"$(SolutionDir)\..\..\WebCore\platform";"$(SolutionDir)\..\..\WebCore\bridge\win";"$(SolutionDir)\..\..\WebCore\page";"$(SolutionDir)\..\..\WebCore\bridge";"$(SolutionDir)\..\..\WebCore\platform\cairo\cairo\src";"$(SolutionDir)\..\..\WebCore\platform\win";"$(SolutionDir)\..\..\WebCore\rendering";"$(SolutionDir)\..\..\WebCore\editing";"$(SolutionDir)\..\..\WebCore\dom";"$(SolutionDir)\..\..\WebCore\xml";"$(SolutionDir)\..\..\WebCore\kwq";"$(SolutionDir)\..\..\iconv";"$(SolutionDir)\..\..\libxml2";"$(SolutionDir)\..\..\icu\include";"$(SolutionDir)\..\..\JavaScriptCore";"$(SolutionDir)\..\..\JavaScriptCore\os-win32";"$(SolutionDir)\..\..\JavaScriptCore\kxmlcore";"$(SolutionDir)\..\..\WebCore\ForwardingHeaders""\r
PreprocessorDefinitions="WIN32;NDEBUG;_WINDOWS"\r
RuntimeLibrary="2"\r
UsePrecompiledHeader="2"\r
/>\r
<Tool\r
Name="VCLinkerTool"\r
- AdditionalOptions=""$(WebKitOutputDir)\WebCore.intermediate\$(ConfigurationName)\WebCore.intermediate\WebCore.lib"
"$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\JavaScriptCore.intermediate\JavaScriptCore.lib"
"$(SolutionDir)\..\..\iconv\lib\iconv.lib"
"$(SolutionDir)\..\..\libxml\lib\libxml2.lib"
"$(SolutionDir)\..\..\libxslt\lib\libxslt.lib"
"$(SolutionDir)\..\..\icu\lib\icuuc.lib"
comctl32.lib"\r
+ AdditionalOptions=""$(WebKitOutputDir)\WebCore.intermediate\$(ConfigurationName)\WebCore.intermediate\WebCore.lib"
"$(WebKitOutputDir)\JavaScriptCore.intermediate\$(ConfigurationName)\JavaScriptCore.intermediate\JavaScriptCore.lib"
"$(SolutionDir)\..\..\iconv\lib\iconv.lib"
"$(SolutionDir)\..\..\libxml\lib\libxml2.lib"
"$(SolutionDir)\..\..\libxslt\lib\libxslt.lib"
"$(SolutionDir)\..\..\icu\lib\icuuc.lib"
comctl32.lib
wininet.lib"\r
LinkIncremental="1"\r
GenerateDebugInformation="true"\r
SubSystem="2"\r
#include "WebFrame.h"
-#include "DocumentImpl.h"
+#include "Document.h"
#include "FrameView.h"
#include "IntRect.h"
-#include "KeyEvent.h"
-#include "MouseEvent.h"
+#include "PlatformKeyboardEvent.h"
+#include "PlatformMouseEvent.h"
#include "Resource.h"
#include "SelectionController.h"
#include "TypingCommand.h"
void WebView::mouseMoved(WPARAM wParam, LPARAM lParam)
{
- MouseEvent mouseEvent(windowHandle(), wParam, lParam, 0);
- d->mainFrame->viewImpl()->viewportMouseMoveEvent(mouseEvent);
+ PlatformMouseEvent mouseEvent(windowHandle(), wParam, lParam, 0);
+ d->mainFrame->viewImpl()->handleMouseMoveEvent(mouseEvent);
}
void WebView::mouseDown(WPARAM wParam, LPARAM lParam)
{
- MouseEvent mouseEvent(windowHandle(), wParam, lParam, 1);
- d->mainFrame->viewImpl()->viewportMousePressEvent(mouseEvent);
+ PlatformMouseEvent mouseEvent(windowHandle(), wParam, lParam, 1);
+ d->mainFrame->viewImpl()->handleMousePressEvent(mouseEvent);
}
void WebView::mouseUp(WPARAM wParam, LPARAM lParam)
{
- MouseEvent mouseEvent(windowHandle(), wParam, lParam, 1);
- d->mainFrame->viewImpl()->viewportMouseReleaseEvent(mouseEvent);
+ PlatformMouseEvent mouseEvent(windowHandle(), wParam, lParam, 1);
+ d->mainFrame->viewImpl()->handleMouseReleaseEvent(mouseEvent);
}
void WebView::mouseDoubleClick(WPARAM wParam, LPARAM lParam)
{
- MouseEvent mouseEvent(windowHandle(), wParam, lParam, 2);
- d->mainFrame->viewImpl()->viewportMouseReleaseEvent(mouseEvent);
+ PlatformMouseEvent mouseEvent(windowHandle(), wParam, lParam, 2);
+ d->mainFrame->viewImpl()->handleMouseReleaseEvent(mouseEvent);
}
bool WebView::keyPress(WPARAM wParam, LPARAM lParam)
{
- KeyEvent keyEvent(windowHandle(), wParam, lParam);
+ PlatformKeyboardEvent keyEvent(windowHandle(), wParam, lParam);
FrameWin* frame = static_cast<FrameWin*>(d->mainFrame->impl());
bool handled = frame->keyPress(keyEvent);
if (!handled && !keyEvent.isKeyUp()) {
- NodeImpl* start = frame->selection().start().node();
+ Node* start = frame->selection().start().node();
if (start && start->isContentEditable()) {
switch(keyEvent.WindowsKeyCode()) {
case VK_BACK:
webview->mouseDoubleClick(wParam, lParam);
break;
case WM_HSCROLL: {
- ScrollView* view = webview->mainFrame()->impl()->view();
+ ScrollView* view = webview->mainFrame()->viewImpl();
view->scrollBy(calculateScrollDelta(wParam, view->contentsX(), view->visibleWidth()), 0);
webview->mainFrame()->impl()->sendScrollEvent();
break;
}
case WM_VSCROLL: {
- ScrollView* view = webview->mainFrame()->impl()->view();
+ ScrollView* view = webview->mainFrame()->viewImpl();
view->scrollBy(0, calculateScrollDelta(wParam, view->contentsY(), view->visibleHeight()));
webview->mainFrame()->impl()->sendScrollEvent();
break;