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

Side by Side Diff: content/browser/renderer_host/gtk_im_context_wrapper.cc

Issue 10383239: Move NativeWebKeyboardEvent to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 8 years, 7 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
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 "content/browser/renderer_host/gtk_im_context_wrapper.h" 5 #include "content/browser/renderer_host/gtk_im_context_wrapper.h"
6 6
7 #include <gdk/gdk.h> 7 #include <gdk/gdk.h>
8 #include <gdk/gdkkeysyms.h> 8 #include <gdk/gdkkeysyms.h>
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 10
11 #include <algorithm> 11 #include <algorithm>
12 12
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/string_util.h" 14 #include "base/string_util.h"
15 #include "base/utf_string_conversions.h" 15 #include "base/utf_string_conversions.h"
16 #include "content/browser/renderer_host/render_widget_host_impl.h" 16 #include "content/browser/renderer_host/render_widget_host_impl.h"
17 #include "content/browser/renderer_host/render_widget_host_view_gtk.h" 17 #include "content/browser/renderer_host/render_widget_host_view_gtk.h"
18 #include "content/public/browser/native_web_keyboard_event.h" 18 #include "content/public/browser/native_web_keyboard_event.h"
19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli ne.h" 19 #include "third_party/WebKit/Source/WebKit/chromium/public/WebCompositionUnderli ne.h"
20 #include "ui/base/gtk/gtk_im_context_util.h" 20 #include "ui/base/gtk/gtk_im_context_util.h"
21 #include "ui/gfx/gtk_util.h" 21 #include "ui/gfx/gtk_util.h"
22 #include "ui/gfx/rect.h" 22 #include "ui/gfx/rect.h"
23 23
24 using content::NativeWebKeyboardEvent;
24 using content::RenderWidgetHostImpl; 25 using content::RenderWidgetHostImpl;
25 26
26 namespace { 27 namespace {
27 // Copied from third_party/WebKit/Source/WebCore/page/EventHandler.cpp 28 // Copied from third_party/WebKit/Source/WebCore/page/EventHandler.cpp
28 // 29 //
29 // Match key code of composition keydown event on windows. 30 // Match key code of composition keydown event on windows.
30 // IE sends VK_PROCESSKEY which has value 229; 31 // IE sends VK_PROCESSKEY which has value 229;
31 // 32 //
32 // Please refer to following documents for detals: 33 // Please refer to following documents for detals:
33 // - Virtual-Key Codes 34 // - Virtual-Key Codes
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after
652 653
653 void GtkIMContextWrapper::HandleHostViewRealizeThunk( 654 void GtkIMContextWrapper::HandleHostViewRealizeThunk(
654 GtkWidget* widget, GtkIMContextWrapper* self) { 655 GtkWidget* widget, GtkIMContextWrapper* self) {
655 self->HandleHostViewRealize(widget); 656 self->HandleHostViewRealize(widget);
656 } 657 }
657 658
658 void GtkIMContextWrapper::HandleHostViewUnrealizeThunk( 659 void GtkIMContextWrapper::HandleHostViewUnrealizeThunk(
659 GtkWidget* widget, GtkIMContextWrapper* self) { 660 GtkWidget* widget, GtkIMContextWrapper* self) {
660 self->HandleHostViewUnrealize(); 661 self->HandleHostViewUnrealize();
661 } 662 }
OLDNEW
« no previous file with comments | « content/browser/renderer_host/gtk_im_context_wrapper.h ('k') | content/browser/renderer_host/gtk_key_bindings_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698