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

Side by Side Diff: chrome/browser/autocomplete/autocomplete_edit_view_gtk.h

Issue 196020: Fix issue 20934: Omnibox keyboard behavior wrong for "See recent pages in his... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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/autocomplete/autocomplete_edit_view_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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_GTK_H_ 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_GTK_H_
6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_GTK_H_ 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_GTK_H_
7 7
8 #include <gtk/gtk.h> 8 #include <gtk/gtk.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 // is released (we only do so if the view was initially unfocused). 378 // is released (we only do so if the view was initially unfocused).
379 bool text_view_focused_before_button_press_; 379 bool text_view_focused_before_button_press_;
380 380
381 #if !defined(TOOLKIT_VIEWS) 381 #if !defined(TOOLKIT_VIEWS)
382 // Supplies colors, et cetera. 382 // Supplies colors, et cetera.
383 GtkThemeProvider* theme_provider_; 383 GtkThemeProvider* theme_provider_;
384 384
385 NotificationRegistrar registrar_; 385 NotificationRegistrar registrar_;
386 #endif 386 #endif
387 387
388 // Indicates if Enter key was pressed.
389 //
390 // It's used in the key press handler to detect an Enter key press event
391 // during sync dispatch of "end-user-action" signal so that an unexpected
392 // change caused by the event can be ignored in OnAfterPossibleChange().
393 bool enter_was_pressed_;
394
388 // Indicates if Tab key was pressed. 395 // Indicates if Tab key was pressed.
389 // 396 //
390 // It's only used in the key press handler to detect a Tab key press event 397 // It's only used in the key press handler to detect a Tab key press event
391 // during sync dispatch of "move-focus" signal. 398 // during sync dispatch of "move-focus" signal.
392 bool tab_was_pressed_; 399 bool tab_was_pressed_;
393 400
394 // Indicates that user requested to paste clipboard. 401 // Indicates that user requested to paste clipboard.
395 // The actual paste clipboard action might be performed later if the 402 // The actual paste clipboard action might be performed later if the
396 // clipboard is not empty. 403 // clipboard is not empty.
397 bool paste_clipboard_requested_; 404 bool paste_clipboard_requested_;
398 405
399 // If a character is inserted, store it in this variable so that it can 406 // If a character is inserted, store it in this variable so that it can
400 // be used later in "key-press-event" signal handler to determine if a Tab or 407 // be used later in "key-press-event" signal handler to determine if a Tab or
401 // Enter key event is handled by IME or not. 408 // Enter key event is handled by IME or not.
402 char char_inserted_; 409 char char_inserted_;
403 410
404 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewGtk); 411 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewGtk);
405 }; 412 };
406 413
407 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_GTK_H_ 414 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_GTK_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/autocomplete/autocomplete_edit_view_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698