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

Side by Side Diff: chrome/browser/renderer_host/render_widget_host_view_views.cc

Issue 6317002: Fix touch compile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 11 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 | « no previous file | chrome/browser/ui/views/dropdown_bar_host_gtk.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/browser/renderer_host/render_widget_host_view_views.h" 5 #include "chrome/browser/renderer_host/render_widget_host_view_views.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <string> 8 #include <string>
9 9
10 #include "app/l10n_util.h" 10 #include "app/l10n_util.h"
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after
519 // for (1) is not processed by the renderer, then it is processed by the 519 // for (1) is not processed by the renderer, then it is processed by the
520 // browser, and (2) is ignored. 520 // browser, and (2) is ignored.
521 521
522 NativeWebKeyboardEvent wke; 522 NativeWebKeyboardEvent wke;
523 wke.type = WebKit::WebInputEvent::RawKeyDown; 523 wke.type = WebKit::WebInputEvent::RawKeyDown;
524 wke.windowsKeyCode = e.GetKeyCode(); 524 wke.windowsKeyCode = e.GetKeyCode();
525 wke.setKeyIdentifierFromWindowsKeyCode(); 525 wke.setKeyIdentifierFromWindowsKeyCode();
526 526
527 wke.text[0] = wke.unmodifiedText[0] = 527 wke.text[0] = wke.unmodifiedText[0] =
528 static_cast<unsigned short>(gdk_keyval_to_unicode( 528 static_cast<unsigned short>(gdk_keyval_to_unicode(
529 app::GdkKeyCodeForWindowsKeyCode(e.GetKeyCode(), 529 ui::GdkKeyCodeForWindowsKeyCode(e.GetKeyCode(),
530 e.IsShiftDown() ^ e.IsCapsLockDown()))); 530 e.IsShiftDown() ^ e.IsCapsLockDown())));
531 531
532 wke.modifiers = WebInputEventFlagsFromViewsEvent(e); 532 wke.modifiers = WebInputEventFlagsFromViewsEvent(e);
533 ForwardKeyboardEvent(wke); 533 ForwardKeyboardEvent(wke);
534 534
535 // send the keypress event 535 // send the keypress event
536 wke.type = WebKit::WebInputEvent::Char; 536 wke.type = WebKit::WebInputEvent::Char;
537 ForwardKeyboardEvent(wke); 537 ForwardKeyboardEvent(wke);
538 538
539 return TRUE; 539 return TRUE;
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 } 740 }
741 741
742 // static 742 // static
743 RenderWidgetHostView* 743 RenderWidgetHostView*
744 RenderWidgetHostView::GetRenderWidgetHostViewFromNativeView( 744 RenderWidgetHostView::GetRenderWidgetHostViewFromNativeView(
745 gfx::NativeView widget) { 745 gfx::NativeView widget) {
746 gpointer user_data = g_object_get_data(G_OBJECT(widget), 746 gpointer user_data = g_object_get_data(G_OBJECT(widget),
747 kRenderWidgetHostViewKey); 747 kRenderWidgetHostViewKey);
748 return reinterpret_cast<RenderWidgetHostView*>(user_data); 748 return reinterpret_cast<RenderWidgetHostView*>(user_data);
749 } 749 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/dropdown_bar_host_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698