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

Side by Side Diff: content/common/native_web_keyboard_event.h

Issue 7006006: Replace OS_LINUX ifdefs with OS_POSIX & !OS_MACOSX, TOOLKIT_USES_GTK, or (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 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 | « content/common/gpu/x_util.h ('k') | content/common/native_web_keyboard_event_views.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #ifndef CONTENT_COMMON_NATIVE_WEB_KEYBOARD_EVENT_H_ 5 #ifndef CONTENT_COMMON_NATIVE_WEB_KEYBOARD_EVENT_H_
6 #define CONTENT_COMMON_NATIVE_WEB_KEYBOARD_EVENT_H_ 6 #define CONTENT_COMMON_NATIVE_WEB_KEYBOARD_EVENT_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 GdkEventKey* os_event; 79 GdkEventKey* os_event;
80 #endif 80 #endif
81 81
82 // True if the browser should ignore this event if it's not handled by the 82 // True if the browser should ignore this event if it's not handled by the
83 // renderer. This happens for RawKeyDown events that are created while IME is 83 // renderer. This happens for RawKeyDown events that are created while IME is
84 // active and is necessary to prevent backspace from doing "history back" if 84 // active and is necessary to prevent backspace from doing "history back" if
85 // it is hit in ime mode. 85 // it is hit in ime mode.
86 // Currently, it's only used by Linux and Mac ports. 86 // Currently, it's only used by Linux and Mac ports.
87 bool skip_in_browser; 87 bool skip_in_browser;
88 88
89 #if defined(OS_LINUX) 89 #if defined(TOOLKIT_USES_GTK)
90 // True if the key event matches an edit command. In order to ensure the edit 90 // True if the key event matches an edit command. In order to ensure the edit
91 // command always work in web page, the browser should not pre-handle this key 91 // command always work in web page, the browser should not pre-handle this key
92 // event as a reserved accelerator. See http://crbug.com/54573 92 // event as a reserved accelerator. See http://crbug.com/54573
93 bool match_edit_command; 93 bool match_edit_command;
94 #endif 94 #endif
95 }; 95 };
96 96
97 #endif // CONTENT_COMMON_NATIVE_WEB_KEYBOARD_EVENT_H_ 97 #endif // CONTENT_COMMON_NATIVE_WEB_KEYBOARD_EVENT_H_
OLDNEW
« no previous file with comments | « content/common/gpu/x_util.h ('k') | content/common/native_web_keyboard_event_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698