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

Side by Side Diff: chrome/renderer/chrome_render_view_observer.cc

Issue 9473001: Extract minimal RenderViewHost interface for embedders, leaving (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to LKGR. Created 8 years, 9 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/chrome_ppb_pdf_impl.cc ('k') | chrome/renderer/extensions/app_bindings.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) 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 "chrome/renderer/chrome_render_view_observer.h" 5 #include "chrome/renderer/chrome_render_view_observer.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after
739 WebKit::WebAccessibilityObject accessibility = 739 WebKit::WebAccessibilityObject accessibility =
740 render_view()->GetWebView()->accessibilityObject(); 740 render_view()->GetWebView()->accessibilityObject();
741 if (accessibility.isNull()) 741 if (accessibility.isNull())
742 return; 742 return;
743 const WebKit::WebTouchPoint point = event.touches[0]; 743 const WebKit::WebTouchPoint point = event.touches[0];
744 accessibility = accessibility.hitTest(point.position); 744 accessibility = accessibility.hitTest(point.position);
745 if (accessibility.isNull()) 745 if (accessibility.isNull())
746 return; 746 return;
747 if (accessibility.node() == node) 747 if (accessibility.node() == node)
748 render_view()->Send(new ChromeViewHostMsg_FocusedEditableNodeTouched( 748 render_view()->Send(new ChromeViewHostMsg_FocusedEditableNodeTouched(
749 render_view()->GetRoutingId())); 749 render_view()->GetRoutingID()));
750 } 750 }
751 751
752 void ChromeRenderViewObserver::CapturePageInfo(int load_id, 752 void ChromeRenderViewObserver::CapturePageInfo(int load_id,
753 bool preliminary_capture) { 753 bool preliminary_capture) {
754 if (load_id != render_view()->GetPageId()) 754 if (load_id != render_view()->GetPageId())
755 return; // This capture call is no longer relevant due to navigation. 755 return; // This capture call is no longer relevant due to navigation.
756 756
757 // Skip indexing if this is not a new load. Note that the case where 757 // Skip indexing if this is not a new load. Note that the case where
758 // load_id == last_indexed_page_id_ is more complicated, since we need to 758 // load_id == last_indexed_page_id_ is more complicated, since we need to
759 // reindex if the toplevel URL has changed (such as from a redirect), even 759 // reindex if the toplevel URL has changed (such as from a redirect), even
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
1049 reinterpret_cast<const unsigned char*>(&data[0]); 1049 reinterpret_cast<const unsigned char*>(&data[0]);
1050 1050
1051 return decoder.Decode(src_data, data.size()); 1051 return decoder.Decode(src_data, data.size());
1052 } 1052 }
1053 return SkBitmap(); 1053 return SkBitmap();
1054 } 1054 }
1055 1055
1056 bool ChromeRenderViewObserver::IsStrictSecurityHost(const std::string& host) { 1056 bool ChromeRenderViewObserver::IsStrictSecurityHost(const std::string& host) {
1057 return (strict_security_hosts_.find(host) != strict_security_hosts_.end()); 1057 return (strict_security_hosts_.find(host) != strict_security_hosts_.end());
1058 } 1058 }
OLDNEW
« no previous file with comments | « chrome/renderer/chrome_ppb_pdf_impl.cc ('k') | chrome/renderer/extensions/app_bindings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698