diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-07 21:42:56 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-07 21:42:56 +0000 |
commit | 0dc58a4fd486067f250e3ebf7e9ed8521db39cd8 (patch) | |
tree | 72e8239a396b87ec313b800d673139cc4febbbce /chrome/browser/autocomplete | |
parent | 6ec02ed85b306d6e599f4f3c46c1adf29858a370 (diff) | |
download | chromium_src-0dc58a4fd486067f250e3ebf7e9ed8521db39cd8.zip chromium_src-0dc58a4fd486067f250e3ebf7e9ed8521db39cd8.tar.gz chromium_src-0dc58a4fd486067f250e3ebf7e9ed8521db39cd8.tar.bz2 |
Move pgup/dn special casing to browser window gtk.
Review URL: http://codereview.chromium.org/112006
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@15586 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete')
-rw-r--r-- | chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc b/chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc index b1d0791..566c8d2 100644 --- a/chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc +++ b/chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc @@ -13,7 +13,6 @@ #include "chrome/browser/autocomplete/autocomplete_edit.h" #include "chrome/browser/autocomplete/autocomplete_popup_model.h" #include "chrome/browser/autocomplete/autocomplete_popup_view_gtk.h" -#include "chrome/browser/gtk/browser_window_gtk.h" #include "chrome/browser/gtk/location_bar_view_gtk.h" #include "chrome/browser/tab_contents/tab_contents.h" #include "chrome/browser/toolbar_model.h" @@ -353,24 +352,6 @@ void AutocompleteEditViewGtk::HandleEndUserAction() { gboolean AutocompleteEditViewGtk::HandleKeyPress(GtkWidget* widget, GdkEventKey* event) { - GdkModifierType modifier = GdkModifierType( - event->state & gtk_accelerator_get_default_mod_mask()); - - // We want to let the browser handle ctrl-pgup and ctrl-pgdn. - if ((event->keyval == GDK_Page_Up || event->keyval == GDK_Page_Down) && - modifier == GDK_CONTROL_MASK) { - GtkWidget* window = gtk_widget_get_toplevel(widget); - if (!window) { - NOTREACHED(); - } else { - BrowserWindowGtk* browser_window = static_cast<BrowserWindowGtk*>( - g_object_get_data(G_OBJECT(window), "browser_window_gtk")); - browser_window->HandleAccelerator(event->keyval, - static_cast<GdkModifierType>(event->state)); - return TRUE; - } - } - // This is very similar to the special casing of the return key in the // GtkTextView key_press default handler. TODO(deanm): We do however omit // some IME related code, this might become a problem if an IME wants to |