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

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

Issue 20501002: Adds paste function to searchbox api and handles paste event on fakebox (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits Created 7 years, 4 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_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
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 // Sends ChromeViewHostMsg_SearchBoxPaste to the browser.
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
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_
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