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

Side by Side Diff: content/renderer/render_view.cc

Issue 7582009: [Mac] Rubber-banding on Lion. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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 | « content/renderer/render_view.h ('k') | content/renderer/render_widget.h » ('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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "content/renderer/render_view.h" 5 #include "content/renderer/render_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 3926 matching lines...) Expand 10 before | Expand all | Expand 10 after
3937 gfx::Rect* clip) { 3937 gfx::Rect* clip) {
3938 return pepper_delegate_.GetBitmapForOptimizedPluginPaint( 3938 return pepper_delegate_.GetBitmapForOptimizedPluginPaint(
3939 paint_bounds, dib, location, clip); 3939 paint_bounds, dib, location, clip);
3940 } 3940 }
3941 3941
3942 gfx::Point RenderView::GetScrollOffset() { 3942 gfx::Point RenderView::GetScrollOffset() {
3943 WebSize scroll_offset = webview()->mainFrame()->scrollOffset(); 3943 WebSize scroll_offset = webview()->mainFrame()->scrollOffset();
3944 return gfx::Point(scroll_offset.width, scroll_offset.height); 3944 return gfx::Point(scroll_offset.width, scroll_offset.height);
3945 } 3945 }
3946 3946
3947 gfx::Size RenderView::GetContentsSize() {
3948 WebSize bounds = webview()->mainFrame()->contentsSize();
3949 return gfx::Size(bounds.width, bounds.height);
3950 }
3951
3947 void RenderView::OnClearFocusedNode() { 3952 void RenderView::OnClearFocusedNode() {
3948 if (webview()) 3953 if (webview())
3949 webview()->clearFocusedNode(); 3954 webview()->clearFocusedNode();
3950 } 3955 }
3951 3956
3952 void RenderView::OnSetBackground(const SkBitmap& background) { 3957 void RenderView::OnSetBackground(const SkBitmap& background) {
3953 if (webview()) 3958 if (webview())
3954 webview()->setIsTransparent(!background.empty()); 3959 webview()->setIsTransparent(!background.empty());
3955 3960
3956 SetBackground(background); 3961 SetBackground(background);
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after
4484 } 4489 }
4485 #endif 4490 #endif
4486 4491
4487 void RenderView::OnContextMenuClosed( 4492 void RenderView::OnContextMenuClosed(
4488 const webkit_glue::CustomContextMenuContext& custom_context) { 4493 const webkit_glue::CustomContextMenuContext& custom_context) {
4489 if (custom_context.is_pepper_menu) 4494 if (custom_context.is_pepper_menu)
4490 pepper_delegate_.OnContextMenuClosed(custom_context); 4495 pepper_delegate_.OnContextMenuClosed(custom_context);
4491 else 4496 else
4492 context_menu_node_.reset(); 4497 context_menu_node_.reset();
4493 } 4498 }
OLDNEW
« no previous file with comments | « content/renderer/render_view.h ('k') | content/renderer/render_widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698