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

Side by Side Diff: content/browser/renderer_host/render_widget_host_impl.cc

Issue 11269022: Add Vector2d classes that represent offsets, instead of using Point. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove SizeOfVector Created 8 years, 1 month 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/browser/renderer_host/render_widget_host_impl.h" 5 #include "content/browser/renderer_host/render_widget_host_impl.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/auto_reset.h" 10 #include "base/auto_reset.h"
(...skipping 1955 matching lines...) Expand 10 before | Expand all | Expand 10 after
1966 for (int i = 0; i < static_cast<int>(deferred_plugin_handles_.size()); i++) { 1966 for (int i = 0; i < static_cast<int>(deferred_plugin_handles_.size()); i++) {
1967 #if defined(TOOLKIT_GTK) 1967 #if defined(TOOLKIT_GTK)
1968 view_->CreatePluginContainer(deferred_plugin_handles_[i]); 1968 view_->CreatePluginContainer(deferred_plugin_handles_[i]);
1969 #endif 1969 #endif
1970 } 1970 }
1971 1971
1972 deferred_plugin_handles_.clear(); 1972 deferred_plugin_handles_.clear();
1973 #endif 1973 #endif
1974 } 1974 }
1975 1975
1976 const gfx::Point& RenderWidgetHostImpl::GetLastScrollOffset() const { 1976 const gfx::Vector2d& RenderWidgetHostImpl::GetLastScrollOffset() const {
1977 return last_scroll_offset_; 1977 return last_scroll_offset_;
1978 } 1978 }
1979 1979
1980 bool RenderWidgetHostImpl::ShouldForwardTouchEvent() const { 1980 bool RenderWidgetHostImpl::ShouldForwardTouchEvent() const {
1981 // Always send a touch event if the renderer has a touch-event handler. It is 1981 // Always send a touch event if the renderer has a touch-event handler. It is
1982 // possible that a renderer stops listening to touch-events while there are 1982 // possible that a renderer stops listening to touch-events while there are
1983 // still events in the touch-queue. In such cases, the new events should still 1983 // still events in the touch-queue. In such cases, the new events should still
1984 // get into the queue. 1984 // get into the queue.
1985 return has_touch_handler_ || !touch_event_queue_->empty(); 1985 return has_touch_handler_ || !touch_event_queue_->empty();
1986 } 1986 }
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
2165 return; 2165 return;
2166 2166
2167 OnRenderAutoResized(new_size); 2167 OnRenderAutoResized(new_size);
2168 } 2168 }
2169 2169
2170 void RenderWidgetHostImpl::DetachDelegate() { 2170 void RenderWidgetHostImpl::DetachDelegate() {
2171 delegate_ = NULL; 2171 delegate_ = NULL;
2172 } 2172 }
2173 2173
2174 } // namespace content 2174 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698