equal
deleted
inserted
replaced
52 { |
52 { |
53 m_webView = webView; |
53 m_webView = webView; |
54 m_visibility = false; |
54 m_visibility = false; |
55 } |
55 } |
56 |
56 |
|
57 void WebChromeClient::chromeDestroyed() |
|
58 { |
|
59 delete this; |
|
60 } |
|
61 |
57 FloatRect WebChromeClient::windowRect() { notImplemented(); return FloatRect(); } |
62 FloatRect WebChromeClient::windowRect() { notImplemented(); return FloatRect(); } |
58 FloatRect WebChromeClient::pageRect() { notImplemented(); return FloatRect(); } |
63 FloatRect WebChromeClient::pageRect() { notImplemented(); return FloatRect(); } |
59 float WebChromeClient::scaleFactor() { notImplemented(); return 1.0; } |
64 float WebChromeClient::scaleFactor() { notImplemented(); return 1.0; } |
60 |
65 |
61 Page* WebChromeClient::createWindow(Frame* frame, const WebCore::FrameLoadRequest& frameRequest) |
66 Page* WebChromeClient::createWindow(Frame* frame, const WebCore::FrameLoadRequest& frameRequest) |
70 else { // frame has a name |
75 else { // frame has a name |
71 name = frameName.des().Alloc(); |
76 name = frameName.des().Alloc(); |
72 } |
77 } |
73 if (name) { |
78 if (name) { |
74 bool userGesture = frame->scriptProxy()->interpreter()->wasRunByUserGesture(); |
79 bool userGesture = frame->scriptProxy()->interpreter()->wasRunByUserGesture(); |
|
80 TRAP_IGNORE( |
75 newBrCtl = m_webView->brCtl()->getWindowL(*name, userGesture); |
81 newBrCtl = m_webView->brCtl()->getWindowL(*name, userGesture); |
|
82 ); |
76 delete name; |
83 delete name; |
77 if (newBrCtl) { |
84 if (newBrCtl) { |
78 page = newBrCtl->webView()->page(); |
85 page = newBrCtl->webView()->page(); |
79 } |
86 } |
80 } |
87 } |
134 t.FormatL(time, KTimeFormat); |
141 t.FormatL(time, KTimeFormat); |
135 } |
142 } |
136 |
143 |
137 void WebChromeClient::addMessageToConsole(const WebCore::String& message, MessageLevel messageLevel, unsigned int line, const WebCore::String& sourceURL) |
144 void WebChromeClient::addMessageToConsole(const WebCore::String& message, MessageLevel messageLevel, unsigned int line, const WebCore::String& sourceURL) |
138 { |
145 { |
|
146 TRAP_IGNORE( |
|
147 addMessageToConsoleL(message, messageLevel, line, sourceURL); |
|
148 ); |
|
149 } |
|
150 |
|
151 void WebChromeClient::addMessageToConsoleL(const WebCore::String& message, MessageLevel messageLevel, unsigned int line, const WebCore::String& sourceURL) |
|
152 { |
|
153 |
139 RFs fsSession; |
154 RFs fsSession; |
140 User::LeaveIfError( fsSession.Connect()); |
155 User::LeaveIfError( fsSession.Connect()); |
141 |
156 |
142 TFileName privatePath; |
157 TFileName privatePath; |
143 TPtrC concatPath; |
158 TPtrC concatPath; |
335 bool WebChromeClient::tabsToLinks() const { return false;} |
350 bool WebChromeClient::tabsToLinks() const { return false;} |
336 IntRect WebChromeClient::windowResizerRect() const{ return IntRect();} |
351 IntRect WebChromeClient::windowResizerRect() const{ return IntRect();} |
337 void WebChromeClient::addToDirtyRegion(const IntRect&){} |
352 void WebChromeClient::addToDirtyRegion(const IntRect&){} |
338 void WebChromeClient::scrollBackingStore(int dx, int dy, const IntRect& scrollViewRect, const IntRect& clipRect){} |
353 void WebChromeClient::scrollBackingStore(int dx, int dy, const IntRect& scrollViewRect, const IntRect& clipRect){} |
339 |
354 |
340 |
355 void WebChromeClient::focusedElementChanged(Element* element) |
|
356 { |
|
357 m_webView->focusedElementChanged(element); |
|
358 } |
|
359 |