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

Side by Side Diff: chrome/renderer/searchbox/searchbox.h

Issue 23462014: InstantExtended: add back focus() API call. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix semi-colon. Created 7 years, 3 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 | Annotate | Revision Log
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_RENDERER_SEARCHBOX_SEARCHBOX_H_ 5 #ifndef CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_
6 #define CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ 6 #define CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 59
60 // Returns the latest most visited items sent by the browser. 60 // Returns the latest most visited items sent by the browser.
61 void GetMostVisitedItems( 61 void GetMostVisitedItems(
62 std::vector<InstantMostVisitedItemIDPair>* items) const; 62 std::vector<InstantMostVisitedItemIDPair>* items) const;
63 63
64 // If the |most_visited_item_id| is found in the cache, sets |item| to it 64 // If the |most_visited_item_id| is found in the cache, sets |item| to it
65 // and returns true. 65 // and returns true.
66 bool GetMostVisitedItemWithID(InstantRestrictedID most_visited_item_id, 66 bool GetMostVisitedItemWithID(InstantRestrictedID most_visited_item_id,
67 InstantMostVisitedItem* item) const; 67 InstantMostVisitedItem* item) const;
68 68
69 // Sends ChromeViewHostMsg_FocusOmnibox to the browser.
70 void Focus();
71
69 // Sends ChromeViewHostMsg_SearchBoxNavigate to the browser. 72 // Sends ChromeViewHostMsg_SearchBoxNavigate to the browser.
70 void NavigateToURL(const GURL& url, 73 void NavigateToURL(const GURL& url,
71 content::PageTransition transition, 74 content::PageTransition transition,
72 WindowOpenDisposition disposition, 75 WindowOpenDisposition disposition,
73 bool is_search_type); 76 bool is_search_type);
74 77
75 // Sends ChromeViewHostMsg_SearchBoxPaste to the browser. 78 // Sends ChromeViewHostMsg_SearchBoxPaste to the browser.
76 void Paste(const string16& text); 79 void Paste(const string16& text);
77 80
78 const ThemeBackgroundInfo& GetThemeBackgroundInfo(); 81 const ThemeBackgroundInfo& GetThemeBackgroundInfo();
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 size_t omnibox_font_size_; 147 size_t omnibox_font_size_;
145 string16 query_; 148 string16 query_;
146 int start_margin_; 149 int start_margin_;
147 InstantSuggestion suggestion_; 150 InstantSuggestion suggestion_;
148 int width_; 151 int width_;
149 152
150 DISALLOW_COPY_AND_ASSIGN(SearchBox); 153 DISALLOW_COPY_AND_ASSIGN(SearchBox);
151 }; 154 };
152 155
153 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ 156 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_
OLDNEW
« no previous file with comments | « chrome/renderer/resources/extensions/searchbox_api.js ('k') | chrome/renderer/searchbox/searchbox.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698