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

Side by Side Diff: chrome/renderer/render_widget.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 | « chrome/renderer/render_widget.h ('k') | webkit/glue/chrome_client_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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 "chrome/renderer/render_widget.h" 5 #include "chrome/renderer/render_widget.h"
6 6
7 #include "base/gfx/point.h" 7 #include "base/gfx/point.h"
8 #include "base/gfx/size.h" 8 #include "base/gfx/size.h"
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 463 matching lines...) Expand 10 before | Expand all | Expand 10 after
474 474
475 PaintRect(damaged_rect, canvas); 475 PaintRect(damaged_rect, canvas);
476 Send(new ViewHostMsg_ScrollRect(routing_id_, params)); 476 Send(new ViewHostMsg_ScrollRect(routing_id_, params));
477 delete canvas; 477 delete canvas;
478 UpdateIME(); 478 UpdateIME();
479 } 479 }
480 480
481 /////////////////////////////////////////////////////////////////////////////// 481 ///////////////////////////////////////////////////////////////////////////////
482 // WebWidgetDelegate 482 // WebWidgetDelegate
483 483
484 gfx::NativeViewId RenderWidget::GetContainingView(WebWidget* webwidget) {
485 return host_window_;
486 }
487
488 void RenderWidget::DidInvalidateRect(WebWidget* webwidget, 484 void RenderWidget::DidInvalidateRect(WebWidget* webwidget,
489 const WebRect& rect) { 485 const WebRect& rect) {
490 // We only want one pending DoDeferredPaint call at any time... 486 // We only want one pending DoDeferredPaint call at any time...
491 bool paint_pending = !paint_rect_.IsEmpty(); 487 bool paint_pending = !paint_rect_.IsEmpty();
492 488
493 // If this invalidate overlaps with a pending scroll, then we have to 489 // If this invalidate overlaps with a pending scroll, then we have to
494 // downgrade to invalidating the scroll rect. 490 // downgrade to invalidating the scroll rect.
495 if (gfx::Rect(rect).Intersects(scroll_rect_)) { 491 if (gfx::Rect(rect).Intersects(scroll_rect_)) {
496 paint_rect_ = paint_rect_.Union(scroll_rect_); 492 paint_rect_ = paint_rect_.Union(scroll_rect_);
497 scroll_rect_ = gfx::Rect(); 493 scroll_rect_ = gfx::Rect();
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
848 844
849 if (i == plugin_window_moves_.size()) 845 if (i == plugin_window_moves_.size())
850 plugin_window_moves_.push_back(move); 846 plugin_window_moves_.push_back(move);
851 } 847 }
852 848
853 WebScreenInfo RenderWidget::GetScreenInfo(WebWidget* webwidget) { 849 WebScreenInfo RenderWidget::GetScreenInfo(WebWidget* webwidget) {
854 WebScreenInfo results; 850 WebScreenInfo results;
855 Send(new ViewHostMsg_GetScreenInfo(routing_id_, host_window_, &results)); 851 Send(new ViewHostMsg_GetScreenInfo(routing_id_, host_window_, &results));
856 return results; 852 return results;
857 } 853 }
OLDNEW
« no previous file with comments | « chrome/renderer/render_widget.h ('k') | webkit/glue/chrome_client_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698