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_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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
64 // and returns true. | 64 // and returns true. |
65 bool GetMostVisitedItemWithID(InstantRestrictedID most_visited_item_id, | 65 bool GetMostVisitedItemWithID(InstantRestrictedID most_visited_item_id, |
66 InstantMostVisitedItem* item) const; | 66 InstantMostVisitedItem* item) const; |
67 | 67 |
68 // Sends ChromeViewHostMsg_SearchBoxNavigate to the browser. | 68 // Sends ChromeViewHostMsg_SearchBoxNavigate to the browser. |
69 void NavigateToURL(const GURL& url, | 69 void NavigateToURL(const GURL& url, |
70 content::PageTransition transition, | 70 content::PageTransition transition, |
71 WindowOpenDisposition disposition, | 71 WindowOpenDisposition disposition, |
72 bool is_search_type); | 72 bool is_search_type); |
73 | 73 |
74 // Pastes text or clipboard content if text is empty into the omnibox. | |
samarth
2013/08/06 18:39:44
Just
// Sends ChromeViewHostMsg_SearchBoxPaste to
jfweitz
2013/08/09 02:37:41
Done.
| |
75 void Paste(const string16& text); | |
76 | |
74 const ThemeBackgroundInfo& GetThemeBackgroundInfo(); | 77 const ThemeBackgroundInfo& GetThemeBackgroundInfo(); |
75 | 78 |
76 // Sends ChromeViewHostMsg_SetVoiceSearchSupported to the browser. | 79 // Sends ChromeViewHostMsg_SetVoiceSearchSupported to the browser. |
77 void SetVoiceSearchSupported(bool supported); | 80 void SetVoiceSearchSupported(bool supported); |
78 | 81 |
79 // Sends ChromeViewHostMsg_StartCapturingKeyStrokes to the browser. | 82 // Sends ChromeViewHostMsg_StartCapturingKeyStrokes to the browser. |
80 void StartCapturingKeyStrokes(); | 83 void StartCapturingKeyStrokes(); |
81 | 84 |
82 // Sends ChromeViewHostMsg_StopCapturingKeyStrokes to the browser. | 85 // Sends ChromeViewHostMsg_StopCapturingKeyStrokes to the browser. |
83 void StopCapturingKeyStrokes(); | 86 void StopCapturingKeyStrokes(); |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
134 string16 omnibox_font_; | 137 string16 omnibox_font_; |
135 size_t omnibox_font_size_; | 138 size_t omnibox_font_size_; |
136 string16 query_; | 139 string16 query_; |
137 int start_margin_; | 140 int start_margin_; |
138 int width_; | 141 int width_; |
139 | 142 |
140 DISALLOW_COPY_AND_ASSIGN(SearchBox); | 143 DISALLOW_COPY_AND_ASSIGN(SearchBox); |
141 }; | 144 }; |
142 | 145 |
143 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ | 146 #endif // CHROME_RENDERER_SEARCHBOX_SEARCHBOX_H_ |
OLD | NEW |