OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "config.h" | 5 #include "config.h" |
6 | 6 |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 | 8 |
9 MSVC_PUSH_WARNING_LEVEL(0); | 9 MSVC_PUSH_WARNING_LEVEL(0); |
10 #include "Cursor.h" | 10 #include "Cursor.h" |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 return WebCore::IntPoint(); | 264 return WebCore::IntPoint(); |
265 } | 265 } |
266 | 266 |
267 WebCore::IntRect WebWidgetImpl::windowToScreen( | 267 WebCore::IntRect WebWidgetImpl::windowToScreen( |
268 const WebCore::IntRect& rect) const { | 268 const WebCore::IntRect& rect) const { |
269 NOTIMPLEMENTED(); | 269 NOTIMPLEMENTED(); |
270 return WebCore::IntRect(); | 270 return WebCore::IntRect(); |
271 } | 271 } |
272 | 272 |
273 PlatformWidget WebWidgetImpl::platformWindow() const { | 273 PlatformWidget WebWidgetImpl::platformWindow() const { |
274 if (!delegate_) | 274 return NULL; |
275 return NULL; | |
276 return delegate_->GetContainingView(const_cast<WebWidgetImpl*>(this)); | |
277 } | 275 } |
278 | 276 |
279 void WebWidgetImpl::scrollRectIntoView( | 277 void WebWidgetImpl::scrollRectIntoView( |
280 const WebCore::IntRect&, const WebCore::ScrollView*) const { | 278 const WebCore::IntRect&, const WebCore::ScrollView*) const { |
281 // Nothing to be done here since we do not have the concept of a container | 279 // Nothing to be done here since we do not have the concept of a container |
282 // that implements its own scrolling. | 280 // that implements its own scrolling. |
283 } | 281 } |
284 | 282 |
285 //----------------------------------------------------------------------------- | 283 //----------------------------------------------------------------------------- |
286 // WebCore::FramelessScrollViewClient | 284 // WebCore::FramelessScrollViewClient |
287 | 285 |
288 void WebWidgetImpl::popupClosed(WebCore::FramelessScrollView* widget) { | 286 void WebWidgetImpl::popupClosed(WebCore::FramelessScrollView* widget) { |
289 DCHECK(widget == widget_); | 287 DCHECK(widget == widget_); |
290 if (widget_) { | 288 if (widget_) { |
291 widget_->setClient(NULL); | 289 widget_->setClient(NULL); |
292 widget_ = NULL; | 290 widget_ = NULL; |
293 } | 291 } |
294 delegate_->CloseWidgetSoon(this); | 292 delegate_->CloseWidgetSoon(this); |
295 } | 293 } |
OLD | NEW |