| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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_SEARCH_INSTANT_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_SEARCH_INSTANT_CONTROLLER_H_ |
| 6 #define CHROME_BROWSER_UI_SEARCH_INSTANT_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_SEARCH_INSTANT_CONTROLLER_H_ |
| 7 | 7 |
| 8 #include <list> | 8 #include <list> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 496 // See comments on the getter above. | 496 // See comments on the getter above. |
| 497 content::PageTransition last_transition_type_; | 497 content::PageTransition last_transition_type_; |
| 498 | 498 |
| 499 // True if the last match passed to Update() was a search (versus a URL). | 499 // True if the last match passed to Update() was a search (versus a URL). |
| 500 // Used to ensure that the overlay page is committable. | 500 // Used to ensure that the overlay page is committable. |
| 501 bool last_match_was_search_; | 501 bool last_match_was_search_; |
| 502 | 502 |
| 503 // Omnibox focus state. | 503 // Omnibox focus state. |
| 504 OmniboxFocusState omnibox_focus_state_; | 504 OmniboxFocusState omnibox_focus_state_; |
| 505 | 505 |
| 506 // The reason for the most recent omnibox focus change. |
| 507 OmniboxFocusChangeReason omnibox_focus_change_reason_; |
| 508 |
| 506 // The search model mode for the active tab. | 509 // The search model mode for the active tab. |
| 507 SearchMode search_mode_; | 510 SearchMode search_mode_; |
| 508 | 511 |
| 509 // Current omnibox popup bounds. | 512 // Current omnibox popup bounds. |
| 510 gfx::Rect popup_bounds_; | 513 gfx::Rect popup_bounds_; |
| 511 | 514 |
| 512 // Last popup bounds passed to the page. | 515 // Last popup bounds passed to the page. |
| 513 gfx::Rect last_popup_bounds_; | 516 gfx::Rect last_popup_bounds_; |
| 514 | 517 |
| 515 // The start-edge margin and width of the omnibox, used by the page to align | 518 // The start-edge margin and width of the omnibox, used by the page to align |
| (...skipping 28 matching lines...) Expand all Loading... |
| 544 // Used for Top Sites async retrieval. | 547 // Used for Top Sites async retrieval. |
| 545 base::WeakPtrFactory<InstantController> weak_ptr_factory_; | 548 base::WeakPtrFactory<InstantController> weak_ptr_factory_; |
| 546 | 549 |
| 547 // Used to get notifications about Most Visted changes. | 550 // Used to get notifications about Most Visted changes. |
| 548 content::NotificationRegistrar registrar_; | 551 content::NotificationRegistrar registrar_; |
| 549 | 552 |
| 550 DISALLOW_COPY_AND_ASSIGN(InstantController); | 553 DISALLOW_COPY_AND_ASSIGN(InstantController); |
| 551 }; | 554 }; |
| 552 | 555 |
| 553 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_CONTROLLER_H_ | 556 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_CONTROLLER_H_ |
| OLD | NEW |