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

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

Issue 6279005: Adjust comments for new Source/ location. (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/renderer_host/gtk_key_bindings_handler.h » ('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/gtk_im_context_wrapper.h" 5 #include "chrome/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 #include <algorithm> 10 #include <algorithm>
(...skipping 11 matching lines...) Expand all
22 #include "chrome/browser/renderer_host/render_widget_host.h" 22 #include "chrome/browser/renderer_host/render_widget_host.h"
23 #include "chrome/browser/renderer_host/render_widget_host_view_gtk.h" 23 #include "chrome/browser/renderer_host/render_widget_host_view_gtk.h"
24 #include "chrome/common/native_web_keyboard_event.h" 24 #include "chrome/common/native_web_keyboard_event.h"
25 #include "chrome/common/render_messages.h" 25 #include "chrome/common/render_messages.h"
26 #include "gfx/gtk_util.h" 26 #include "gfx/gtk_util.h"
27 #include "gfx/rect.h" 27 #include "gfx/rect.h"
28 #include "grit/generated_resources.h" 28 #include "grit/generated_resources.h"
29 #include "third_party/skia/include/core/SkColor.h" 29 #include "third_party/skia/include/core/SkColor.h"
30 30
31 namespace { 31 namespace {
32 // Copied from third_party/WebKit/WebCore/page/EventHandler.cpp 32 // Copied from third_party/WebKit/Source/WebCore/page/EventHandler.cpp
33 // 33 //
34 // Match key code of composition keydown event on windows. 34 // Match key code of composition keydown event on windows.
35 // IE sends VK_PROCESSKEY which has value 229; 35 // IE sends VK_PROCESSKEY which has value 229;
36 // 36 //
37 // Please refer to following documents for detals: 37 // Please refer to following documents for detals:
38 // - Virtual-Key Codes 38 // - Virtual-Key Codes
39 // http://msdn.microsoft.com/en-us/library/ms645540(VS.85).aspx 39 // http://msdn.microsoft.com/en-us/library/ms645540(VS.85).aspx
40 // - How the IME System Works 40 // - How the IME System Works
41 // http://msdn.microsoft.com/en-us/library/cc194848.aspx 41 // http://msdn.microsoft.com/en-us/library/cc194848.aspx
42 // - ImmGetVirtualKey Function 42 // - ImmGetVirtualKey Function
(...skipping 626 matching lines...) Expand 10 before | Expand all | Expand 10 after
669 } while (pango_attr_iterator_next(iter)); 669 } while (pango_attr_iterator_next(iter));
670 pango_attr_iterator_destroy(iter); 670 pango_attr_iterator_destroy(iter);
671 } 671 }
672 672
673 // Use a black thin underline by default. 673 // Use a black thin underline by default.
674 if (underlines->empty()) { 674 if (underlines->empty()) {
675 underlines->push_back( 675 underlines->push_back(
676 WebKit::WebCompositionUnderline(0, length, SK_ColorBLACK, false)); 676 WebKit::WebCompositionUnderline(0, length, SK_ColorBLACK, false));
677 } 677 }
678 } 678 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/renderer_host/gtk_key_bindings_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698