| 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 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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_ |
| OLD | NEW |