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 221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
232 | 232 |
233 WebCore::IntRect WebWidgetImpl::windowToScreen( | 233 WebCore::IntRect WebWidgetImpl::windowToScreen( |
234 const WebCore::IntRect& rect) const { | 234 const WebCore::IntRect& rect) const { |
235 NOTIMPLEMENTED(); | 235 NOTIMPLEMENTED(); |
236 return WebCore::IntRect(); | 236 return WebCore::IntRect(); |
237 } | 237 } |
238 | 238 |
239 PlatformWidget WebWidgetImpl::platformWindow() const { | 239 PlatformWidget WebWidgetImpl::platformWindow() const { |
240 if (!delegate_) | 240 if (!delegate_) |
241 return NULL; | 241 return NULL; |
242 return delegate_->GetContainingWindow(const_cast<WebWidgetImpl*>(this)); | 242 return delegate_->GetContainingView(const_cast<WebWidgetImpl*>(this)); |
243 } | 243 } |
244 | 244 |
245 //----------------------------------------------------------------------------- | 245 //----------------------------------------------------------------------------- |
246 // WebCore::FramelessScrollViewClient | 246 // WebCore::FramelessScrollViewClient |
247 | 247 |
248 void WebWidgetImpl::popupClosed(WebCore::FramelessScrollView* widget) { | 248 void WebWidgetImpl::popupClosed(WebCore::FramelessScrollView* widget) { |
249 DCHECK(widget == widget_); | 249 DCHECK(widget == widget_); |
250 if (widget_) { | 250 if (widget_) { |
251 widget_->setClient(NULL); | 251 widget_->setClient(NULL); |
252 widget_ = NULL; | 252 widget_ = NULL; |
(...skipping 13 matching lines...) Expand all Loading... |
266 void WebWidgetImpl::onScrollPositionChanged(Widget* widget) { | 266 void WebWidgetImpl::onScrollPositionChanged(Widget* widget) { |
267 } | 267 } |
268 | 268 |
269 bool WebWidgetImpl::isHidden() { | 269 bool WebWidgetImpl::isHidden() { |
270 if (!delegate_) | 270 if (!delegate_) |
271 return true; | 271 return true; |
272 | 272 |
273 return delegate_->IsHidden(); | 273 return delegate_->IsHidden(); |
274 } | 274 } |
275 #endif | 275 #endif |
OLD | NEW |