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

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

Issue 99953002: Revert 238143 "Merge 237646 "Ensure that the OSK on Windows 8 sh..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1700/src/
Patch Set: Created 7 years 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 "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 813 matching lines...) Expand 10 before | Expand all | Expand 10 after
824 base::TimeDelta::FromMilliseconds(kDelayForForcedCaptureMs)); 824 base::TimeDelta::FromMilliseconds(kDelayForForcedCaptureMs));
825 } 825 }
826 826
827 void ChromeRenderViewObserver::DidClearWindowObject(WebFrame* frame) { 827 void ChromeRenderViewObserver::DidClearWindowObject(WebFrame* frame) {
828 if (render_view()->GetEnabledBindings() & 828 if (render_view()->GetEnabledBindings() &
829 content::BINDINGS_POLICY_EXTERNAL_HOST) { 829 content::BINDINGS_POLICY_EXTERNAL_HOST) {
830 GetExternalHostBindings()->BindToJavascript(frame, "externalHost"); 830 GetExternalHostBindings()->BindToJavascript(frame, "externalHost");
831 } 831 }
832 } 832 }
833 833
834 void ChromeRenderViewObserver::DidHandleGestureEvent(
835 const WebGestureEvent& event) {
836 if (event.type != WebKit::WebGestureEvent::GestureTap)
837 return;
838
839 WebKit::WebTextInputType text_input_type =
840 render_view()->GetWebView()->textInputInfo().type;
841
842 render_view()->Send(new ChromeViewHostMsg_FocusedNodeTouched(
843 routing_id(),
844 text_input_type != WebKit::WebTextInputTypeNone));
845 }
846
834 void ChromeRenderViewObserver::DetailedConsoleMessageAdded( 847 void ChromeRenderViewObserver::DetailedConsoleMessageAdded(
835 const base::string16& message, 848 const base::string16& message,
836 const base::string16& source, 849 const base::string16& source,
837 const base::string16& stack_trace_string, 850 const base::string16& stack_trace_string,
838 int32 line_number, 851 int32 line_number,
839 int32 severity_level) { 852 int32 severity_level) {
840 string16 trimmed_message = message; 853 string16 trimmed_message = message;
841 extensions::StackTrace stack_trace = GetStackTraceFromMessage( 854 extensions::StackTrace stack_trace = GetStackTraceFromMessage(
842 &trimmed_message, 855 &trimmed_message,
843 source, 856 source,
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after
1019 WebElement element = node.to<WebElement>(); 1032 WebElement element = node.to<WebElement>();
1020 if (!element.hasTagName(tag_name)) 1033 if (!element.hasTagName(tag_name))
1021 continue; 1034 continue;
1022 WebString value = element.getAttribute(attribute_name); 1035 WebString value = element.getAttribute(attribute_name);
1023 if (value.isNull() || !LowerCaseEqualsASCII(value, "refresh")) 1036 if (value.isNull() || !LowerCaseEqualsASCII(value, "refresh"))
1024 continue; 1037 continue;
1025 return true; 1038 return true;
1026 } 1039 }
1027 return false; 1040 return false;
1028 } 1041 }
OLDNEW
« no previous file with comments | « chrome/renderer/chrome_render_view_observer.h ('k') | content/browser/renderer_host/render_view_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698