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

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

Issue 24012002: Move Range code to gfx. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: d Created 7 years, 3 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/browser/renderer_host/render_view_host_impl.h" 5 #include "content/browser/renderer_host/render_view_host_impl.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 1388 matching lines...) Expand 10 before | Expand all | Expand 10 after
1399 bool is_pinned_to_left, bool is_pinned_to_right) { 1399 bool is_pinned_to_left, bool is_pinned_to_right) {
1400 if (view_) 1400 if (view_)
1401 view_->SetScrollOffsetPinning(is_pinned_to_left, is_pinned_to_right); 1401 view_->SetScrollOffsetPinning(is_pinned_to_left, is_pinned_to_right);
1402 } 1402 }
1403 1403
1404 void RenderViewHostImpl::OnDidChangeNumWheelEvents(int count) { 1404 void RenderViewHostImpl::OnDidChangeNumWheelEvents(int count) {
1405 } 1405 }
1406 1406
1407 void RenderViewHostImpl::OnSelectionChanged(const string16& text, 1407 void RenderViewHostImpl::OnSelectionChanged(const string16& text,
1408 size_t offset, 1408 size_t offset,
1409 const ui::Range& range) { 1409 const gfx::Range& range) {
1410 if (view_) 1410 if (view_)
1411 view_->SelectionChanged(text, offset, range); 1411 view_->SelectionChanged(text, offset, range);
1412 } 1412 }
1413 1413
1414 void RenderViewHostImpl::OnSelectionBoundsChanged( 1414 void RenderViewHostImpl::OnSelectionBoundsChanged(
1415 const ViewHostMsg_SelectionBounds_Params& params) { 1415 const ViewHostMsg_SelectionBounds_Params& params) {
1416 if (view_) { 1416 if (view_) {
1417 view_->SelectionBoundsChanged(params); 1417 view_->SelectionBoundsChanged(params);
1418 } 1418 }
1419 } 1419 }
(...skipping 644 matching lines...) Expand 10 before | Expand all | Expand 10 after
2064 const std::vector<base::FilePath>& file_paths = state.GetReferencedFiles(); 2064 const std::vector<base::FilePath>& file_paths = state.GetReferencedFiles();
2065 for (std::vector<base::FilePath>::const_iterator file = file_paths.begin(); 2065 for (std::vector<base::FilePath>::const_iterator file = file_paths.begin();
2066 file != file_paths.end(); ++file) { 2066 file != file_paths.end(); ++file) {
2067 if (!policy->CanReadFile(GetProcess()->GetID(), *file)) 2067 if (!policy->CanReadFile(GetProcess()->GetID(), *file))
2068 return false; 2068 return false;
2069 } 2069 }
2070 return true; 2070 return true;
2071 } 2071 }
2072 2072
2073 } // namespace content 2073 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_view_host_impl.h ('k') | content/browser/renderer_host/render_widget_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698