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

Side by Side Diff: chrome/browser/ui/search/instant_controller.h

Issue 14646034: Add onfocuschange to the Extended Search API, with associated isFocused attribute. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Trying again after rebase master. Created 7 years, 6 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
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/omnibox/omnibox_edit_model.h ('k') | chrome/browser/ui/search/instant_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698