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

Side by Side Diff: webkit/glue/webview_impl.cc

Issue 147011: Integrating GtkIMContext into the RenderWidgetHostViewGtk class (Take 2).... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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 | « webkit/api/src/gtk/WebInputEventFactory.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2007 Google Inc. All Rights Reserved. 2 * Copyright 2007 Google Inc. All Rights Reserved.
3 * 3 *
4 * Portions Copyright (C) 2006 Apple Computer, Inc. All rights reserved. 4 * Portions Copyright (C) 2006 Apple Computer, Inc. All rights reserved.
5 * 5 *
6 * ***** BEGIN LICENSE BLOCK ***** 6 * ***** BEGIN LICENSE BLOCK *****
7 * 7 *
8 * Redistribution and use in source and binary forms, with or without 8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted provided that the following conditions 9 * modification, are permitted provided that the following conditions
10 * are met: 10 * are met:
(...skipping 759 matching lines...) Expand 10 before | Expand all | Expand 10 after
770 switch (event.type) { 770 switch (event.type) {
771 case WebInputEvent::Char: { 771 case WebInputEvent::Char: {
772 if (event.windowsKeyCode == VKEY_SPACE) { 772 if (event.windowsKeyCode == VKEY_SPACE) {
773 int key_code = ((event.modifiers & WebInputEvent::ShiftKey) ? 773 int key_code = ((event.modifiers & WebInputEvent::ShiftKey) ?
774 VKEY_PRIOR : VKEY_NEXT); 774 VKEY_PRIOR : VKEY_NEXT);
775 return ScrollViewWithKeyboard(key_code); 775 return ScrollViewWithKeyboard(key_code);
776 } 776 }
777 break; 777 break;
778 } 778 }
779 779
780 #if defined(OS_WIN) 780 #if defined(OS_WIN) || defined(OS_LINUX)
781 case WebInputEvent::RawKeyDown: { 781 case WebInputEvent::RawKeyDown: {
782 #else 782 #else
783 case WebInputEvent::KeyDown: { 783 case WebInputEvent::KeyDown: {
784 #endif 784 #endif
785 if (event.modifiers == WebInputEvent::ControlKey) { 785 if (event.modifiers == WebInputEvent::ControlKey) {
786 switch (event.windowsKeyCode) { 786 switch (event.windowsKeyCode) {
787 case 'A': 787 case 'A':
788 GetFocusedFrame()->SelectAll(); 788 GetFocusedFrame()->SelectAll();
789 return true; 789 return true;
790 case VKEY_INSERT: 790 case VKEY_INSERT:
(...skipping 1137 matching lines...) Expand 10 before | Expand all | Expand 10 after
1928 1928
1929 return document->focusedNode(); 1929 return document->focusedNode();
1930 } 1930 }
1931 1931
1932 HitTestResult WebViewImpl::HitTestResultForWindowPos(const IntPoint& pos) { 1932 HitTestResult WebViewImpl::HitTestResultForWindowPos(const IntPoint& pos) {
1933 IntPoint doc_point( 1933 IntPoint doc_point(
1934 page_->mainFrame()->view()->windowToContents(pos)); 1934 page_->mainFrame()->view()->windowToContents(pos));
1935 return page_->mainFrame()->eventHandler()-> 1935 return page_->mainFrame()->eventHandler()->
1936 hitTestResultAtPoint(doc_point, false); 1936 hitTestResultAtPoint(doc_point, false);
1937 } 1937 }
OLDNEW
« no previous file with comments | « webkit/api/src/gtk/WebInputEventFactory.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698