OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_UI_GTK_OMNIBOX_OMNIBOX_VIEW_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_OMNIBOX_OMNIBOX_VIEW_GTK_H_ |
6 #define CHROME_BROWSER_UI_GTK_OMNIBOX_OMNIBOX_VIEW_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_OMNIBOX_OMNIBOX_VIEW_GTK_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
10 | 10 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
99 size_t index, | 99 size_t index, |
100 const string16& keyword) OVERRIDE; | 100 const string16& keyword) OVERRIDE; |
101 virtual string16 GetText() const OVERRIDE; | 101 virtual string16 GetText() const OVERRIDE; |
102 virtual bool IsEditingOrEmpty() const OVERRIDE; | 102 virtual bool IsEditingOrEmpty() const OVERRIDE; |
103 virtual int GetIcon() const OVERRIDE; | 103 virtual int GetIcon() const OVERRIDE; |
104 virtual void SetUserText(const string16& text) OVERRIDE; | 104 virtual void SetUserText(const string16& text) OVERRIDE; |
105 virtual void SetUserText(const string16& text, | 105 virtual void SetUserText(const string16& text, |
106 const string16& display_text, | 106 const string16& display_text, |
107 bool update_popup) OVERRIDE; | 107 bool update_popup) OVERRIDE; |
108 virtual void SetWindowTextAndCaretPos(const string16& text, | 108 virtual void SetWindowTextAndCaretPos(const string16& text, |
109 size_t caret_pos, | 109 size_t caret_pos) OVERRIDE; |
110 bool update_popup, | |
111 bool notify_text_changed) OVERRIDE; | |
112 virtual void SetForcedQuery() OVERRIDE; | 110 virtual void SetForcedQuery() OVERRIDE; |
113 virtual bool IsSelectAll() OVERRIDE; | 111 virtual bool IsSelectAll() OVERRIDE; |
114 virtual bool DeleteAtEndPressed() OVERRIDE; | 112 virtual bool DeleteAtEndPressed() OVERRIDE; |
115 virtual void GetSelectionBounds(string16::size_type* start, | 113 virtual void GetSelectionBounds(string16::size_type* start, |
116 string16::size_type* end) const OVERRIDE; | 114 string16::size_type* end) const OVERRIDE; |
117 virtual void SelectAll(bool reversed) OVERRIDE; | 115 virtual void SelectAll(bool reversed) OVERRIDE; |
118 virtual void RevertAll() OVERRIDE; | 116 virtual void RevertAll() OVERRIDE; |
119 virtual void UpdatePopup() OVERRIDE; | 117 virtual void UpdatePopup() OVERRIDE; |
120 virtual void ClosePopup() OVERRIDE; | 118 virtual void ClosePopup() OVERRIDE; |
121 virtual void SetFocus() OVERRIDE; | 119 virtual void SetFocus() OVERRIDE; |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
456 // during sync dispatch of "end-user-action" signal so that an unexpected | 454 // during sync dispatch of "end-user-action" signal so that an unexpected |
457 // change caused by the event can be ignored in OnAfterPossibleChange(). | 455 // change caused by the event can be ignored in OnAfterPossibleChange(). |
458 bool enter_was_pressed_; | 456 bool enter_was_pressed_; |
459 | 457 |
460 // Indicates if Tab key was pressed. | 458 // Indicates if Tab key was pressed. |
461 // | 459 // |
462 // It's only used in the key press handler to detect a Tab key press event | 460 // It's only used in the key press handler to detect a Tab key press event |
463 // during sync dispatch of "move-focus" signal. | 461 // during sync dispatch of "move-focus" signal. |
464 bool tab_was_pressed_; | 462 bool tab_was_pressed_; |
465 | 463 |
466 // Indicates if Shift key was pressed. | |
467 // Used in conjunction with the Tab key to determine if either traversal | |
468 // needs to move up the results or if the keyword needs to be cleared. | |
469 bool shift_was_pressed_; | |
470 | |
471 // Indicates that user requested to paste clipboard. | 464 // Indicates that user requested to paste clipboard. |
472 // The actual paste clipboard action might be performed later if the | 465 // The actual paste clipboard action might be performed later if the |
473 // clipboard is not empty. | 466 // clipboard is not empty. |
474 bool paste_clipboard_requested_; | 467 bool paste_clipboard_requested_; |
475 | 468 |
476 // Indicates if an Enter key press is inserted as text. | 469 // Indicates if an Enter key press is inserted as text. |
477 // It's used in the key press handler to determine if an Enter key event is | 470 // It's used in the key press handler to determine if an Enter key event is |
478 // handled by IME or not. | 471 // handled by IME or not. |
479 bool enter_was_inserted_; | 472 bool enter_was_inserted_; |
480 | 473 |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
527 // The view that is going to be focused next. Only valid while handling | 520 // The view that is going to be focused next. Only valid while handling |
528 // "focus-out" events. | 521 // "focus-out" events. |
529 GtkWidget* going_to_focus_; | 522 GtkWidget* going_to_focus_; |
530 | 523 |
531 ui::GtkSignalRegistrar signals_; | 524 ui::GtkSignalRegistrar signals_; |
532 | 525 |
533 DISALLOW_COPY_AND_ASSIGN(OmniboxViewGtk); | 526 DISALLOW_COPY_AND_ASSIGN(OmniboxViewGtk); |
534 }; | 527 }; |
535 | 528 |
536 #endif // CHROME_BROWSER_UI_GTK_OMNIBOX_OMNIBOX_VIEW_GTK_H_ | 529 #endif // CHROME_BROWSER_UI_GTK_OMNIBOX_OMNIBOX_VIEW_GTK_H_ |
OLD | NEW |