| OLD | NEW |
| 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 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 // | 401 // |
| 402 // It's only used in the key press handler to detect a Tab key press event | 402 // It's only used in the key press handler to detect a Tab key press event |
| 403 // during sync dispatch of "move-focus" signal. | 403 // during sync dispatch of "move-focus" signal. |
| 404 bool tab_was_pressed_; | 404 bool tab_was_pressed_; |
| 405 | 405 |
| 406 // Indicates that user requested to paste clipboard. | 406 // Indicates that user requested to paste clipboard. |
| 407 // The actual paste clipboard action might be performed later if the | 407 // The actual paste clipboard action might be performed later if the |
| 408 // clipboard is not empty. | 408 // clipboard is not empty. |
| 409 bool paste_clipboard_requested_; | 409 bool paste_clipboard_requested_; |
| 410 | 410 |
| 411 // If a character is inserted, store it in this variable so that it can | 411 // Indicates if an Enter key press is inserted as text. |
| 412 // be used later in "key-press-event" signal handler to determine if a Tab or | 412 // It's used in the key press handler to determine if an Enter key event is |
| 413 // Enter key event is handled by IME or not. | 413 // handled by IME or not. |
| 414 char char_inserted_; | 414 bool enter_was_inserted_; |
| 415 | 415 |
| 416 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewGtk); | 416 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewGtk); |
| 417 }; | 417 }; |
| 418 | 418 |
| 419 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_GTK_H_ | 419 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_GTK_H_ |
| OLD | NEW |