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

Side by Side Diff: webkit/glue/webwidget_impl.cc

Issue 155243: Remove WebWidgetDelegate::GetContainingView since it is not needed.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/glue/webwidget_delegate.h ('k') | webkit/glue/webworker_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « webkit/glue/webwidget_delegate.h ('k') | webkit/glue/webworker_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698