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

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

Issue 11888003: Differentiate invisible cursor mode and disabled mouse events mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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
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/renderer/render_view_impl.h" 5 #include "content/renderer/render_view_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 4116 matching lines...) Expand 10 before | Expand all | Expand 10 after
4127 bool is_pinned_to_right = offset.width >= maximum_offset.width; 4127 bool is_pinned_to_right = offset.width >= maximum_offset.width;
4128 4128
4129 if (is_pinned_to_left != cached_is_main_frame_pinned_to_left_ || 4129 if (is_pinned_to_left != cached_is_main_frame_pinned_to_left_ ||
4130 is_pinned_to_right != cached_is_main_frame_pinned_to_right_) { 4130 is_pinned_to_right != cached_is_main_frame_pinned_to_right_) {
4131 Send(new ViewHostMsg_DidChangeScrollOffsetPinningForMainFrame( 4131 Send(new ViewHostMsg_DidChangeScrollOffsetPinningForMainFrame(
4132 routing_id_, is_pinned_to_left, is_pinned_to_right)); 4132 routing_id_, is_pinned_to_left, is_pinned_to_right));
4133 4133
4134 cached_is_main_frame_pinned_to_left_ = is_pinned_to_left; 4134 cached_is_main_frame_pinned_to_left_ = is_pinned_to_left;
4135 cached_is_main_frame_pinned_to_right_ = is_pinned_to_right; 4135 cached_is_main_frame_pinned_to_right_ = is_pinned_to_right;
4136 } 4136 }
4137
4138 Send(new ViewHostMsg_DidChangeScrollOffset(routing_id_));
4137 } 4139 }
4138 4140
4139 void RenderViewImpl::didChangeScrollOffset(WebFrame* frame) { 4141 void RenderViewImpl::didChangeScrollOffset(WebFrame* frame) {
4140 StartNavStateSyncTimerIfNecessary(); 4142 StartNavStateSyncTimerIfNecessary();
4141 4143
4142 if (webview()->mainFrame() == frame) 4144 if (webview()->mainFrame() == frame)
4143 UpdateScrollState(frame); 4145 UpdateScrollState(frame);
4144 4146
4145 FOR_EACH_OBSERVER( 4147 FOR_EACH_OBSERVER(
4146 RenderViewObserver, observers_, DidChangeScrollOffset(frame)); 4148 RenderViewObserver, observers_, DidChangeScrollOffset(frame));
(...skipping 2473 matching lines...) Expand 10 before | Expand all | Expand 10 after
6620 } 6622 }
6621 #endif 6623 #endif
6622 6624
6623 void RenderViewImpl::OnReleaseDisambiguationPopupDIB( 6625 void RenderViewImpl::OnReleaseDisambiguationPopupDIB(
6624 TransportDIB::Handle dib_handle) { 6626 TransportDIB::Handle dib_handle) {
6625 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle); 6627 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle);
6626 RenderProcess::current()->ReleaseTransportDIB(dib); 6628 RenderProcess::current()->ReleaseTransportDIB(dib);
6627 } 6629 }
6628 6630
6629 } // namespace content 6631 } // namespace content
OLDNEW
« no previous file with comments | « content/port/browser/render_widget_host_view_port.h ('k') | ui/views/corewm/compound_event_filter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698