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

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

Issue 89873002: Ensure that the OSK on Windows 8 shows up when we tap on an editable field in any WebContents. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/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 805 matching lines...) Expand 10 before | Expand all | Expand 10 after
816 base::TimeDelta::FromMilliseconds(kDelayForForcedCaptureMs)); 816 base::TimeDelta::FromMilliseconds(kDelayForForcedCaptureMs));
817 } 817 }
818 818
819 void ChromeRenderViewObserver::DidClearWindowObject(WebFrame* frame) { 819 void ChromeRenderViewObserver::DidClearWindowObject(WebFrame* frame) {
820 if (render_view()->GetEnabledBindings() & 820 if (render_view()->GetEnabledBindings() &
821 content::BINDINGS_POLICY_EXTERNAL_HOST) { 821 content::BINDINGS_POLICY_EXTERNAL_HOST) {
822 GetExternalHostBindings()->BindToJavascript(frame, "externalHost"); 822 GetExternalHostBindings()->BindToJavascript(frame, "externalHost");
823 } 823 }
824 } 824 }
825 825
826 void ChromeRenderViewObserver::DidHandleGestureEvent(
827 const WebGestureEvent& event) {
828 if (event.type != blink::WebGestureEvent::GestureTap)
829 return;
830
831 blink::WebTextInputType text_input_type =
832 render_view()->GetWebView()->textInputInfo().type;
833
834 render_view()->Send(new ChromeViewHostMsg_FocusedNodeTouched(
835 routing_id(),
836 text_input_type != blink::WebTextInputTypeNone));
837 }
838
839 void ChromeRenderViewObserver::DetailedConsoleMessageAdded( 826 void ChromeRenderViewObserver::DetailedConsoleMessageAdded(
840 const base::string16& message, 827 const base::string16& message,
841 const base::string16& source, 828 const base::string16& source,
842 const base::string16& stack_trace_string, 829 const base::string16& stack_trace_string,
843 int32 line_number, 830 int32 line_number,
844 int32 severity_level) { 831 int32 severity_level) {
845 string16 trimmed_message = message; 832 string16 trimmed_message = message;
846 extensions::StackTrace stack_trace = GetStackTraceFromMessage( 833 extensions::StackTrace stack_trace = GetStackTraceFromMessage(
847 &trimmed_message, 834 &trimmed_message,
848 source, 835 source,
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
1016 WebElement element = node.to<WebElement>(); 1003 WebElement element = node.to<WebElement>();
1017 if (!element.hasTagName(tag_name)) 1004 if (!element.hasTagName(tag_name))
1018 continue; 1005 continue;
1019 WebString value = element.getAttribute(attribute_name); 1006 WebString value = element.getAttribute(attribute_name);
1020 if (value.isNull() || !LowerCaseEqualsASCII(value, "refresh")) 1007 if (value.isNull() || !LowerCaseEqualsASCII(value, "refresh"))
1021 continue; 1008 continue;
1022 return true; 1009 return true;
1023 } 1010 }
1024 return false; 1011 return false;
1025 } 1012 }
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